From 18a40e6b927a27e247fda4f48c2d82a7f1f7e495 Mon Sep 17 00:00:00 2001 From: Zain Date: Thu, 24 Dec 2020 13:38:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E6=82=AC=E8=B5=8F=E5=B8=96]=EF=BC=88=E5=AF=BC=E8=AF=BB=20-=20?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E5=8F=91=E8=A1=A8=EF=BC=89=20(#10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 52pojie-Enhanced.user.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/52pojie-Enhanced.user.js b/52pojie-Enhanced.user.js index bf3d57b..940ea93 100644 --- a/52pojie-Enhanced.user.js +++ b/52pojie-Enhanced.user.js @@ -23,6 +23,28 @@ if (menu_thread_pageLoading == null){menu_thread_pageLoading = false; GM_setValue('xiu2_menu_thread_pageLoading', menu_thread_pageLoading)}; registerMenuCommand(); + //屏蔽悬赏帖 + function delateReward(){ + // delateSwitch: 是否开启新帖区屏蔽悬赏帖,true或者false + var delateSwitch = true; + if(location.href === "https://www.52pojie.cn/forum.php?mod=guide&view=newthread" && delateSwitch){ + var table = document.querySelector("#threadlist > div.bm_c > table"); + var tbodys = table.getElementsByTagName('tbody'); + var arrs = [] + for (let i=0; i