Hide Toronto Mike Users

Hide annoying users on Toronto Mike blog. Fucking trolls.

目前為 2014-09-14 提交的版本,檢視 最新版本

// ==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


QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址