Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Introducing...The AD-GOATER!

Pope Slackman (13727) writes | more than 12 years ago

Linux 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".
(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

cancel ×

1 comment

LOL (1)

Burgundy Advocate (313960) | more than 12 years ago | (#3128951)

If you replace the script with that I swear that I'll hunt you down and kill you.

That said, nice work!
Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...