Created
December 25, 2018 23:19
-
-
Save Mosharush/9d0270ba34aa389e3d1afabf13b10598 to your computer and use it in GitHub Desktop.
Show input password test for auto fill password
This file contains hidden or 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
| javascript:const inputs=document.querySelectorAll('input[type=password]');inputs.forEach((input)=>{input.type='text';setTimeout(()=>{input.type='password';},5000);}); |
This file contains hidden or 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
| const inputs = document.querySelectorAll('input[type=password]'); | |
| inputs.forEach(( input )=>{ | |
| input.type = 'text'; | |
| setTimeout(()=>{ | |
| // Revert to password after 5 secondes | |
| input.type = 'password'; | |
| }, 5000); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment