Skip to content

Instantly share code, notes, and snippets.

@alexec
Last active December 29, 2015 04:39
Show Gist options
  • Save alexec/7616854 to your computer and use it in GitHub Desktop.
Save alexec/7616854 to your computer and use it in GitHub Desktop.
Reveal Passwords
var is=document.getElementsByTagName('input');for (var i=0;i<is.length;i++){var x=is[i];if (x.type=='password') {x.type='text'}}
@alexec
Copy link
Author

alexec commented Nov 23, 2013

Cope the above text. Create a bookmark for this (or any page) and edit it's address, past the text but prepend with "javascript:", e.g. "javascript:var is=document.getElementsByTagName('input');for (var i=0;i<is.length;i++){var x=is[i];if (x.type=='password') {x.type='text'}}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment