Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Reveal the password in a password field on a web page' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Reveal the password in a password field on a web page
Authored by: ambrose on Apr 01, '11 10:23:37AM
For at least the past five years, I've used the javascript code below--I cannot remember where I found it--to perform the same function. The code is referenced by a bookmark in my browser's bookmark bar, and a click on the bookmark reveals the obfuscated password in plaintext. I have found the ability to perform this function essential in recovering passwords which were stored in Safari's Autofill database, but not in a keychain. javascript:(function(){var%20s,F,j,f,i;%20s%20=%20%22%22;%20F%20=%20document.forms;%20for(j=0;%20j%3CF.length;%20++j)%20{%20f%20=%20F[j];%20for%20(i=0;%20i%3Cf.length;%20++i)%20{%20if%20(f[i].type.toLowerCase()%20==%20%22password%22)%20s%20+=%20f[i].value%20+%20%22\n%22;%20}%20}%20if%20(s)%20alert(%22Passwords%20in%20forms%20on%20this%20page:\n\n%22%20+%20s);%20else%20alert(%22There%20are%20no%20passwords%20in%20forms%20on%20this%20page.%22);})();

[ Reply to This | # ]
Reveal the password in a password field on a web page
Authored by: hj45lp on Apr 06, '11 11:34:36AM

Good one, thank you!



[ Reply to This | # ]