Post: Fun Javascript
12-02-2010, 01:16 PM #1
Genocide-
★GoML★
(adsbygoogle = window.adsbygoogle || []).push({}); Heres a a few fun codes when your bored.

Edit anything on the page
    javascript:document.body.contentEditable='true'; document.designMode='on'; void 0


Make your own alert
    javascript:alert("Your text here")


Pictures move left to right
    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)+ "px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+" px"}R++}setInterval('A()',5); void(1);


Post below for what you have if you have your own cool javascript code.


Calculator
    javascript: alert(1+1);


Edit the numbers to your problem


Play asteroids on a page.
From DEREKTROTTER
    javascript:var%20s%20=%20document.createElement('script'Winky Winky;s.type='text/javascript';document.body.appendChild(s);s.src='https://erkie.github.com/asteroids.min.js';void(0);



Finding a spoofed site.
    javascript:alert("The actual URL is:\t\t" + location.protocol + "//" + location.hostname + "/" + "\nThe address URL is:\t\t" + location.href + "\n" + "\nIf the server names do not match, this may be a spoof.");
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to Genocide- for this useful post:

-Syed-, Car Lover, Masta-blasta117
12-18-2010, 11:24 AM #11
Car Lover
Family Guy FTW
Originally posted by Dr.Genocide View Post
Heres a a few fun codes when your bored.

Edit anything on the page
    javascript:document.body.contentEditable='true'; document.designMode='on'; void 0


Make your own alert
    javascript:alert("Your text here")


Pictures move left to right
    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)+ "px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+" px"}R++}setInterval('A()',5); void(1);


Post below for what you have if you have your own cool javascript code.


Calculator
    javascript: alert(1+1);


Edit the numbers to your problem


Play asteroids on a page.
From DEREKTROTTER
    javascript:var%20s%20=%20document.createElement('script'Winky Winky;s.type='text/javascript';document.body.appendChild(s);s.src='https://erkie.github.com/asteroids.min.js';void(0);



Finding a spoofed site.
    javascript:alert("The actual URL is:\t\t" + location.protocol + "//" + location.hostname + "/" + "\nThe address URL is:\t\t" + location.href + "\n" + "\nIf the server names do not match, this may be a spoof.");


Very nice m8! got any more ?
03-18-2011, 04:36 PM #12
AgentKing-Botz
Are you high?
Thanks for this Smile I have used the editing one a lot Winky Winky
03-18-2011, 05:55 PM #13
Mr Hankey
◕‿◕
Originally posted by AndreasHasSkill View Post
Where do you put it in the address bar


do it like this:

go to ex. google.com
then remove all tekst in url then paste the full code and press enter
03-18-2011, 07:07 PM #14
coolz3
Ima creeper.....EXPLOSION
Already posted by ClutchLikeMelo You must login or register to view this content.
03-18-2011, 07:13 PM #15
You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo