Skip to content

Instantly share code, notes, and snippets.

@alfredodeza
Created April 28, 2015 13:04
Show Gist options
  • Save alfredodeza/7c479f749af4ed8ba41b to your computer and use it in GitHub Desktop.
Save alfredodeza/7c479f749af4ed8ba41b to your computer and use it in GitHub Desktop.
Unmask passwords
var els=document.getElementsByTagName('input'); for(var x = 0; x < els.length; x++) { if(els[x].type.toLowerCase() == 'password' ) { var test = els[x].type = 'text'; } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment