TipsGuru Bypass + 240s Timer

Decodes link, clears page, waits 240s, then redirects.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         TipsGuru Bypass + 240s Timer
// @namespace    http://tampermonkey.net/
// @version      5.0
// @description  Decodes link, clears page, waits 240s, then redirects.
// @author       Chat G
// @match        *://tipsguru.in/prolink.php*
// @match        *://*.tipsguru.in/prolink.php*
// @run-at       document-start
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // URL se ID nikalna
    let params = new URLSearchParams(window.location.search);
    let id = params.get('id');

    if (id) {
        try {
            // Link decode karna
            let finalUrl = atob(decodeURIComponent(id));

            // Agar link sahi hai, toh timer shuru karo
            if(finalUrl && finalUrl.includes('http')) {
                startTimerAndRedirect(finalUrl);
            }
        } catch(e) {
            console.log("Error:", e);
        }
    }

    function startTimerAndRedirect(url) {
        // Page load rok do taaki ads load na hon
        window.stop();

        // Poori screen saaf kardo
        document.documentElement.innerHTML = '<head></head><body></body>';

        // Timer wala box banao (Design copied from your reference)
        const container = document.createElement('div');
        container.style.cssText = `
            display:flex;
            justify-content:center;
            align-items:center;
            height:100vh;
            font-size:40px;
            font-family:Arial,sans-serif;
            background:#000;
            color:#0f0;
            margin:0;
        `;
        
        // Body ka margin 0 karo taaki full screen black dikhe
        document.body.style.margin = "0";
        document.body.appendChild(container);

        // 240 Seconds ka time set kiya
        let timeLeft = 240;

        container.textContent = `Redirecting in ${timeLeft}s`;

        // Countdown shuru
        const timer = setInterval(() => {
            timeLeft--;
            container.textContent = `Redirecting in ${timeLeft}s`;

            if (timeLeft <= 0) {
                clearInterval(timer);
                // Time khatam hone par redirect
                window.location.href = url;
            }
        }, 1000);
    }
})();