Skip to content

Instantly share code, notes, and snippets.

@daronspence
Last active December 14, 2015 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daronspence/365ce803c85de9729ad7 to your computer and use it in GitHub Desktop.
Save daronspence/365ce803c85de9729ad7 to your computer and use it in GitHub Desktop.
Show Password for Active Field
(
function(){
document.activeElement.setAttribute('type', 'text');
}
)();
// Encoded // javascript:(function()%7Bdocument.activeElement.setAttribute('type'%2C 'text')%7D)()
@daronspence
Copy link
Author

Add the encoded version as a bookmarklet to easily view your passwords if you're unsure what you may have typed. Especially useful for pre-filled forms on sites where you may have multiple accounts. :)

Just copy and paste everything on line 7 after the second set of // into the URL field for your bookmark.

Note: You may need to use the bookmark manager in your web browser to manually enter the URL.

@daronspence
Copy link
Author

You can also use this site to create the bookmarklet. Just paste lines 1-5 in the giant text box. http://mrcoles.com/bookmarklet/

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