您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Warning! This script is currently under testing, it could not work correctly until it is realesed. This script allows you to use your right click for the abilities you usually use with spacebar. However it wont work for shield yet (working on it). In the future I also plan on reworking it to configure entirely the keybinds to be customizable
当前为
// ==UserScript== // @name [in beta-testing] Gats.io right click for spacebar // @version 2.1.3 // @description Warning! This script is currently under testing, it could not work correctly until it is realesed. This script allows you to use your right click for the abilities you usually use with spacebar. However it wont work for shield yet (working on it). In the future I also plan on reworking it to configure entirely the keybinds to be customizable // @author Rayan223 // @match https://gats.io // @icon none // @grant none // @license MIT // @namespace https://gf.qytechs.cn/users/825882 // ==/UserScript== let div_data = document.body.innerHTML + '<div id="ingameconsole"><p id="play_data">0</p></div>'; var play = 0 document.body.innerHTML = div_data; var p_data = document.getElementById('play_data'); function checkPlaying() { var menu = document.getElementById('slct'); if (menu.className == "container"){ play = 0 p_data.textContent = '0' }else{ play = 1 p_data.textContent = '0' } setTimeout(checkPlaying,100) } document.addEventListener('mousedown', function(event){ if (play == 1){ if(event.which == 2){ RF.list[0].socket.send('k,5,1'); } } }); document.addEventListener('mouseup', function(event){ if (play == 1){ if(event.which == 2){ RF.list[0].socket.send('k,5,0'); } } }); checkPlaying() //window.oncontextmenu = function () //{ // dash(); // setTimeout(afterdash,50); // return false; //} //function dash(){ // RF.list[0].socket.send('k,5,1'); //} //function afterdash(){ // RF.list[0].socket.send('k,5,0'); //}
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址