Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Quality Scripts to Improve /prog/-quality

Name: FrozenVoid 2010-06-29 13:33

// ==UserScript==
// @name           QualityFilter
// @namespace      4chan
// @include        http://dis.4chan.org/*
// ==/UserScript==
filter=/my anus|[^\w]desu desu[^\w]|m going to necro threads|Back to \/b\/|ur gay\n|smoke weed everyday|\nlain.\n|\nlisp\n|\nlol\n|\nmy homework is|army of 12 year old autistics|Enjoy your AIDS AND FAIL/ig
posts=document.getElementsByTagName('blockquote')
for(i in posts){if(posts[i].innerHTML.search(filter)!=-1){posts[i].parentNode.setAttribute('style','display:none')}}

Name: Update1.04: Thread filtering 2010-06-29 15:03

// ==UserScript==
// @name           filter
// @namespace      4chan
// @include        http://dis.4chan.org/*
// ==/UserScript==
//version 1.04
threadNameFilter=/nig+er|hur dur|(old|new)fag|your mother|vote up/ig;
minimumPostLength=20;//add at least +13 padding.
filter=/my anus|[^\w]desu desu[^\w]|m going to necro threads|Back to \/\w{1,7}\/|ur gay\n|\nlain(.|)\n|\nlisp\n|\nlol(\n| what)|\nmy homework is|army of 12 year old autistics|AIDS AND FAIL|(\n|\w+ )\d{1,12} get|Polecat Kebabs|\n\d+\n|wholesale |\w+ weed|(\n| )(old|new)fag|\n(no|ok|yes|maybe)\n|nig+er|negro|jews/ig
threads2=document.getElementsByTagName('li');
threads=document.getElementsByTagName('h2');
for(i in threads){if(threads2[i].innerHTML.search(threadNameFilter)!=-1){
threads2[i].setAttribute('style','display:none');
if(threads[i]){threads[i].parentNode.parentNode.setAttribute('style','display:none');}
}}
posts=document.getElementsByTagName('blockquote')
for(i in posts){posttext=posts[i].innerHTML;
if(posttext.length<minimumPostLength|posttext.search(filter)!=-1){posts[i].parentNode.setAttribute('style','display:none')}}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List