Tipsguru Blank + Timer Redirect

Clears page, shows timer, then redirects

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

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

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

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

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

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         Tipsguru Blank + Timer Redirect
// @namespace    http://tampermonkey.net/
// @version      2.0
// @description  Clears page, shows timer, then redirects
// @match        https://tipsguru.in/*
// @match        http://tipsguru.in/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    let timeLeft = 240; // seconds

    // Wait until DOM is ready, then replace everything
    window.addEventListener('DOMContentLoaded', () => {

        // Clear entire page
        document.documentElement.innerHTML = "";

        // Create clean HTML
        const wrapper = document.createElement("div");
        wrapper.style.display = "flex";
        wrapper.style.justifyContent = "center";
        wrapper.style.alignItems = "center";
        wrapper.style.height = "100vh";
        wrapper.style.background = "#0f0f0f";
        wrapper.style.color = "#fff";
        wrapper.style.fontFamily = "Arial, sans-serif";
        wrapper.style.flexDirection = "column";

        const title = document.createElement("h1");
        title.innerText = "Please Wait...";
        title.style.marginBottom = "10px";

        const timer = document.createElement("div");
        timer.style.fontSize = "28px";
        timer.style.fontWeight = "bold";

        wrapper.appendChild(title);
        wrapper.appendChild(timer);
        document.body.appendChild(wrapper);

        // Countdown logic
        const interval = setInterval(() => {
            timer.innerText = `Redirecting in ${timeLeft}s`;
            timeLeft--;

            if (timeLeft < 0) {
                clearInterval(interval);
                window.location.href = "https://rarestudy.in/keyloginsuccess";
            }
        }, 1000);

    });

})();