very pro script

shows all mob count

目前為 2022-10-27 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         very pro script
// @namespace    http://tampermonkey.net/
// @version      0.1
// @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;
    });
}