您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script allows you to use your right click for the abilities you usually use with spacebar. However it wont work for shield (working on it).
当前为
// ==UserScript== // @name Gats.io right click for spacebar // @version 2.2.17 // @description This script allows you to use your right click for the abilities you usually use with spacebar. However it wont work for shield (working on it). // @author Rayan223 // @match https://gats.io/ // @icon none // @grant none // @namespace https://gf.qytechs.cn/users/825882 // ==/UserScript== var shieldmode = 0; let infinite = 9999999999999999; var ondash; var timer = 0; var isrightpressed = false; window.onmousedown = function (event){ if (event.which == 3){ isrightpressed = true; while (event.which == 3 && timer<501){ ++timer isrightpressed = event.which == 3; } dash(); if (timer > 499){ if (ondash){ afterdash(); dash(); ondash = setTimeout(afterdash,infinite); }else{ ondash = setTimeout(afterdash,infinite); } }else{ if (ondash){ afterdash(); ondash = setTimeout(afterdash,250); }else{ ondash = setTimeout(afterdash,250); } } timer = 0 }else{ afterdash(); } } function dash(){ RF.list[0].socket.send('k,5,1'); } function afterdash(){ RF.list[0].socket.send('k,5,0'); shieldmode = 0; clearTimeout(ondash); ondash = null; }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址