Created
June 29, 2009 16:58
-
-
Save isaacs/137699 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a new bookmark on your toolbar in Firefox, | |
// and paste this thing into the "location" field. | |
// Give it a name, and click it whenever you want to | |
// see what the password fields on forms says. | |
// I created this because sometimes I'm not sure if | |
// I typed it right, and want to check without | |
// deleting and typing it over. | |
javascript:Array.prototype.slice.call(document.body.getElementsByTagName('input'),0).filter(function(n){return%20n&&n.type&&(n.type.toLowerCase()==='password'||n._oldType==='password');}).forEach(function(n){if(n.type.toLowerCase()==='password'){n.type='text';n._oldType='password';}else{n.type=n._oldType;}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment