4chan Spam Buster

By Sour Last update Dec 14, 2008 — Installed 1,217 times. Daily Installs: 0, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 5, 0, 9, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0

There are 6 previous versions of this script.

// ==UserScript==
// @name          4chan Spam Buster
// @namespace     http://www.userscripts.org
// @description   Gets rid of the JS spam on 4chan.
// @include       http://*4chan.org/*
// ==/UserScript==

(function() {
	var posts = document.getElementsByTagName("blockquote");
	for (i = 0; i < posts.length; i++)
	{
		if (posts[i].innerHTML.indexOf("R A I D C H A N") != -1 || posts[i].innerHTML.indexOf("RAIDCHAN") != -1 || posts[i].innerHTML.indexOf("Kayla") != -1 || posts[i].innerHTML.indexOf("Luk0r") != -1 || posts[i].innerHTML.indexOf("Z0Mg") != -1)
		{
			posts[i].parentNode.parentNode.parentNode.parentNode.parentNode.removeChild(posts[i].parentNode.parentNode.parentNode.parentNode);
			i = i - 1;
		}
	}
})()