您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
屏蔽傻逼
当前为
// ==UserScript== // @name 优书网傻逼屏蔽 // @namespace http://www.lkong.net/home.php?mod=space&uid=516696 // @version 0.2 // @description 屏蔽傻逼 // @author 仙圣 // @match *://www.yousuu.com/book/* // @include *://www.yousuu.com/book/* // @icon http://www.yousuu.com/favicon.ico // ==/UserScript== (function(){ //屏蔽词列表。 //屏蔽词的双引号为英文半角引号,逗号也是,请勿忘记加逗号。 var blackList = [ "例子1","例子2", ]; function 屏蔽傻逼(){ var target = document.querySelectorAll("div.BookCommentItem"); console.log("屏蔽傻逼:"); for (var i = 0;i < target.length; i++){ if (target[i].querySelectorAll("div.comment-author-info>p")[0] != null){ var node = target[i].querySelectorAll("div.comment-author-info>p")[0]; for (var j = 0 ;j < blackList.length; j++){ //用户名在黑名单中则删掉 if (node.innerHTML.indexOf(blackList[j]) > -1){ target[i].remove(); console.log(node); } } } } } setInterval(屏蔽傻逼, 2000); })();