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

Pages: 1-

You're welcome

Name: Anonymous 2010-01-11 15:46


if ( document . location . href . indexOf ( 'dis.4chan.org/' ) > 0 ) {
    function match ( subject, pattern, id ) {
        var r = new RegExp ( pattern ) . exec ( subject );
        if ( r )
            return id >= 0 ? r [ id ] : r;
        return ''; }

    Array . prototype . inArray = function ( value ) {
        var i;
        for ( i = 0; i < this . length; i ++ )
            if ( this [ i ] === value )
                return true;
        return false; };

    function removeposts ( ) {
        var divs = document . getElementsByTagName ( 'div' );
        for ( i = 0; i < divs  . length; i ++ ) {
            var div = divs [ i ];
            if ( ! div . className . split ( ' ' ) . inArray ( 'post' ) )
                continue;
            var postnum = div . childNodes [ 1 ] . childNodes [ 0 ] . innerText;
            var user = div . childNodes [ 1 ] . childNodes [ 1 ] . childNodes [ 1 ] . innerText;
            var usertrip = div . childNodes [ 1 ] . childNodes [ 1 ] . childNodes [ 2 ] . innerText;
            var postdate = div . childNodes [ 1 ] . childNodes [ 1 ] . childNodes [ 4 ] . innerText;
            var post = div . childNodes [ 3 ] . childNodes [ 1 ] . innerText;
            post = post . replace ( /<[^>]+>/g, '' );
            post = post . toLowerCase ( );
            if (
                ( match ( post, 'anon', - 1 ) != '' && match ( post, 'talk', - 1 ) != '' && match ( post, 'spam', - 1 ) != '' ) ||
                match ( post, 'good\ job\,\ but\ help\ me\ please\!' ) != '' ||
                match ( post, 'i[ \r\n]*want[ \r\n]*a[ \r\n]*pal' ) != '' )
                divs [ i -- ] . removeNode ( true ); } }

    window . addEventListener ( "DOMContentLoaded", function ( event ) { removeposts ( ); }, false ); }

Name: Anonymous 2010-01-11 15:49

We don't really get the anontalk spam here

Name: Anonymous 2010-01-11 16:55

>>1
I believe you meant:
if ( document . location . href . indexOf ( 'dis.4chan.org/' ) > -1 ) ...

Name: Anonymous 2010-01-11 18:28

>>1
I . like . your . coding . style
It . has . rhythm
I . was . dancing . almost

Name: Anonymous 2010-01-11 19:00

>>4
Valid Haskell Code

Name: Anonymous 2010-01-12 4:38

What's a good filter rule for this type of spam? http://dis.4chan.org/read/comp/1260356721/5

If I use "a href" then ALL external links disappear.

Name: Anonymous 2010-01-12 4:57

>>6
No, "a href" (autogenerated link) is not the same as the post itself containing that string.

"a href" + "shoes" ought to kill that one off.

Name: Anonymous 2010-01-12 5:50

>>7
I tried that and all external links disappear

Name: HAXUS THE FRAGILE ARTIST 2010-01-12 7:24

</a> is what you looking for.

Name: Anonymous 2010-01-12 7:27

>>9
or "&amp;lt;a href"

Name: Anonymous 2010-01-12 11:54

>>9-10

Try them yourself they both don't work.

Name: >>10 2010-01-12 14:50

>>11
Well, shiichan mangled mine. I was supposed to be "&lt;a href".

Name: Anonymous 2010-01-12 17:39

>>12
Thank you.

Name: Anonymous 2010-01-18 15:44

How do I use the script to hide this spam? http://dis.4chan.org/read/comp/1259156718/10

Name: Anonymous 2010-01-18 15:46

>>14
CUNTPICKLES
I lol'd

Name: Anonymous 2010-01-18 18:40

I wonder if using JQuery would help shorten OP's code.

Name: Anonymous 2010-01-18 20:03

>>16
Definitely. At the expense of the jquery overhead, which is totally worth it.

Name: Anonymous 2010-01-19 4:45

How do I use the script to hide this spam? http://dis.4chan.org/read/comp/1259156718/10

Name: Anonymous 2010-01-19 7:55

How do I use the script to hide this spam? http://dis.4chan.org/read/comp/1259156718/10

Name: Anonymous 2010-01-19 14:03

How do I use the script to hide this spam? http://dis.4chan.org/read/comp/1259156718/10

Name: Anonymous 2010-01-19 15:05

How do I use the script to hide this spam? http://dis.4chan.org/read/prog/1263242814/18-20

Name: Anonymous 2010-01-19 15:15

>>21
I'll keep bumping this til you answer me. After that I will stop.

Name: Anonymous 2010-01-19 15:44

>>22
I don't see how the post you linked to is spammy in the context of /comp/. After all, that board is home to such prize specimens as the idiot who tries to extort a programming board into being his personal servant in a thread that details how to fight the very thing he's threatening.

Name: Anonymous 2010-01-19 16:04

>>23
>>22 got told

Name: Anonymous 2010-01-19 16:23

>>23
Yeah so? Its the same retard from this board that spams world4ch. It's not as if its a hard problem for someone with programming experience. And posting 1 sentence is not nearly as obnoxious as spamming all threads with big ascii art. If you could just tell me what "&lt;a" is (eg url encoding) I've leave. I mean this is not on the same scale as that twat spamming "neckbeards part 1" is it?

Name: Anonymous 2010-01-19 16:28

>>25
If you could just tell me what "&lt;a" is (eg url encoding)
Either you're a troll or a retard.

Name: Anonymous 2010-01-19 16:30

>>26
Thanks for the ad hom and not answering the question. Whenever I copy that ascii to the script it turns into question marks.

Name: Anonymous 2010-01-19 16:42

>>27
No prob bro!

Name: Anonymous 2010-01-19 16:57

Name: Anonymous 2010-11-13 14:18

Name: Anonymous 2011-02-03 6:25

Name: Anonymous 2011-02-18 13:17

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