If you’ve got a password saved, but can’t remember what it is, you can use this bookmarklet to reveal it.
Drag the image to the bookmark bar:
Click the button above to try it out:
If you’re interested in the JavaScript source:
javascript:Array.prototype.slice.call(document.querySelectorAll("input[type='password']"))
.map(function(el){el.setAttribute('type','text')})
It gets all password inputs and turns their type to text; and should work in modern browsers (like Safari, FF4, Chrome etc) that support ‘querySelectorAll()’.
Looks good, but it’s more idiomatic to use forEach than map if you only want the side effects, not the values.
don’t working in Firefox 31 in Windows 7.
This scrpit open own tab browser, in addres bar shows this srcitp.
Working as button (example your tester form in post).
🙂