From b613800eb1303215b4982a9ca026fd835d5e58f1 Mon Sep 17 00:00:00 2001 From: xing Date: Mon, 13 Jun 2022 18:16:46 +0800 Subject: [PATCH] fix page --- tieba page.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/tieba page.js b/tieba page.js index 5ad729a..cebd656 100644 --- a/tieba page.js +++ b/tieba page.js @@ -1,7 +1,7 @@ // ==UserScript== // @name tieba page // @namespace http://tampermonkey.net/ -// @version 1.018 +// @version 1.019 // @author fthvgb1 // @match https://tieba.baidu.com/* // @match https://tiebac.baidu.com/* @@ -1074,24 +1074,13 @@ function reply() { let h = document.querySelector('html').innerHTML; - let co = /spb\/widget\/normal_post_list', function \(threadList\) \{ new threadList\((.*?)\}\);/.exec(h); + let co = /spb\/widget\/normal_post_list', function \(threadList\) \{ new threadList\((.*?)}\);/.exec(h); let con = co[1] + '}'; let conf = (new Function("return " + con))(); window.conxx = conf; window.xxLL = null; - let pa = document.querySelector('#list_pager'); - pa.parentNode.removeChild(pa); - F.use('spb/widget/normal_post_list', function (threadList) { - if (!window.xxLL) { - window.xxLL = new threadList(conf) - } - window.totalPage = xxLL.pager._conf.totalPage; - if (location.href.indexOf('r=1') > -1) { - xxLL.pager._conf.url += '&r=1'; - } - }); document.querySelectorAll('.j_nreply_btn').forEach(value => { value.addEventListener('click', evt => {