您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
When clicking on a selected radio button, this script will clear it
// Clear Radio Button // version 0.1 BETA! // 2006-11-28 // by Jim Biancolo // // -------------------------------------------------------------------- // // This is a Greasemonkey user script. // // To install, you need Greasemonkey: http://greasemonkey.mozdev.org/ // Then restart Firefox and revisit this script. // Under Tools, there will be a new menu item to "Install User Script". // Accept the default configuration and install. // // To uninstall, go to Tools/Manage User Scripts, // select "Show Cell Headers", and click Uninstall. // // -------------------------------------------------------------------- // // ==UserScript== // @name Clear Radio Button // @version 0.1 // @namespace http://www.biancolo.com // @description When clicking on a selected radio button, this script will clear it // @include * // ==/UserScript== (function() { var currRadioRef = null; var currRadioVal = null; function clearRadio(event) { var t = event.target; if (isRadio(t)) { if ((currRadioRef==t) && currRadioVal) { t.checked = false; currRadioRef = null; } } } function getRadioState(event) { var t = event.target; if (isRadio(t)) { currRadioRef = t; currRadioVal = t.checked; } } function isRadio(ctrl) { return (ctrl.tagName.toUpperCase() == "INPUT" && ctrl.type == "radio"); } document.documentElement.addEventListener("mousedown", getRadioState, true); document.documentElement.addEventListener("click", clearRadio, true); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址