Created
December 11, 2022 00:01
-
-
Save duiliogp/a00030bf4f5644175f8a20d1ddfcb9ca to your computer and use it in GitHub Desktop.
UserScripts
This file contains 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
// ==UserScript== | |
// @name ShowPassword | |
// @description Show password when mouse is over on password entries. | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
(function(){ | |
'use strict'; | |
setTimeout(() => { | |
const $pwds = document.querySelectorAll("input[type=password]"); | |
if($pwds.length == 1){ | |
$pwds[0].onmouseenter = () => $pwds[0].type="text"; | |
$pwds[0].onmouseout = () => $pwds[0].type="password"; | |
} | |
}, 1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment