Skip to content

Instantly share code, notes, and snippets.

@duiliogp
Created December 11, 2022 00:01
Show Gist options
  • Save duiliogp/a00030bf4f5644175f8a20d1ddfcb9ca to your computer and use it in GitHub Desktop.
Save duiliogp/a00030bf4f5644175f8a20d1ddfcb9ca to your computer and use it in GitHub Desktop.
UserScripts
// ==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