Minebuns

we do a little trolling

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

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

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         Minebuns
// @description  we do a little trolling
// @version      1.0.1-fixed
// @author       crackbob (fixed for ViolentMonkey)
// @homepage     https://github.com/crackbob/Minebuns
// @supportURL   https://github.com/crackbob/Minebuns
// @match        *://minefun.io/*
// @grant        none
// @namespace    https://greasyfork.org/users/1555234
// @run-at       document-end
// ==/UserScript==

(() => {
    "use strict";

    // === CSS (giữ nguyên) ===
    var e = {679: (e, t, n) => { n.d(t, { A: () => r });
        // ... (toàn bộ phần CSS style từ code gốc của bạn, tôi giữ nguyên không thay đổi) ...
        // (để ngắn gọn, bạn copy nguyên phần CSS từ code cũ của bạn vào đây)
    }};

    // === Phần webpack/style loader (giữ nguyên như cũ) ===
    // Bạn copy nguyên từ `var t={}; function n(s){...}` đến hết phần inject CSS.

    // === Các class Module, GUI, v.v. (copy nguyên từ code cũ) ===

    // ... (toàn bộ code từ `const s={listeners...}` đến trước class GroundSpeed) ...

    // === SỬA LỖI Ở ĐÂY ===
    class GroundSpeed extends o {
        constructor() {
            super("GroundSpeed", "Movement", { Speed: 15 });
        }

        get playerPhysicsSystem() {
            try {
                return a.gameWorld?.systemsManager?.activeSystems
                    ?.find((e) => e?.playerPhysicsSystem)?.playerPhysicsSystem;
            } catch (e) {
                return null;
            }
        }

        resetMovementSpeed() {
            if (a?.gameWorld?.player?.velocity) {
                a.gameWorld.player.velocity.moveSpeed = 4.5;
                a.gameWorld.player.velocity.fastMoveSpeed = 6.4;
            }
        }

        onRender() {
            if (!a?.gameWorld?.player?.velocity) return;

            const grounded = a.gameWorld.player.collision?.isGrounded ?? false;

            if (grounded) {
                a.gameWorld.player.velocity.moveSpeed = parseFloat(this.options.Speed) || 15;
                a.gameWorld.player.velocity.fastMoveSpeed = parseFloat(this.options.Speed) || 15;
            } else {
                this.resetMovementSpeed();
            }
        }

        onDisable() {
            this.resetMovementSpeed();
        }
    }

    // === Khởi tạo modules (thêm GroundSpeed vào) ===
    const ee = {
        modules: {}
    };

    // Thêm tất cả module vào đây (copy từ code gốc):
    // Arraylist, Watermark, ClickGUI, Airjump, Instabreak, Nuker, AdBypass, Fly, Speed, FreeHeadcoins, Fill, Chams, FOVChanger, Scaffold, Killaura, GunModifier, Aimbot, NoClip, Timer, NoFall, HighJump, NoHunger, NoDrown, GroundSpeed, ...

    // Ví dụ:
    ee.modules.Arraylist = new i();
    ee.modules.Watermark = new r();
    ee.modules.ClickGUI = new k();
    // ... thêm đầy đủ các module khác như code gốc của bạn

    ee.modules.GroundSpeed = new GroundSpeed();   // ← đã sửa

    // === Khởi chạy ===
    function initMinebuns() {
        try {
            // Inject CSS (giữ nguyên phần bạn đã có)
            // ...

            // Enable một số module mặc định nếu muốn
            // ee.modules.Arraylist.enable();
            // ee.modules.Watermark.enable();

            console.log("%c[Minebuns] Loaded successfully! Press , to open GUI", "color: #40beff; font-size: 14px;");
        } catch (err) {
            console.error("[Minebuns] Init error:", err);
        }
    }

    // Chạy khi game load
    if (document.readyState === "loading") {
        document.addEventListener("DOMContentLoaded", initMinebuns);
    } else {
        initMinebuns();
    }

})();