Javscripts tricks

Thursday 27 October 2011

Javscripts tricks

Heres' the SECRET

Just copy paste the java script in to the address bar and hit enter and see the MAGIC

*.*  Edit any webpage..   just copy paste the javascript in to the address bar and hit enter and see the MAGIC

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0



*.* Dancing Images

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(0);


*.* Play Game

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);

*.* Infinite Alert Boxes


javascript:while(1){alert('Restart your brower to close this box!')}


*.* Calculator

javascript: alert(4+5+6+7+(3*10));


.*.* View Passwords Behind Asterisk

javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");})();

*.* Fly Code

javascript: for (var int = 0; int < 600; int++) { var rand = Math.floor(Math.random()*600); window.scroll(0, rand); } void(0);

*.* Hate Code

This will make your page display a popup that cannot be removed unless you click the ok button (only available button) 500 times.

You can change the 500 below to whatever you wish, you may also change the left! in quotations to whatever message you want. There is a custom one below as an example.
Code:

javascript: var t = 500; for (var int = 0; int < t; int++) { var l = t – int; alert(l +’ left!’); } void(0);
Image:

0 comments: