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