您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Quickly toggle the 'Keep Current Pattern Selected' preference by pressing SHIFT + G
// ==UserScript== // @name Toggle Auto Follow // @namespace Jummbox Scripts // @match https://ultraabox.github.io/ // @match https://aurysystem.github.io/goldbox/ // @match https://jummb.us/ // @grant GM_notification // @version 1.4.1 // @author PlanetBluto // @description Quickly toggle the 'Keep Current Pattern Selected' preference by pressing SHIFT + G // @license MIT // ==/UserScript== const print = console.log var inited = false var toggleFunc = (elem, key) => { elem.value = key elem.dispatchEvent(new Event("change")) print(localStorage.getItem(key)) GM_notification({"text": `switched to ${localStorage.getItem(key)}`, silent: true}) } var int = setInterval(() => { var selectElem = document.querySelector(".selectContainer.menu.preferences > select") if (selectElem) { clearInterval(int) document.addEventListener("keydown", e => { if (e.which == 71 && e.shiftKey == true) { toggleFunc(selectElem, "autoFollow") } }) } }, 10)
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址