How to Retrieve Passwords From Asterisks

We use the “Remember Me” feature in most form logins to help the signing in process faster. But taking advantage of that sometimes makes us forget what our real passwords are. If you often stare at the asterisks and wonder what’s your actual password, try this trick. It uses Javascript alert popup to reveal you the password behind the asterisks.

Retrieving password behind asterisks

This trick only work on Firefox browser. On any page or login forms with asterisks passwords, copy paste the following Javascript into the url bar and hit enter. Your password should display on a popup window.

<input name="textfield" type="text" onfocus="" value='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.");})();' size="40" />

Make a bookmarklet


if you think you will be using this quite often, try creating a bookmarket out of it. Just drag Retrieve Passwd to your Firefox bookmark toolbar, rename if you want.

The next time you want to retrieve your passwords from asterisks, just click on your bookmarklet.