Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Javascript Boredom

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
46,761
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 24, 2010

Just a video I made of me butchering websites while I was bored :)

The scripts I used were

To make all pictures fly around:
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);

To make all links fly around:
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("a"); 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);

To make all paragraphs (like in blogs) fly around:
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("p"); 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);

To edit any text real time in a web page:
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

  • likes, 4 dislikes

Link to this comment:

Share to:

Top Comments

  • thumbs up if u came here by link to play snake!

  • thumbs up if you were using this to play snake

see all

All Comments (102)

Sign In or Sign Up now to post a comment!
  • thank you youtube

    

  • @awsomeguy720 pause the video and press any 2 arrow keys on the keyboard.

  • what is the song???

  • how do you do it?

  • i like how neon360's comment has more likes then this video...haha

  • i played snake its so addicting

  • JavaScript Bored Dumb xD····

  • i cant do that ;(

  • i cant seem to see wat everyone typed because of the glitch

  • Dutch?

  • @scamander24 But do you remember the name or something?

  • if someone finds the name of tis song , PLESE POST!

  • This won't work because each time you try to press ENTER it searches the script and it's starting to make me mad.

  • DUDE I REALLLLLLY NEED THIS FRIGIN SONG ITS KILLIN ME DO AT LEAST HAVE THE URL FOR IT OR THE MP# FILE U COULD POST IT IN UR DISCRIPTION OR SOMTHING PLZZZZZZ!!!!!!!!!

  • to make this work all you have to do in chome is press F12 to get the dev section in the bottom of the browser. Then press console tab. Then put the code in there but not the javascript: part. Then press enter and they all will work. I even tried stacking more than one at a time and they work. Try on a wiki page where there is alot of paragraphs

  • hahahahaha!!! this is awesome (did it w/ links on the link i saw vid.)

  • hey how do u do this

  • @IwantM0ar

    No, you can do it with about any browser.

  • how

    

  • @IwantM0ar no.

  • wtf is this music called?

  • Thumbs up if you tried one of the scripts.

  • wow.

    

  • do you need to use Google chrome ?

    

  • @scamander24 but what song is it (name)

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more