您需要先安装一个扩展,例如 篡改猴、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 yet (working on it).
当前为
// ==UserScript== // @name Gats.io right click for spacebar // @version 2.0.9.1 // @description 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). // @author Rayan223 // @match https://gats.io // @icon none // @grant none // @license MIT // @namespace https://greasyforks.org/users/825882 // ==/UserScript== var rightClick = 0; var play = 0 let playButton = document.getElementById('playButton'); playButton.onclick = function() { ++play play() } document.addEventListener('mousedown', function(event){ if(event.button == 2){ ++rightClick } }); document.addEventListener('mouseup', function(event){ if(event.which== 2){ --rightClick } }); if (play == 1){ if (rightClick == 1){ RF.list[0].socket.send('k,5,1'); }else{ RF.list[0].socket.send('k,5,0'); } } //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'); //}