// ==UserScript== // @name Update Animations Panel // @version 0.1 // @match *://agma.io/** // @icon https://www.google.com/s2/favicons?sz=64&domain=agma.io // @grant unsafeWindow // @run-at document-start // @namespace brrr // @description update animation // @downloadURL none // ==/UserScript== let send; let status = false; const osend = WebSocket.prototype.send WebSocket.prototype.send = function () { send = (...args) => osend.call(this, ...args) return osend.apply(this, arguments) } unsafeWindow.anim = (id) => send(new Uint8Array([0xb3, id])); window.addEventListener('load', (event) => { $('body').append(`
`); for(let i = 1; i < 52; i++) $('#fushykng').append(`
${i}
`); document.addEventListener("keydown", event => { if (event.code == 'Numpad1') { if(status == false){ status = true; document.getElementById("fushykng").style.visibility = "hidden"; } else { status = false; document.getElementById("fushykng").style.visibility = "visible"; } } }); });