This script is under developpement. an old version of it works but not for shield here: https://greasyfork.org/fr/scripts/433998-in-beta-testing-gats-io-right-click-for-spacebar?version=987557. I'm currently having issues with the mouse event, google chome has changed it to pointer and it is not easy to handle it but i'm trying my best.
目前為
// ==UserScript==
// @name [in beta-testing] Gats.io right click for spacebar
// @version 2.3.2
// @description This script is under developpement. an old version of it works but not for shield here: https://greasyfork.org/fr/scripts/433998-in-beta-testing-gats-io-right-click-for-spacebar?version=987557. I'm currently having issues with the mouse event, google chome has changed it to pointer and it is not easy to handle it but i'm trying my best.
// @author Rayan223
// @match https://gats.io
// @icon none
// @grant none
// @license MIT
// @namespace https://greasyfork.org/users/825882
// ==/UserScript==
document.body.insertAdjacentHTML("beforebegin",'<div><p id="text">None</p></div>')
canvas = document.getElementById('canvas')
canvas.addEventListener('mousedown', e => {
document.getElementById('text').textContent = e
})