您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
You can block some members by editing blacklist.
// ==UserScript== // @name hkepcFilter // @include https://www.hkepc.com/forum/* // @require http://code.jquery.com/jquery-3.6.0.min.js // @description You can block some members by editing blacklist. // @version 1.0 // @license MIT // @namespace https://greasyfork.org/users/1056810 // ==/UserScript== const blackList = [ "member1", "member2", "member3", "member4", ]; $(document).ready(function () { $("tbody").each(function (index) { var author = $(this).find(".author").find("cite").text().trim(); if (blackList.indexOf(author) !== -1) { $(this).remove(); } }); $("tbody").each(function (index) { var author = $(this) .find(".postauthor") .find(".postinfo") .find("a") .text() .trim(); if (blackList.indexOf(author) !== -1) { $(this).remove(); } }); $(".quote").each(function (index) { var author = $(this).find("blockquote").find("font").text().split(" ")[0]; if (blackList.indexOf(author) !== -1) { $(this).remove(); } }); });