Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created June 29, 2009 16:58
Show Gist options
  • Save isaacs/137699 to your computer and use it in GitHub Desktop.
Save isaacs/137699 to your computer and use it in GitHub Desktop.
// 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