您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
双击显示密码
// ==UserScript== // @name 双击显示密码脚本 // @namespace http://xhunter.org // @version 1.0.5 // @description 双击显示密码 // @author hunter // @include http*://* // @exclude *baidu.com* // @grant none // @require https://cdn.bootcss.com/jquery/1.9.1/jquery.min.js // @run-at document-end // ==/UserScript== function showPwd() { //判断是否有密码框 if($(":password").length > 0){ //双击显示密码 $(":password").dblclick(function(){ $(this).attr("type","text"); }); //单击时变为* $(":password").click(function(){ $(this).attr("type","password"); }); //失去焦点时变为* $(":password").blur(function(){ $(this).attr("type","password"); }); } }; window.onload=function(){ showPwd(); };