您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Turn spacebar into AutoFire toggle (E)
// ==UserScript== // @name Space AutoFire // @namespace https://gf.qytechs.cn/en/users/467236-diepiodiscord // @version 1 // @description Turn spacebar into AutoFire toggle (E) // @author diep.io#7444 // @match https://diep.io // @grant none // ==/UserScript== (function() { 'use strict'; var keyDown = document.createEvent("Events"); keyDown.initEvent("keydown", true, true); keyDown.keyCode = 69; // 69 is the keyCode for E var keyUp = document.createEvent("Events"); keyUp.initEvent("keyup", true, true); keyUp.keyCode = 69; document.addEventListener('keydown', function(event) { if (event.keyCode === 32) // spacebar { event.cancelBubble = true; // Prevent spacebar from firing when held down, we are changing it to a toggle if (event.repeat) return; // Disable holding down key to spam window.dispatchEvent(keyDown); window.dispatchEvent(keyUp); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址