Skip to content

Instantly share code, notes, and snippets.

@alfredodeza
Created December 1, 2015 13:31
Show Gist options
  • Save alfredodeza/03918bbaaafa0a1c6660 to your computer and use it in GitHub Desktop.
Save alfredodeza/03918bbaaafa0a1c6660 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