Greasy Fork is available in English.

Show or Hide Your Password on Mouse Events

Show password on double click, hides it when mouse leaves the password field (based on userscripts.org/scripts/show/34184 )

  1. // ==UserScript==
  2. // @name Show or Hide Your Password on Mouse Events
  3. // @description Show password on double click, hides it when mouse leaves the password field (based on userscripts.org/scripts/show/34184 )
  4. // @include *
  5. // @version 0.0.1.20140525024114
  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('dblclick',function(){this.type='text'}, false);
  13. addEventListener('mouseout',function(){this.type='password'}, false);
  14. }
  15. }