Dynamic Event API Toggle

help users with an button

Από την 13/05/2026. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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);

})();