LinksFly Auto Claim DGB, LTC, FEY and others.

Automatically logs in and claims DGB, LTC and others on LinksFly faucet.

当前为 2025-08-15 提交的版本,查看 最新版本

// ==UserScript==
// @name         LinksFly Auto Claim DGB, LTC, FEY and others.
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Automatically logs in and claims DGB, LTC and others on LinksFly faucet.
// @author       Rubystance
// @license      MIT
// @match        https://linksfly.link/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    const WALLET_EMAIL = "YOUR_FAUCETPAY_EMAIL_HERE;" // <-- Replace with your FaucetPay email

    function waitForElement(selector, callback, interval = 500, timeout = 30000) {
        const startTime = Date.now();
        const timer = setInterval(() => {
            const el = document.querySelector(selector);
            if (el) {
                clearInterval(timer);
                callback(el);
            } else if (Date.now() - startTime > timeout) {
                clearInterval(timer);
                console.warn("Timeout: Element not found -", selector);
            }
        }, interval);
    }

    if (window.location.pathname === "/") {
        waitForElement('input[name="wallet"]', (input) => {
            input.value = WALLET_EMAIL;
            console.log("Email filled in:", WALLET_EMAIL);

            const checkCaptchaAndLogin = setInterval(() => {
                const captchaCompleted = document.querySelector('.iconCaptcha.success');
                const loginBtn = document.querySelector('button[type="submit"]');

                if (captchaCompleted && loginBtn) {
                    console.log("Captcha solved. Logging in...");
                    loginBtn.click();
                    clearInterval(checkCaptchaAndLogin);
                }
            }, 1000);
        });
    }

    else if (window.location.pathname === "/app/dashboard") {
        waitForElement('a[href*="/app/faucet?currency=DGB"]', (link) => { // <<-- If you want to claim other crypto SOL/DOGE/FEY.
            console.log("Clicking on Claim DGB...");
            link.click();
        });
    }

    else if (window.location.pathname === "/app/faucet") {
        waitForElement('button.claim-button', (btn) => {
            const checkCaptchaAndClaim = setInterval(() => {
                const captchaCompleted = document.querySelector('.iconCaptcha.success');
                if (captchaCompleted) {
                    console.log("Captcha solved. Claiming reward...");
                    btn.click();
                    clearInterval(checkCaptchaAndClaim);
                }
            }, 1000);
        });
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址