// ==UserScript== // @namespace https://github.com/Germxu // @homepage https://github.com/Germxu/Scripts-for-TamperMonkey // @supportURL https://github.com/Germxu/Scripts-for-TamperMonkey/issues/new // @version 1.0 // @author Finn // @name Show Password By double-click // @name:zh-CN ζŸ₯ηœ‹ε―†η  // @description 😎 Show password By double-click // @description:zh-CN πŸ˜ŽεŒε‡»ζ˜Ύη€Ίε―†η , 5η§’θ‡ͺεŠ¨ιšθ—, ε€±εŽ»η„¦η‚Ήθ‡ͺεŠ¨ιšθ— // @include * // @grant none // @downloadURL none // ==/UserScript== (function () { 'use strict'; document.addEventListener("dblclick", e => { const ev = e.target; if (ev.nodeName === "INPUT" && ev.getAttribute("type") === "password") { ev.setAttribute("type", "text"); setTimeout(() => { ev.setAttribute("type", "password") }, 5000) ev.onblur = function () { ev.setAttribute("type", "password") } } }) })();