From cbf3e24daa97603191b0472b31c796b0795cf9d1 Mon Sep 17 00:00:00 2001 From: xing Date: Sun, 22 Mar 2020 14:15:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E5=B9=BF=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tieba page.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tieba page.js b/tieba page.js index 45faa7c..c4b01f4 100644 --- a/tieba page.js +++ b/tieba page.js @@ -304,8 +304,14 @@ } 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' + '.frs_daoliu_for_app', '.tl_shadow_for_app_modle', '.footer_logo', '.footer_link_highlight', + '.appBottomPromote', '.appPromote', ]); let ads = document.querySelectorAll('li.tl_shadow_for_app'); if (ads.length > 0) { @@ -351,6 +357,11 @@ } function detail() { + let css = document.createElement('style'); + css.innerText = ` + #pblist>li:not(.list_item) { display:none; } + `; + 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'); @@ -361,7 +372,7 @@ delElement([ '.img_desc', '.father-cut-recommend-normal-box', '.father-cut-daoliu-normal-box', '#diversBanner', '.footer_logo', '.j_footer_link', '.frs_daoliu_for_app', - '.j_videoFootDownBtn' + '.j_videoFootDownBtn', '.appBottomPromote', '.appPromote', ]);