Differences

This shows you the differences between two versions of the page.

Link to this comparison view

firefox_reveal_passwords [2008/11/20 15:16]
firefox_reveal_passwords [2020/06/01 22:53] (current)
Line 1: Line 1:
 +====== Reveal Passwords in Firefox ======
  
 +In Firefox, if you are looking at a page that has a saved password on it, you can paste the following javascript into the address bar.
 +
 +This will show you the password saved on the page.
 +
 +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."​);​})();​
comments powered by Disqus