您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Keyboard controls for dice-a-roo and gormball
// ==UserScript== // @name Grundos Cafe Dice-a-roo and Gormball keyboard controls // @namespace http://tampermonkey.net/ // @version 1.3 // @description Keyboard controls for dice-a-roo and gormball // @author Dij // @match https://www.grundos.cafe/games/dicearoo/ // @match https://www.grundos.cafe/games/play_dicearoo/ // @match https://www.grundos.cafe/games/gormball/ // @require https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js // @icon https://www.grundos.cafe/static/images/favicon.66a6c5f11278.ico // @grant none // @license MIT // ==/UserScript== /* global $ */ /* 1 Thyassa 2 Brian 3 Gargarox 4 Farvin III 5 Ember 6 COOL Zargrold 7 Ursula 8 Kevin */ let preferredPlayer = 3; (function() { 'use strict'; document.addEventListener("keydown", (event) => { // press enter if (event.key === 'Enter') { if(event.target.type === "text") { return; // Do not run if currently typing in a textbox } let chooseAGorm = $(`.gormball_player[data-id="${preferredPlayer}"]`); if (chooseAGorm.length > 0) { chooseAGorm.click(); setTimeout(1000); return; } let doIt = $("#page_content .button-group input[type=\"submit\"], #page_content .button-group input[type=\"button\"]").first(); if(doIt.length > 0) { doIt.click(); } setTimeout(1000); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址