Wrathofthebarclay Filter Threads

By JoeSimmons Last update Jan 20, 2009 — Installed 73 times.

There are 1 previous version of this script.

// ==UserScript==
// @name           Wrathofthebarclay Filter Threads
// @namespace      http://userscripts.org/users/23652
// @description    Add names to the blacklist to hide those thread links
// @include        http://www.wrathofthebarclay.co.uk/interactive/board/*
// @copyright      JoeSimmons
// ==/UserScript==

// OPTIONS /////////////////////////////////////////////////////////////////////////
var blacklist = new Array("tennis", "murray", "another word here");
////////////////////////////////////////////////////////////////////////////////////

var l, links = document.evaluate("//a[contains(@href, 'message.php?pid=')]",document,null,6,null);
for(var i=links.snapshotLength-1; i>=0; i--) {
l = links.snapshotItem(i);
for(var x=blacklist.length-1; x>=0; x--) {
if(l.textContent.toLowerCase().indexOf(blacklist[x])!=-1) {
if((l.parentNode.parentNode||'0')!='0') l.parentNode.parentNode.removeChild(l.parentNode);
}
}
}