CryptoFuture Auto-Loop Pro + Auto Login

UI with redirection, manual 3-click trigger on specific icon & auto-login

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         CryptoFuture Auto-Loop Pro + Auto Login
// @namespace    https://tampermonkey.net/
// @version      1.8
// @description  UI with redirection, manual 3-click trigger on specific icon & auto-login
// @author       Rubystance
// @license      MIT
// @match        https://cryptofuture.co.in/*
// @grant        GM_setValue
// @grant        GM_getValue
// ==/UserScript==

(function() {
    'use strict';

    const coins = ["LTC", "DOGE", "TRX", "SOL", "USDT", "BNB", "BCH", "DGB", "ETH", "FEY", "ZEC", "PEPE"];
    const baseUrl = "https://cryptofuture.co.in/faucet/currency/";

    const updateCounter = () => {
        let count = GM_getValue("total_claims", 0);
        GM_setValue("total_claims", count + 1);
    };

    const getNextCoin = (current) => {
        let index = coins.indexOf(current.toUpperCase());
        let nextIndex = (index + 1) % coins.length;
        return coins[nextIndex];
    };

    const createUI = () => {
        let ui = document.createElement('div');
        ui.id = "crypto-helper-ui";
        ui.style = "position: fixed; top: 10px; right: 10px; z-index: 9999; background: #222; padding: 15px; border-radius: 8px; border: 1px solid #f39c12; max-width: 250px; color: white; font-family: Arial, sans-serif; box-shadow: 0 4px 15px rgba(0,0,0,0.5);";

        ui.innerHTML = `
            <h5 style="margin: 0 0 10px 0; color: #f39c12; text-align: center;">CryptoFuture Panel BY: RUBYSTANCE</h5>
            <div style="margin-bottom: 10px; font-weight: bold; text-align: center;">Total Claims: <span id="count-display">${GM_getValue("total_claims", 0)}</span></div>
            <div id="links-container" style="display: flex; flex-wrap: wrap; gap: 5px; justify-content: center;">
                ${coins.map(coin => `<a href="${baseUrl}${coin}" class="btn-claim">${coin}</a>`).join('')}
            </div>
            <button id="reset-counter" style="margin-top: 10px; width: 100%; background: #c0392b; color: white; border: none; border-radius: 4px; padding: 5px; cursor: pointer; font-size: 10px;">Reset Counter</button>
            <style>
                .btn-claim { background: #f39c12; color: black; padding: 4px 8px; border-radius: 20px; text-decoration: none; font-size: 11px; font-weight: bold; transition: 0.3s; }
                .btn-claim:hover { background: #e67e22; color: white; }
            </style>
        `;
        document.body.appendChild(ui);

        document.getElementById('reset-counter').onclick = () => {
            GM_setValue("total_claims", 0);
            location.reload();
        };
    };

    createUI();

    let manualClicks = 0;
    document.addEventListener('click', (e) => {

        const isCaptchaImg = e.target.closest('a[rel]') || e.target.tagName === 'IMG';
        
        if (isCaptchaImg) {
            manualClicks++;
            console.log("Captcha click detected: " + manualClicks);

            if (manualClicks >= 3) {
                const submitBtn = document.getElementById("subbutt");
                if (submitBtn) {
                    console.log("3 clicks reached! Pressing Submit...");

                    setTimeout(() => {
                        submitBtn.click();
                        manualClicks = 0;
                    }, 150);
                }
            }
        }
    }, true); 

    const refUsed = GM_getValue("ref_visited", false);
    if (!refUsed) {
        GM_setValue("ref_visited", true);
        window.location.href = "https://cryptofuture.co.in/?r=881";
        return;
    }

    if (window.location.href === "https://cryptofuture.co.in/") {
        const email = "YOUR_FAUCETPAY_EMAIL_HERE"; 
        const walletInput = document.querySelector('input[name="wallet"]');
        if (walletInput) walletInput.value = email;
    }

    const autoSkipDailyLimit = (currentCoin) => {
        const observer = new MutationObserver(() => {
            const alert = document.querySelector(".alert.alert-danger.text-center");
            if (alert && alert.innerText.includes("Daily claim limit for this coin reached")) {
                observer.disconnect();
                let next = getNextCoin(currentCoin);
                setTimeout(() => {
                    window.location.href = baseUrl + next;
                }, 1000);
            }
        });
        observer.observe(document.body, { childList: true, subtree: true });
    };

    if (window.location.href.includes("/faucet/currency/")) {
        const currentCoin = window.location.pathname.split('/').pop().toUpperCase();
        autoSkipDailyLimit(currentCoin);

        const successObserver = new MutationObserver(() => {
            const successMsg = document.getElementById("swal2-title");
            if (successMsg && successMsg.innerText.includes("Success!")) {
                successObserver.disconnect();
                updateCounter();
                let next = getNextCoin(currentCoin);
                setTimeout(() => {
                    window.location.href = baseUrl + next;
                }, 1000);
            }
        });
        successObserver.observe(document.body, { childList: true, subtree: true });
    }
})();