Dynamic Event API Toggle

help users with an button

2026-05-13 기준 버전입니다. 최신 버전을 확인하세요.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 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);

})();