Reveal Hidden Passwords With This Simple Code


 

As a Firefox user, I save my account passwords so when I return to the site I don’t have to retype them.  But sometimes I just need to look behind those xxxxxx to get the darn password.   I have a toolbar bookmark called “view password” but I can’t remember where I found it.  So, here’s another way:

Paste the following javascript code into the address bar and hit enter. A popup will appear (as above) with the password for that login page.  It should also work with Internet Explorer and Opera.  

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.”);})();

Source: Raymond.cc blog.

Technorati Tags: , ,

Share This Post
blog comments powered by Disqus

Blog Widget by LinkWithin