Google+

JS4Nubs: Random Scripts

Here’s some random scripts that you can use on any webpage. Just type them in the Address Bar (Like you would do with a URL) and hit enter.

(Extra random useless space)

(more space)

Image: Untitled.png

(Like this.)

Change the font color to red:
javascript:document.getElementsByTagName("body" )[0].style.color="red"; void(0);

Make the text enormous:
javascript:document.getElementsByTagName("body" )[0].style.fontSize="2em"; void(0);

Infinite Spam: (Don’t try this.)
javascript:while(true)alert("SPAM");

Spam until you enter the password:
javascript:var password="123456"; var text=prompt("What’s the password?"); while (text!=password)text=prompt("What’s the password?");void(0);

Edit the page that you’re looking at:
javascript:document.body.contentEditable=’true’; document.designMode=’on’; void (0);

Random Wheel: (This one isn’t mine)
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);

Random Number: (Between 0 and 1)
javascript:alert(Math.random());

Go to the the best website ever:
javascript:window.location="http://www.rogerhub.com/";

Learn more about JavaScript

4 CommentsAdd one

iamnotjamesh
Tue, 08 Dec 2009 06:38:00 GMT

lol, alert!

roger
Sun, 06 Dec 2009 20:21:19 GMT

Lol.. you seem to be enjoying the punctuation in your name.

rawr,
Sun, 06 Dec 2009 02:02:44 GMT

oh and.
i like the salt water room.
but owl city’s songs all sound so alike D:

dude.
Sun, 06 Dec 2009 02:00:10 GMT

that’s cool (:

Post a Comment

Tue, 19 Mar 2024 02:44:26 GMT