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: Version 1.07 2010-06-30 6:19

// ==UserScript==
// @name           filter
// @namespace      4chan
// @include        http://dis.4chan.org/*
// ==/UserScript==
//version 1.07c 
threadNameFilter=/nig+er|hur dur|(old|new)fag|your mother|vote up|\/b\/|ohgod|halp|masturbate|finally found|slashdoted/ig;
minimumPostLength=20;//7 chars actually->add at least +13 padding.
//You should change the regexp filters for your personal preference
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(|s) Kebab(|s)|\n\d+\n|wholesale |\w+ weed|(\n| )(old|new)fag|\n(no|ok|yes|maybe)\n|nig+er|negro|jews|no exceptions|lol \w+\n|secret raid[^\w]|\nplease don't do that.|LOLOLOL/ig
threads2=document.getElementsByTagName('li');
for(i in threads2){if(threads2[i].innerHTML.search(threadNameFilter)!=-1){
threads2[i].setAttribute('style','display:none');}}

threads=document.getElementsByTagName('h2');
for(i in threads){if(threads[i].innerHTML.search(threadNameFilter)!=-1){
threads[i].parentNode.parentNode.setAttribute('style','display:none');}}

posts=document.getElementsByTagName('blockquote')
for(i in posts){
if(posts[i].innerHTML.length<minimumPostLength||posts[i].innerHTML.search(filter)!=-1){
posts[i].parentNode.setAttribute('style','display:none')}}

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