Created
March 14, 2017 05:38
-
-
Save gkucmierz/dde9a461d45725db6aa96c173fb57f08 to your computer and use it in GitHub Desktop.
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
| var pass = prompt().trim(); | |
| [].filter.call($('[type=password]'), el => { | |
| let m = el.id.match(/mask\-([0-9]+)/); | |
| return m && m[1]; | |
| }).map(el => { | |
| let m = el.id.match(/mask\-([0-9]+)/); | |
| let n = +m[1]; | |
| //el.value = pass.charAt(n-1); | |
| console.log(n, pass.charAt(n-1)); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment