This commit is contained in:
xing 2020-02-15 22:35:51 +08:00
parent f8de1cc545
commit 55a937c5e1

View File

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name tieba page // @name tieba page
// @namespace http://tampermonkey.net/ // @namespace http://tampermonkey.net/
// @version 0.4 // @version 0.5
// @author fthvgb1 // @author fthvgb1
// @match https?://tieba.baidu.com/* // @match https?://tieba.baidu.com/*
// @grant unsafeWindow // @grant unsafeWindow
@ -125,11 +125,11 @@ function t() {
} }
function lz() { function lz() {
let lz = document.querySelector('span.poster_only'); var lz = document.querySelector('span.poster_only');
if (lz) { if (lz) {
lz.onclick = null; lz.onclick = null;
let h = location.href; var h = location.href;
let ff = 0; var ff = 0;
if (h.indexOf('see_lz=1') > -1) { if (h.indexOf('see_lz=1') > -1) {
lz.textContent = '取消只看楼主'; lz.textContent = '取消只看楼主';
h = h.replace('see_lz=1', 'see_lz=0') 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', '.img_desc', '.father-cut-recommend-normal-box', '.father-cut-daoliu-normal-box',
'#diversBanner', '.footer_logo', '.j_footer_link' '#diversBanner', '.footer_logo', '.j_footer_link'
].forEach(value => { ].forEach(value => {
let x = document.querySelector(value); var x = document.querySelector(value);
if (x) { if (x) {
x.parentNode.removeChild(x) x.parentNode.removeChild(x)
} }
@ -189,6 +189,9 @@ function f(value) {
$("#list_pager>a").on("click", function () { $("#list_pager>a").on("click", function () {
setTimeout(t, 3000); setTimeout(t, 3000);
}); });
$('.j_pager_input').blur(() => {
setTimeout(t, 3000);
})
})(); })();