Dynamic Event API Toggle

help users with an button

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==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);

})();