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: Update 1.09c 2010-07-02 3:57

// ==UserScript==
// @name           filter
// @namespace      4chan
// @include        http://dis.4chan.org/*
// ==/UserScript==
//version 1.09c
hideNameField=false;// removes the display of names/emails
hideTripCode=false;//remove the tripcodes
hideDate=false;//remove the date data
nameFilter=/mailto:noko|mailto:\w+@|bjarne stroutstrup/ig   //filter names and emails(with mailto:email)
tripFilter=/!iN.MY.aRMs|!THe.FamOus/ig 
threadNameFilter=/nig+er|hur dur|(old|new)fag|your mother|vote up|\/(b|g)\/|ohgod|halp|masturbate|finally found|slashdoted|\/prob\/|russian supercomputer|i dont even|smoke \w+ everyday/ig;
minimumPostLength=20;//7 chars actually->add at least +13 padding.
//You should change the regexp filters for your personal preference
postfilter=/\w+ anus[^\w]|[^\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|fail fail|fuck off|usingenglish.com|Back to the imageboards|Get the fuck out|ignore troll|op is a fag|v8\.1c\.ru|fucknozzle|\nRead SICP\n|send this (\w+|\w+ \w+|\w+ \w+ \w+) to everyone|brofist|>get out<|>You fail it(.|)<|[^<]a href=|[url=|runescape gold|MENA HASKAL|\n(I|Y|W)HBT\n|\nIWNBT\n/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(postfilter)!=-1){
posts[i].parentNode.setAttribute('style','display:none')}}

tripdata=document.getElementsByClassName('postertrip');
for(i in tripdata){if(tripdata[i].innerHTML.search(tripFilter)!=-1){
tripdata[i].parentNode.parentNode.parentNode.setAttribute('style','display:none');
}}

namedata=document.getElementsByClassName('postername');
for(i in namedata){if(namedata[i].innerHTML.search(nameFilter)!=-1){
namedata[i].parentNode.parentNode.parentNode.setAttribute('style','display:none');
}}

badfield=document.getElementsByClassName('emailfield');
for(i in badfield){badfield[i].setAttribute('style','display:none');}
datedata=document.getElementsByClassName('posterdate');
if(hideDate){for(i in datedata){datedata[i].setAttribute('style','display:none');}}

tripdata=document.getElementsByClassName('postertrip');
if(hideTripCode){for(i in tripdata){tripdata[i].setAttribute('style','display:none');}}

namedata=document.getElementsByClassName('postername');
namedata2=document.getElementsByClassName('namelabel');
if(hideNameField){
for(i in namedata){namedata[i].setAttribute('style','display:none');}
for(i in namedata2){namedata2[i].setAttribute('style','display:none');}
}

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