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 ); } }
>>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.