您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Display the password after hover for 300ms.
当前为
// ==UserScript== // @name Hover display password // @namespace Jixun.Org // @include *://* // @version 1 // @grant none // @description Display the password after hover for 300ms. // ==/UserScript== addEventListener ('DOMContentLoaded', function (k) { k = 'jixun_xD_passwd'; document.body.addEventListener ('mouseover', function (e) { var t = e.target; t.tagName == 'INPUT' && t.type.toLowerCase() == 'password' && ( t.setAttribute(k, 1), setTimeout(function(){ t.hasAttribute(k) && (t.type = 'text') }, 300) ) }, false); document.body.addEventListener ('mouseout', function (e) { var t = e.target; t.tagName == 'INPUT' && t.hasAttribute(k) && (t.removeAttribute(k), t.type = 'password'); }, false); }, false);