Show Hidden Passwords Behind Asterisk

All Internet browsers have got a special feature which, as soon as you login your email account for example, prompt you to save password and username so that, next time you will use the service again, the browser will fill in the login interface for you. However, while the username is fully displayed, the password is hidden by asterisks. Now, if for any reason you don’t remember such a password you won’t have any way to recover it. Usually, to get it back, you will have to buy a special piece of software.
Alright, actually you could read out the asterisk with a simple javascript code. Go to the Web page containing the login in form where you saved your password. Just copy the following javascript code and paste it on the browser address bar. As soon as you press Enter, the browser will display a window containing the password!
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.");})();

Posted on Wednesday, March 16, 2011 at 12:30 PM in Tutorials by dgodam

Source :