So i am sharing my favorite javascript tricks for browsers (works perfect in IE and FF). Just open any website and copy the following js copy in the address bar an hit enter.
Some of these may not work in tabs. So its better to open a new window.
1) The "Shaky" Browser
This script makes the browser dance to the tunes.
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)
2) The "Flying" Browser
Make the site images move in a loop. Best to use this script after google image search.
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()',50); void(0);
3) The "Gaming" Browser
Play live game on any website by pasting this code. Move the triangle gun using W,A and D or
arrow keys and fire using Space.This one is ultimate!
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);
4) The "Foggy" Browser
javascript:(function(){ae=document.getElementsByTagName("*");for(var i=0,el;el=ae[i];i++)
{el.style.opacity="0.85";el.style.filter="alpha(opacity=80)"}})()
5) The "Sneezing" Browser
javascript:(function(){ae=document.getElementsByTagName("*");for(var i=0,el;el=ae[i];i++)
{el.style.textDecoration="blink"}})()
6) The "Revealing" Browser
Open a website say gmail or FB and fill in your username and password and then paste this code in
address bar and hit enter.
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.");})();
Have fun and would appreciate your appreciation. :)
See you in next post!!
No comments:
Post a Comment
Feel free to comment or post your query