Saturday, March 10, 2012

Cool JavaScripts that you must Try !

All the JavaScripts listed below are 100% safe and tested. use of these java scripts will not harm your PC and will not affect your ongoing processes. Copy-paste any javascript in the Address bar of your Browser and hit ‘enter’. To Stop the JavaScript actions, Just Refresh the current Tab of your Browser.

1) JavaSript to Edit any Webpage!
The Below piece of JavaSript code lets you edit any Webpage in
real time. With Firefox, you can even edit and save the modified
pages to your PC.

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


2) Webpage Content Killer -Destroy any Webpage.
This code lets you kill any objects in the webpage. This is fun just like playing ‘Asteroids’ game. Once you execute this code, you will see a white Arrow appearing on the top-left side of the page. This arrow acts as a TANK. To fire use ‘Space bar’, to move your Tank just use 4 ‘Arrow keys’. ‘Esc’ to stop the game.

javascript:var%20s%20=%20document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://img.hacker9.com/hacker9/asteroids.min.js';void(0);

3) The Calculator
In case if you are very quick in coding and don’t wanna use your inbuilt calculator, you can always use the below JavaScript to get the quick answer within your browser. you can replace 34343+3434-222 with expression of your choice.

javascript: alert(34343+3434-222);


4) Floating or Dancing Images in Webpage
This piece of JavaScript pulls off all the images from any web page and rotates or float’s them in a circular ordr. The best place to test this Script will be a website with many images(for eg: any photo gallery or albums page) (Scroll Up to see the Action)
note: look carefully in the above code, its rotating the HTML “img” tag. Just replace it with “a” or “p” and watch some links or text rotate instead of 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.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);

5) Shake your Browser Window!
This JavaScripts literally shakes your Browser window, must try.

javascript:function Shw(n) {if (self.moveBy) {for (i = 35; i > 0; i--) {for (j = n; j > 0; j--) {self.moveBy(1,i);self.moveBy(i,0);self.moveBy(0,-i);self.moveBy(-i,0);} } }} Shw(6)


6) Reveal Password Behind Asterisk(*****) Using Javascript
This code reveals the hidden password string behind asterisk. to try this open any login page and type in your password. Paste the below javascript in address bar and press enter. This Script is of real use when tried on your friends PC.

javascript: alert(document.getElementById('Passwd').value);

7)Java Script to Find Spoof Websites!
This Script lets you know the actual URL and the address URL of the page. and thus helps you identifying Spoof Websites!

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

ENJOY !!!

0 comments:

Post a Comment

 
Design by Secure Hackers