Update: had a case-sensitive bug in the code. Fixed now.
In form fields where a password is entered, it is usually obscured by asterisks or bullets to prevent someone from seeing what you type. This is a great feature but where a long password is being typed or a remembered password is filled in by the browser, you might want to actually see the actual password itself.
Show Password Bookmarklet
This is nothing new.
If you’re interested in what is happening to make this work the formatted code is below.
Essentially, the variable F is set to the collection of forms on the page, which is looped through, examining every input field in each form testing if it’s of type “password.” If it is a “password” field, its value is appended to the string variable s. Once all the input fields in all the forms on the page have been sniffed, the string value is displayed in an alert.
But Firefox already…
And yes, we know Firefox will show you passwords in the clear with Tools/Options/Security/Show Passwords.