Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
Check out the new SourceForge HTML5 internet speed test! No Flash necessary and runs on all devices. ×
Linux

Journal Pope Slackman's Journal: Introducing...The AD-GOATER! 1

(Unfortunately, there's no "GOAT SEX" topic icon.)

Shortly after Starship Trooper's ad killer came to my attention,
I was "talking" to my "homeboy" Cobalt on "IM" about how I had set up a local mirror on one of my domains.
He said something to the effect of "I'd rather use yours, I don't think you'd do anything malicious,
like turning the ads into goatse.cx links".

Instantly, I was inspired. Looking at the code, I realized it would be positively trivial for me to do such a thing.

So I did it.

Here it is:
-----------------CUT------------------
//Ad-Goater hack based on ad-killer originally posted by Starship Trooper

function delAds()
{
    var iframes = document.getElementsByTagName('IFRAME');
    var imgs = document.getElementsByTagName('IMG');
    var i;
    for(i = 0; i < iframes.length; ++i) {
        iframes[i].src = 'http://goatse.cx/hello.jpg';
        iframes[i].width = 480;
        iframes[i].height = 360;
    }
    for(i = 0; i < imgs.length; ++i)
        if(
           (imgs[i].width > 450 && imgs[i].width < 500)
           ||
           (imgs[i].width > 300 && imgs[i].width < 350) && (imgs[i].height > 250 && imgs[i].height < 300)
           ||
           (imgs[i].width == 234)
           )
           {
            imgs[i].src = "http://goatse.cx/hello.jpg";
            imgs[i].width = 480;
            imgs[i].height = 360;
            imgs[i].alt = "HELLO!";
           }
}
---------------END CUT------------------

Take that, put it into a file, and call it as you would the original ad-killer script.
(Or, better, replace your publically available ad-killer with the goater!)

Viola! Giant, annoying, goatse images instead of ads!

You can find the original killer here:
http://slashdot.org/comments.pl?sid=28988&threshold=-1&commentsort=3&tid=153&mode=thread&cid=3115825
This discussion has been archived. No new comments can be posted.

Introducing...The AD-GOATER!

Comments Filter:

Disk crisis, please clean up!

Working...