Follow Slashdot blog updates by subscribing to our blog RSS feed


Forgot your password?
Slashdot Deals: Cyber Monday Sale Extended! Courses ranging from coding to project management - all eLearning deals 20% off with coupon code "CYBERMONDAY20". ×

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 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:
//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 = '';
        iframes[i].width = 480;
        iframes[i].height = 360;
    for(i = 0; i < imgs.length; ++i)
           (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 = "";
            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:
This discussion has been archived. No new comments can be posted.

Introducing...The AD-GOATER!

Comments Filter:

16.5 feet in the Twilight Zone = 1 Rod Serling