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

Pages: 1-

/g/ parser

Name: Anonymous 2013-08-20 1:22

Hello /prog/!
The /g/ re/g/ex parser is complete thanks to https://dis.4chan.org/read/prog/1376759540/19-sama


// ==UserScript==
// @name       /g/ parser
// @version    0.1
// @include      *dis.4chan.org/*prog
// @copyright  2012+, lel
// ==/UserScript==

var regex = /((((top(pest)? )?lel)|^>(\w|tfw|mfw)|xD+|autism|troll|epic|fart) ?)+/mg;

for (var i = document.getElementsByClassName('post').length - 1; i >= 0; i--) {
    if (regex.test(document.getElementsByClassName('post')[i].innerText))
        document.getElementsByClassName('post')[i].style.backgroundColor = "gray";
};

Name: Anonymous 2013-08-20 1:26

Thank you for your contributions, /b/ro.

Name: Anonymous 2013-08-20 2:26

>>1
omg it's counting down from 19 wata da fuckddddd

Name: Anonymous 2013-08-20 2:27

>>3
It explodes when it gets to 0

Name: Anonymous 2013-08-20 3:33

Looks pretty well made.

Name: Anonymous 2013-08-20 3:46

>>5
x2.5 slower than this http://pastebin.com/yL5TeeYb

Name: Anonymous 2013-08-20 8:07

FROZENVOID OPTIMIZED

Name: Anonymous 2013-08-20 8:44

You forgot le and /g/entoo.

Name: Anonymous 2013-08-20 9:53

>>6
You forgot these:

                           )};()
                    }};){};();
            }}();;())}
        }};}():)}
    []};():()]
 }};}}};}};}}}};};;
}};

Name: Anonymous 2013-08-20 9:59

// @include      *dis.4chan.org/*prog
You forgot another *, dumbass.

Name: Anonymous 2013-08-20 13:33

dubs

Name: Anonymous 2013-08-21 15:18

>>11
nice dubs

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