// ==UserScript==
// @name Gaiaonline Filter Threads and Authors
// @namespace http://userscripts.org/users/23652
// @description Add names and/or author names to the blacklist to hide those thread/author links
// @include http://*.gaiaonline.com/forum/*
// @copyright JoeSimmons
// @version 1.0.0
// @license Creative Commons Attribution-Noncommercial 3.0 United States License
// ==/UserScript==
// OPTIONS /////////////////////////////////////////////////////////////////////////
var topic_blacklist = ["wordexample01", "wordexample02", "wordexample03", "wordexample04"];
var author_blacklist = ["authorname01", "authorname02", "authorname03", "authorname04"];
////////////////////////////////////////////////////////////////////////////////////
var links1 = document.evaluate("//a[contains(@href, '/forum/') and contains(@href, '/t.')]",document,null,6,null);
for(var i=links1.snapshotLength-1; (item1=links1.snapshotItem(i)); i--) {
for(var x=topic_blacklist.length-1; x>=0; x--) {
if(item1.textContent.toLowerCase().indexOf(topic_blacklist[x])!=-1) {
if(((p=item1.parentNode.parentNode).parentNode||'0')!='0') {
p.parentNode.removeChild(p);
}
}
}
}
var links2 = document.evaluate("//a[contains(@href, '/profiles/')]",document,null,6,null);
for(var i=links2.snapshotLength-1; (item2=links2.snapshotItem(i)); i--) {
for(var x=author_blacklist.length-1; x>=0; x--) {
if(item2.textContent.indexOf(author_blacklist[x])!=-1) {
if(((p=item2.parentNode.parentNode).parentNode||'0')!='0') {
p.parentNode.removeChild(p);
}
}
}
}