GC - Shop Till Withdraw Keyboard Shortcut

Press enter to empty your shop till! Press enter again to go straight to the bank with your riches.

目前为 2024-03-18 提交的版本。查看 最新版本

// ==UserScript==
// @name         GC - Shop Till Withdraw Keyboard Shortcut
// @namespace    https://gf.qytechs.cn/en/users/1175371
// @version      0.3
// @description  Press enter to empty your shop till! Press enter again to go straight to the bank with your riches.
// @author       sanjix
// @match        https://www.grundos.cafe/market/till/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=grundos.cafe
// @grant        none
// ==/UserScript==

var withdraw = document.querySelector('input[value="Withdraw"]');
var tillTotal = document.querySelector('input[name="amount"]');
var bank = document.querySelector('.always a[href="/bank/"]');

if (withdraw == null) {
    console.log('nothing to withdraw');
    document.addEventListener("keydown", (event) => {
        if (event.keyCode == 13) {
            console.log('enter');
            bank.click();
        }
    });
} else {
    withdraw.focus();
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址