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: Anonymous 2010-07-02 4:01

http://pastebin.com/cF7jevte
Pastabin version.

Name: Anonymous 2010-07-02 4:16

>>40

Dude that is a lot of filters. Some filters aren't even reasonable.

Name: Anonymous 2010-07-02 4:37

Use the pastebin version, shiichan changed the regexp

Name: Anonymous 2010-07-02 5:38

[quote]Polecat(|s) Kebab(|s)[/quote]
U MENA "Polecats? Kebabs?"

Name: Anonymous 2010-07-02 10:13

>>44
The latter is more versatile when you need to add variants e.g.(a|b|c|d)

Name: Anonymous 2010-07-02 10:36

>>45
It's not difficult to rewrite a regular expression.

Name: Anonymous 2010-07-02 10:55

Name: Anonymous 2010-07-02 11:52

>>47
That's literally all you know about regular expressions, isn't it?

Name: Anonymous 2010-07-02 13:18

>>48
express this as 'c?' then
/troll(s|ing|ed|able)/

Name: Anonymous 2010-07-02 13:28

>>49
So you're trying to justify your hideous use of (|s) over s? because you can add more options?

Name: Anonymous 2010-07-02 13:31

People who program without regard for future code expansion should not program at all. They make unmaintainable and buggy code which is difficult to grasp and repair.

Name: Anonymous 2010-07-02 13:54

>>47
The problem of validating (and parsing) email addresses is what finally got me out of the bad habit of rolling my own implementations. I get the feeling a C implementation could be had in less space and yet greater clarity than that monstrous regex.

Name: Anonymous 2010-07-02 14:34

>>52
I get the feeling a C implementation could be had in less space and yet greater clarity than that monstrous regex.
Well, you're wrong about that. Sorry.

Name: Anonymous 2010-07-02 14:39

>>53
Sorry, I'm not taking your word for it.

Name: Anonymous 2010-07-05 19:26

FILTER MY ANUS

Name: Anonymous 2010-07-05 23:15

>>55
An usable interface.
What an us bias!
Really a nusance(sic).

Name: Anonymous 2010-07-05 23:24

>>56
Anius.

Name: 1.10b 2010-07-05 23:39

Name: Anonymous 2010-07-06 5:38

>>58
Bump for filter.

Name: Anonymous 2010-07-06 8:29

JEWS

Name: Anonymous 2010-07-06 16:09

nigger hur dur oldfag newfag your mother vote up b g ohgod halp masturbate finally found slashdoted /prob/ russian supercomputer i dont even smoke everyday anus A N U S desu desu going to necro threads back to ur gay lain lisp lol what my homework is army of 12 year old autistics AIDS AND FAIL get polecat kebab wholesale weed oldfag newfag no ok yes maybe nigger AFRICAN AMERICAN negro jews no exceptions lol secret raid please 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 read SICP send this to everyone brofist get out you fail it. runescape gold U MENA HASKAL IHBT YHBT WHBT IWNBT

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