see your passwords as you type them

Show passwords as you type them. Double click to hide it. (based on userscripts.org/scripts/show/34184 )

  1. // ==UserScript==
  2. // @name see your passwords as you type them
  3. // @description Show passwords as you type them. Double click to hide it. (based on userscripts.org/scripts/show/34184 )
  4. // @include *
  5. // @version 0.0.1.20140525024112
  6. // @namespace https://greatest.deepsurf.us/users/2178
  7. // ==/UserScript==
  8. var is=document.evaluate('//input[@type="password"]',document,null,6,null),l=is.snapshotLength;
  9. for(i=0;i<l;i++) {
  10. with(is.snapshotItem(i))
  11. {
  12. addEventListener('focus',function(){this.type='text'}, false);
  13. addEventListener('dblclick',function(){this.type='password'}, false);
  14. }
  15. }