Last active
September 6, 2020 10:47
-
-
Save andrearufo/4912a98ba9e4a2f00b3fa98894bfbbb5 to your computer and use it in GitHub Desktop.
Make input password to text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="javascript: (function () { var jsCode = document.createElement('script'); jsCode.setAttribute('src', 'showpassword.js'); document.body.appendChild(jsCode); }());"> | |
Show hidden password | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('Bookmarklet made by andrearufo.it'); | |
var inputs = document.querySelectorAll('input[type=password]'); | |
if (inputs.length > 0) { | |
console.log('Ok...') | |
for (i=0; i<=inputs.length; i++){ | |
inputs[i].setAttribute('type', 'text'); | |
} | |
}else{ | |
console.log('No password fields...') | |
} | |
console.log('--> Done') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment