Skip to content

Instantly share code, notes, and snippets.

@panzi
Created January 19, 2019 19:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panzi/628e22af66542be60eb0d0a76382d3ae to your computer and use it in GitHub Desktop.
Save panzi/628e22af66542be60eb0d0a76382d3ae to your computer and use it in GitHub Desktop.
Bookmarklets to make passwords in password fields readable and to hide them again.
// Show Passwords:
javascript:document.querySelectorAll('input[type=password]').forEach(e=>{e.type='text';e.setAttribute('data-io-github-panzi-password','true');});void(0)
// Hide Passwords again:
javascript:document.querySelectorAll('input[data-io-github-panzi-password=true]').forEach(e=>e.type='password');void(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment