Ok... First off. I am not talking about javascript tricks for your website. These scripts are just for fun. To make these codes work, all you have to do is copy and paste it into the address bar of your browser window and hit Enter (Yes the little bar in the top that you type in can be used for javascript). Refresh to return to normal.
So here's the scripts! :icon_cheesygrin:
1. Cool script for editing any website. (Does not affect website to others)
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
2. Takes all images in the website and rotates then in a deformed oval.If you look carefully in the code, it's 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);
3. A calculator. Yes, that's about all i could say about this one. Replace the 12345+1234-123 with anything you want it to calculate
javascript: alert(12345+1234-123);
4. Can be used for finding if a website is fake.
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.");
5. There's something wrong with this one. It's supposed to shake the browser. So can you help if you know how?
javascript:function flood(n) {if (self.moveBy) {for (i = 200; 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); } } }}flood(6);{ var inp = "(retupmoc ruoy ruoy s'tI).........!!!ekauqhtrae a s'tI"; var outp = ""; for (i = 0; i <= inp.length; i++) {outp =inp.charAt (i) + outp ; } alert(outp) ;}; reverse