Greasy Fork is available in English.

Show/Hide Password Hover

Show/Hide Password when hovering over the input password

질문, 리뷰하거나, 이 스크립트를 신고하세요.
  1. // ==UserScript==
  2. // @name Show/Hide Password Hover
  3. // @namespace https://greatest.deepsurf.us/users/821661
  4. // @version 1.4
  5. // @description Show/Hide Password when hovering over the input password
  6. // @match <all_urls>
  7. // @grant none
  8. // @license MIT
  9. // ==/UserScript==
  10.  
  11. (function () {
  12. 'use strict';
  13. document.addEventListener('mouseover', (e) => {
  14. if (!e.target.closest('input[type="password"]')) return;
  15. e.target.type = 'text';
  16. e.target.addEventListener('mouseout', () => {
  17. e.target.type = 'password';
  18. });
  19. });
  20. })();