Sunday, June 9, 2013

Convert password asterisks to text

Running this java script in your browser address bar would convert the "asterisks" entered into a password field back into text and reveal the entered password (if you forgot or if some one left it in the input box without pressing 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.");})();

No comments:

Post a Comment