Skip to content

Instantly share code, notes, and snippets.

@binki
Last active December 12, 2016 23:22
Show Gist options
  • Save binki/a45f64d568566fafc1d09142b09c1892 to your computer and use it in GitHub Desktop.
Save binki/a45f64d568566fafc1d09142b09c1892 to your computer and use it in GitHub Desktop.
Switch input type=password to type=text in the current page.
<p>
Drag this link to your bookmark toolbar to install this bookmarklet: <a href="javascript:(function()%20{var%20o%20=%20document.getElementsByTagName('input'),%20i%20=%200;%20for%20(;%20i%20<%20o.length;%20i++)%20if%20(o[i].type%20==%20'password')%20o[i].type%20=%20'text';%20undefined;})()">pevil</a>
</p>
<p>
Demo: <input type="password" value="password"/>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment