here’s i am sharing with you some cool pieces of codes that you must try on your browser. Interestingly the JavaScripts listed below can be used to perform malicious activity or to spread SPAM by just modifying them or combining with few extra code. for example we have already seen the “Rotating images Facebook Spam” some days back. So Guys Before trying out any JavaScripts on any Websites, you got to first examine the code properly and see that it is not calling any external Script or contains any malicious code.
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.

-JavaSript to Edit any Webpage!

The Below piece of JavaSript code lets you edit any Webpage in realtime. With Firefox, you can even edit and save the modified pages to your PC.
javascript:document.body.contentEditable='true'; document.designMode='on'; void (0);

-Webpage Content Killer -Destroy any Webpage.

Now this is my Favorite piece. 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);

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

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

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

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

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

-Select All JavaScript for Facebook users.

This Script lets you select all your friends while Sending Invitations. You are always welcome to Try this Script on Our Facebook Page!
javascript:fs.select_all()
And Finally make sure you also try this:
javascript:function reverse() { var inp = " /m\ .gnirolpxE peeK !setadpu liame eerf ruo ot ebircsbus uoy erus ekaM .su htiw hcuot nI yatS !sihT deyojne uoy epoh I "; var outp = ""; for (i = 0; i <= inp.length ; i++) { outp = inp.charAt (i) + outp ; } alert(outp) ;}; reverse();