cybertyrant.com -and others- link shortener auto-skipper

Auto-click the buttons and redirect to the download link.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         cybertyrant.com -and others- link shortener auto-skipper
// @version      1.2
// @description  Auto-click the buttons and redirect to the download link.
// @author       Rust1667
// @match        *://cybertyrant.com/*
// @match        *://profitshort.com/*
// @match        *://courselinkfree.us/*
// @match        *://technorozen.com/*
// @match        *://hubdrive.me/*
// @match        *://bestadvise4u.com/*
// @match        *://newztalkies.com/*
// @match        *://10desires.org/*
// @match        *://theapknews.shop/*
// @match        *://aiotechnical.com/*
// @match        *://cryptonewzhub.com/*
// @match        *://trendzguruji.me/*
// @match        *://techvybes.com/*
// @match        *://wizitales.com/*
// @match        *://101desires.com/*
// @match        *://gdspike.com/*
// @grant        none
// @namespace https://greasyfork.org/users/980489
// ==/UserScript==

(function() {
    'use strict';

    // Variable to store the interval ID
    var intervalId;

    // Variable to track whether the link is found
    var linkFound = false;

    // Function to check and redirect, and simulate a click if 'rd_btn' is found
    function checkRedirectAndClick() {
        // If the link is found, stop the interval
        if (linkFound) {
            clearInterval(intervalId);
            return;
        }

        // Find the element with class 'rd_btn'
        var rdBtnElement = document.querySelector('.rd_btn');

        // Check if the element is found and contains an href attribute
        if (rdBtnElement && rdBtnElement.href) {
            var rdBtnHref = rdBtnElement.href;

            if (rdBtnHref.includes("/?re=")) {
              // Show the link in an alert
              alert("Download link: " + rdBtnHref);
            }

            // Redirect the current window to the href link
            window.location.href = rdBtnHref;

            // Set the linkFound variable to true
            linkFound = true;

            // Stop the interval once the link is found
            clearInterval(intervalId);
        } else if (rdBtnElement) {
            console.log("trying to click...");
            // Simulate a click on the 'rd_btn' element
            rdBtnElement.click();
        }
    }

    // Start the interval and store the interval ID
    intervalId = setInterval(checkRedirectAndClick, 1000); // Check every 1000 milliseconds (1 second)
})();