IndiaEarnX Auto Redirect

Auto skip indiaearnx redirect pages

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==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];
        }
    }
})();