IE6IFY and totally bork your website

In memory of (the nearly dead) Internet Explorer 6 comes this nifty little piece of JavaScript that will wreak havoc with your web page, turning it into a pile of unreadable junk that even Steve Ballmer would be proud of.

ie6ify logo 540x97 IE6IFY and totally bork your website

The IE6IFY site proudly proclaims: “After years of observation and reverse engineering I am proud to say I have been able to reproduce the IE6 algorithm to break even the most standards-compliant websites.”

Before I show you the results, here’s the piece of code that does the damage:

javascript:(function(){var i=0,r=function(n){return Math.floor(Math.random()*n)},f=document.getElementsByTagName('body')[0].getElementsByTagName('*'),o=function(e){return typeof(e.style)=='object'&&e.tagName!='SCRIPT'},s=function(){while(!o(e=f[r(f.length)])){}return e.style};while(i++<5){s().display=r(2)?'block':'inline';s().position=r(2)?'absolute':'relative';s().margin=r(2)?'0':'1em';s().padding=r(2)?'0':'1em';s().width=r(2)?'':'auto';}})();

Whack that into your browser's toolbar and then hit it repeatedly when viewing your (least) favorite web site.

Here's what happens to Forever Geek:

forever geek normal 540x365 IE6IFY and totally bork your website

forever geek mashed 540x354 IE6IFY and totally bork your website

And Gadzooki:

gadzooki normal 540x367 IE6IFY and totally bork your website

gadzooki mashed 540x349 IE6IFY and totally bork your website

And of course Microsoft can't be allowed to get away with it:

microsoft normal 540x375 IE6IFY and totally bork your website

microsoft mashed 540x300 IE6IFY and totally bork your website

Anyone tried it in IE6?


Comments

  1. Klimax says:

    Just to note (after having fun with script in IE8) that IE6 is in fact last (sort of) surviving browser of “WILD INTERNET” era.

    Of course those who saw it back tehn know that standards were not observed by any major browser and they added a lot of proprietary tags and average website code was a mess… (I have seen examples and I got there quite late.)

Speak Your Mind

*