florr mob count script

shows all mob count

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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;
    });
}