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 CommentsPost a Comment

iamnotjamesh
Tue Dec 08 2009 06:38:00 +0000

lol, alert!

roger
Sun Dec 06 2009 20:21:19 +0000

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

rawr,
Sun Dec 06 2009 02:02:44 +0000

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

dude.
Sun Dec 06 2009 02:00:10 +0000

that’s cool (:

Post a Comment

Sun Feb 12 2017 14:07:52 +0000