Information icon.svg

RationalWiki has reached 7,000 articles!

User:Sid/KenFilter

From RationalWiki
Jump to: navigation, search
// ==UserScript==
// @name		Conservapedia - Ignore Conservative's edits
// @namespace		http://www.rationalwiki.com/wiki/User:Sid
// @description		Filter Conservative's contribs out of the Recent Changes
// @include		http://www.conservapedia.com/Special:Recentchanges*
// @include		http://www.conservapedia.com/index.php?*title=Special%3ARecentchanges*
// @include		http://www.conservapedia.com/index.php?*title=Special:Recentchanges*
// @include		http://conservapedia.com/Special:Recentchanges*
// @include		http://conservapedia.com/index.php?*title=Special%3ARecentchanges*
// @include		http://conservapedia.com/index.php?*title=Special:Recentchanges*
// ==/UserScript==

(function(){

var tagselect, subselect, currently, checker, check;

tagselect = document.getElementById("bodyContent");
subselect = document.evaluate("./ul[@class='special']/li", tagselect, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); 

for (var i = 0; i < subselect.snapshotLength; i++)
{
	currently=subselect.snapshotItem(i);
	check = document.evaluate("./a[@title='User:Conservative']", currently, null, XPathResult.ANY_TYPE, null);
	checker = check.iterateNext();
	if (checker)
	{
		currently.parentNode.removeChild(currently);
	}
}
})();