From 55a937c5e1ae31e57fa14e5b192a9e0707819e15 Mon Sep 17 00:00:00 2001 From: xing Date: Sat, 15 Feb 2020 22:35:51 +0800 Subject: [PATCH] fix bug --- tieba page.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tieba page.js b/tieba page.js index b8ad0c9..cdea1b5 100644 --- a/tieba page.js +++ b/tieba page.js @@ -1,7 +1,7 @@ // ==UserScript== // @name tieba page // @namespace http://tampermonkey.net/ -// @version 0.4 +// @version 0.5 // @author fthvgb1 // @match https?://tieba.baidu.com/* // @grant unsafeWindow @@ -125,11 +125,11 @@ function t() { } function lz() { - let lz = document.querySelector('span.poster_only'); + var lz = document.querySelector('span.poster_only'); if (lz) { lz.onclick = null; - let h = location.href; - let ff = 0; + var h = location.href; + var ff = 0; if (h.indexOf('see_lz=1') > -1) { lz.textContent = '取消只看楼主'; h = h.replace('see_lz=1', 'see_lz=0') @@ -177,7 +177,7 @@ function f(value) { '.img_desc', '.father-cut-recommend-normal-box', '.father-cut-daoliu-normal-box', '#diversBanner', '.footer_logo', '.j_footer_link' ].forEach(value => { - let x = document.querySelector(value); + var x = document.querySelector(value); if (x) { x.parentNode.removeChild(x) } @@ -189,6 +189,9 @@ function f(value) { $("#list_pager>a").on("click", function () { setTimeout(t, 3000); }); + $('.j_pager_input').blur(() => { + setTimeout(t, 3000); + }) })(); \ No newline at end of file