您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide annoying users on Toronto Mike blog. Fucking trolls.
当前为
// ==UserScript== // @name Hide Toronto Mike Users // @description Hide annoying users on Toronto Mike blog. Fucking trolls. // @namespace torontomike // @include http://www.torontomike.com/ // @include http://*.torontomike.com/ // @include http://www.torontomike.com/* // @include http://*.torontomike.com/* // @version 1.2 // ==/UserScript== var blacklist = ["cheryl", "argie", "Cheryl", "Argie"]; // ["cheryl", "any other name", "seperated by comma"] not case sensitive var comments = document.getElementsByClassName("comment"); // Get all comments var i; var comment; var user; for(i = 0; i < comments.length; i++) { var hide = false; comment = comments[i]; user = comment.getElementsByTagName("p")[0].getElementsByClassName("bigger")[0].textContent; for (blacklist_count = 0; blacklist_count < blacklist.length; blacklist_count++) { if (user.toUpperCase().trim() == blacklist[blacklist_count].toUpperCase().trim()) { comment.style.display = "none"; break; } } } // End comment loop