Author Topic: Fun thing to do with javascript  (Read 1531 times)

This is very old, but I know this will probably be new to a few people. Might as well share.

1. Go to image heavy page
2. Put this in the address bar:

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.getElementsByTagName("img"); 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)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0);

3. Press enter
4. ???
5. Profit?

Source: http://www.wikihow.com/Make-Images-Fly-in-Your-Browser

More:
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
Can edit everything, like make a youtube videos views 45174801165047851745267897148 91snakeLOL4717454.
 
javascript:var i,s,ss=['http://kathack.com/js/kh.js','http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'];for(i=0;i!=ss.length;i++){s=document.createElement('script');s.src=ss;document.body.appendChild(s);}void(0);
Katamari.

javascript:var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0);
Play asteroids and blow up everything on your screen.

« Last Edit: July 17, 2011, 03:59:42 AM by Narkro555 »


forget PONIES AND BRONIES FLYING UP IN MY BROWSER

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
Can edit everything, like make a youtube videos views 45174801165047851745267897148 91snakeLOL4717454.
 
javascript:var i,s,ss=['http://kathack.com/js/kh.js','http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'];for(i=0;i!=ss.length;i++){s=document.createElement('script');s.src=ss;document.body.appendChild(s);}void(0);
Katamari.

javascript:var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0);
Play asteroids and blow up everything on your screen.

That's so amazing that I'm adding that to the OP.


second one doesn't do anything, clone.

second one doesn't do anything, clone.
javascript:var i,s,ss=['http://kathack.com/js/kh.js','http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js'];for(i=0;i!=ss.length;i++){s=document.createElement('script');s.src=ss[i];document.body.appendChild(s);}void(0);
Try now.
There was an italics BBC hiding in there.

Try now.
There was an italics BBC hiding in there.
loving. Full of win.



oh god how did this get here i am not good with computer

-my avatar sticks out-

oh god how did this get here i am not good with computer



I thought I would contibute.

  javascript:alert("Hello World")



I may have had some fun with my online bank account

teehee
« Last Edit: July 17, 2011, 04:32:14 AM by Trifax »