您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds simple keyboard controls for repairing toys on GC.
// ==UserScript== // @name GC Donny's Toy Repair Keyboard Controls // @namespace https://greasyfork.org/en/users/1257536-zzzzzooted // @version 1.0 // @description Adds simple keyboard controls for repairing toys on GC. // @author zoops // @match https://www.grundos.cafe/winter/brokentoys/* // @license MIT // @icon https://www.google.com/s2/favicons?sz=64&domain=grundos.cafe // ==/UserScript== var repair = document.querySelector(".inv-item a") var pay = document.querySelector("input[value='Yes, go ahead and repair it']"); var repeat = document.querySelector("input[value='Fix another item']") document.addEventListener("keydown", (event) => { if ( !$('input:focus').length > 0 ) { if (event.keyCode == 13) { if (repair != null) { repair.click(); } else if (pay != null) { pay.click(); } else if (repeat != null) { repeat.click(); } } } });