From 926f38889726c7c72ce7efd4c4883fe4a736ae1f Mon Sep 17 00:00:00 2001 From: xing Date: Sun, 22 Mar 2020 21:14:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tieba page.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tieba page.js b/tieba page.js index 8fb5017..3a37f21 100644 --- a/tieba page.js +++ b/tieba page.js @@ -346,11 +346,6 @@ } function list() { - let css = document.createElement('style'); - css.innerText = ` - #frslistcontent>li:not([data-tid]):not(.tl_gap) { display:none; } - `; - document.querySelector('head').append(css); delElement([ '.frs_daoliu_for_app', '.tl_shadow_for_app_modle', '.footer_logo', '.footer_link_highlight', '.appBottomPromote', '.appPromote', @@ -406,9 +401,7 @@ }); - let css = document.createElement('style'); - css.innerText = `#pblist>li:not(.list_item) { display:none; } .ui_image_header_bottom { display:none !important; }`; - document.querySelector('head').append(css); + document.querySelectorAll('ul#pblist>li').forEach(value => { if (value.classList.contains('class_hide_flag')) { value.classList.remove('class_hide_flag'); @@ -447,6 +440,15 @@ if (!check()) { return; } + let css = document.createElement('style'); + css.innerText = ` + #pblist>li:not(.list_item) { display:none; } + #frslistcontent>li:not([data-tid]):not(.tl_gap) { display:none; } + .top-guide-wrap { display:none !important;} + .ui_image_header_bottom { display:none !important; } + .open-style { display:none !important;} + `; + document.querySelector('head').append(css); delElement(['.ui_image_header_bottom']);