From 247f26a00061d6bea158bc58aa41aba86be53dec Mon Sep 17 00:00:00 2001 From: xing Date: Fri, 26 Aug 2022 04:58:20 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'tieba=20page.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tieba page.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tieba page.js b/tieba page.js index cebd656..6864a11 100644 --- a/tieba page.js +++ b/tieba page.js @@ -1,7 +1,7 @@ // ==UserScript== // @name tieba page // @namespace http://tampermonkey.net/ -// @version 1.019 +// @version 1.020 // @author fthvgb1 // @match https://tieba.baidu.com/* // @match https://tiebac.baidu.com/* @@ -919,7 +919,10 @@ ]); - document.querySelector('.father-cut-pager-class-no-page').classList.remove('father-cut-pager-class-no-page'); + let lxf = document.querySelector('.father-cut-pager-class-no-page') + if(lxf){ + lxf.classList.remove('father-cut-pager-class-no-page'); + } let list = document.querySelector('ul#pblist'); let MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;