florr mob count script

shows all mob count

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         florr mob count script
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  shows all mob count
// @author       bismuth
// @match        https://florr.io/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=florr.io
// @grant        none
// @license      none
// ==/UserScript==
WebAssembly.instantiateStreaming = (r, i) => (r.arrayBuffer().then(b => WebAssembly.instantiate(b, i)));
const _instantiate = WebAssembly.instantiate;
WebAssembly.instantiate = (bin,imports) => {
    const buf = new Uint8Array(bin);
    const length = buf.length-10;
    for (let n = 0; n < length; n++) {
        if (buf[n] === 67 &&
            buf[n+1] === 0 &&
            buf[n+2] === 0 &&
            buf[n+3] === 32 &&
            buf[n+4] === 65 &&
            buf[n+5] === 146 &&
            buf[n+6] === 33 &&
            buf[n+7] === 7 &&
            buf[n+8] === 11) {
            buf.set([0x41,0,0x2a,0,0],n);
            break;
        }
    }
    return _instantiate(bin, imports).then(wasm => {
        for (const exp of Object.values(wasm.instance.exports)) {
            if (exp.buffer) {
                const buffer = exp.buffer;
                const F32 = new Float32Array(buffer);
                F32[0] = 10;
                document.addEventListener('keydown', ({code}) => { if (code === 'KeyE') F32[0] = 80 - F32[0]; });
                break;
            }
        }
        return wasm;
    });
}