
topic keyword ignorator
By: a guest on
Aug 19th, 2012 | syntax:
None | size: 1.26 KB | hits: 40 | expires: Never
// ==UserScript==
// @name Topic Ignorator
// @description Lets you make topics GTFO your endoftheinter.net
// @author cheezit
// @include http://endoftheinter.net/*
// @include https://endoftheinter.net/*
// @include http://boards.endoftheinter.net/*
// @include https://boards.endoftheinter.net/*
// ==/UserScript==
var words=new Array();
//Add things to block below the line, using the following format:
//words.push(block);
//For example, if you wanted to ignore SSBB topics, you would add the following line (without the slashes):
//words.push("SSBB");
//For multiple words, use multiple lines.
//The blocked words are not case sensitive.
//Add them below this line
//Add blocked words above this line ^^
var trs=document.getElementsByTagName("tr");
for (var i=0; i<trs.length; i++)
{
var tds=trs[i].getElementsByTagName("td");
if (tds.length>0)
{
var as=tds[0].getElementsByTagName("a");
var n;
if(as.length == 1)
{
n = 0;
}
else
{
n = 2
}
var topic = as[n].innerHTML.toLowerCase();
for (var j=0; j<words.length; j++)
{
if (topic.search(words[j].toLowerCase()) != -1 && topic.search("board list") == -1)
{
trs[i].parentNode.removeChild(trs[i]);
i--;
break;
}
}
}
}