Dynamic Event API Toggle

help users with an button

目前為 2026-05-13 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Dynamic Event API Toggle
// @namespace    http://tampermonkey.net/
// @run-at document-start
// @version      2026-05-12
// @description  help users with an button
// @license      All Rights Reserved
// @author       You
// @match        *://wazirwin7.vip/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// ==/UserScript==
// ==UserScript==
// @name         Real Odds Freeze
// @match        *://*/*
// @run-at       document-start
// ==/UserScript==

(function () {

    const script = document.createElement('script');

    script.textContent = `

        console.log("FREEZE SYSTEM ACTIVE");

        // --------------------------------
        // STATE
        // --------------------------------

        window.__FREEZE__ = false;

        // stores last real response
        window.__LAST_DATA__ = null;

        // --------------------------------
        // BUTTON
        // --------------------------------

        function createButton() {

            const btn = document.createElement("button");

            btn.innerText = "FREEZE: OFF";

            btn.style.position = "fixed";
btn.style.top = "100px";
btn.style.right = "10px";
btn.style.zIndex = "999999";

btn.style.padding = "12px 18px";
btn.style.background = "linear-gradient(135deg, #ff4d4d, #d60000)";
btn.style.color = "#fff";

btn.style.border = "none";
btn.style.borderRadius = "14px";

btn.style.fontSize = "14px";
btn.style.fontWeight = "600";
btn.style.fontFamily = "Inter, Arial, sans-serif";
btn.style.letterSpacing = "0.3px";

btn.style.cursor = "pointer";
btn.style.boxShadow = "0 8px 20px rgba(255, 0, 0, 0.35)";
btn.style.transition = "all 0.25s ease";

btn.style.backdropFilter = "blur(6px)";
btn.style.webkitBackdropFilter = "blur(6px)";

btn.onmouseenter = () => {
    btn.style.transform = "translateY(-2px) scale(1.03)";
    btn.style.boxShadow = "0 12px 25px rgba(255, 0, 0, 0.45)";
};

btn.onmouseleave = () => {
    btn.style.transform = "translateY(0) scale(1)";
    btn.style.boxShadow = "0 8px 20px rgba(255, 0, 0, 0.35)";
};

btn.onmousedown = () => {
    btn.style.transform = "scale(0.96)";
};

btn.onmouseup = () => {
    btn.style.transform = "scale(1.03)";
};

            btn.onclick = () => {

                window.__FREEZE__ =
                    !window.__FREEZE__;

                if (window.__FREEZE__) {

                    btn.innerText = "FREEZE: ON";
                    btn.style.background = "green";

                    console.log(
                        "%c FREEZE ENABLED ",
                        "background:green;color:white"
                    );

                } else {

                    btn.innerText = "FREEZE: OFF";
                    btn.style.background = "red";

                    console.log(
                        "%c FREEZE DISABLED ",
                        "background:red;color:white"
                    );
                }
            };

            document.body.appendChild(btn);
        }

        window.addEventListener("load", createButton);

        // --------------------------------
        // JSON INTERCEPT
        // --------------------------------

        const originalParse = JSON.parse;

        JSON.parse = function (...args) {

            const result = originalParse.apply(this, args);

            // odds payload
            if (
                result &&
                result.result &&
                Array.isArray(result.result)
            ) {

                // ----------------------------
                // NORMAL MODE
                // ----------------------------

                if (!window.__FREEZE__) {

                    // keep latest live data
                    window.__LAST_DATA__ =
                        structuredClone(result);

                    console.log(
                        "%c LIVE DATA ",
                        "background:blue;color:white"
                    );

                    return result;
                }

                // ----------------------------
                // FREEZE MODE
                // ----------------------------

                console.log(
                    "%c USING FROZEN DATA ",
                    "background:red;color:white"
                );

                // return old frozen snapshot
                if (window.__LAST_DATA__) {

                    return structuredClone(
                        window.__LAST_DATA__
                    );
                }
            }

            return result;
        };

    `;

    document.documentElement.appendChild(script);

})();