IndiaEarnX Auto Redirect

Auto skip indiaearnx redirect pages

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το 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         IndiaEarnX Auto Redirect
// @namespace    https://tampermonkey.net/
// @version      1.0
// @description  Auto skip indiaearnx redirect pages
// @match        *://*.indiaearnx.com/*
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    // URL params check
    const url = new URL(window.location.href);
    const params = url.searchParams;

    // agar final url encoded form me mile
    const target = params.get("url") || params.get("dest") || params.get("r");

    if(target){
        try {
            let decoded = decodeURIComponent(target);
            console.log("Redirecting to:", decoded);
            window.location.href = decoded;
        } catch(e){
            console.log("Decode error", e);
        }
    }

    // meta refresh bhi check karega
    const meta = document.querySelector('meta[http-equiv="refresh"]');
    if(meta){
        const content = meta.getAttribute("content");
        const match = content.match(/url=(.*)/i);
        if(match && match[1]){
            window.location.href = match[1];
        }
    }
})();