TipsGuru Bypass + 240s Timer

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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