![]() |
Make Google Go Crazy
Here's what you need to do to make Google go crazy:
1. Go to Google.com 2. Remove everything from the address bar, then copy & paste the following into it: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0); 3. Hit enter. Enjoy. This works on other sites too. A couple good ones are... Amazon.com Flickr.com Destructoid.com (best one I've seen so far) |
I'm not in the habit of pasting random bits of code anywhere, but I assume this places the images on the site in question all across the window?
|
makes them fly around, pretty neat
|
For those of you who are Code geeks like me, or if you're curious what's happening, I spaced it out to be more readable.
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0); becomes... Code:
javascript:
For some fun, try manipulating R; it effects the speed of rotation; If you make R increment by 0.05 instead of 1, you get: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R+=0.05}setInterval('A()',5); void(0); Sloooooooowwwwwwwwwwww rotation. If you make R 2 you get: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R+=2}setInterval('A()',5); void(0); Speedy! .. I have too much free time on my hands. :) |
Heh... cool... it works on all sites.
|
Well I'm off to try it on a porn site.
|
This is genius! Particularly cool on sites with a ton of small icons like De&mo@no^id (screw you search engines, and we're not handing out invites either!!!)
|
oooh, De&mo@no^id *is* cool :)
|
All times are GMT -8. The time now is 06:33 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project