MineFun.io HP Debugger

Try to find HP variable in MineFun.io

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         MineFun.io HP Debugger
// @namespace    http://greasyfork.org/
// @version      0.1
// @description  Try to find HP variable in MineFun.io
// @author       unknown
// @match        *://minefun.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Wait 5 seconds after page load
    setTimeout(() => {
        console.log("🔍 Searching for HP-related variables...");

        // Loop through all global variables
        for (let key in window) {
            try {
                // Only check objects or functions
                if (typeof window[key] === 'object' || typeof window[key] === 'function') {
                    // If the variable name or content includes "hp"
                    if (JSON.stringify(window[key]).includes("hp") || key.toLowerCase().includes("hp")) {
                        console.log("🚑 Found something HP-related:", key, window[key]);
                    }
                }
            } catch (e) {
                // Some variables throw errors when accessed
            }
        }
    }, 5000); // Wait 5 seconds to let game load
})();