Skip to content

Instantly share code, notes, and snippets.

@robbiet480
Created February 5, 2013 02:40
Show Gist options
  • Save robbiet480/4711696 to your computer and use it in GitHub Desktop.
Save robbiet480/4711696 to your computer and use it in GitHub Desktop.
Reveal Password bookmarklet
javascript:(function()%7Bvar%20IN%20=%20document.getElementsByTagName(%22input%22);for(var%20i=0;%20i<IN.length;%20++i)%7BF%20=%20IN%5Bi%5D;if%20(F.type.toLowerCase()%20==%20%22password%22)%7Bif(document.all)%7Bvar%20n%20=%20document.createElement(%22input%22);for(var%20k%20in%20F.attributes)%20if(k.toLowerCase()%20!=%20'type')%7Btry%7Bn%5Bk%5D%20=%20F%5Bk%5D%7Dcatch(err)%7B%7D%7D;F.parentNode.replaceChild(n,F);%7Delse%7BF.type=%22text%22%7D%7D%7D%7D)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment