您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Autofill email, wait for CAPTCHA, login and claim DGB.
// ==UserScript== // @name Auto Claim - Free LTC,DGB and Others. // @namespace http://tampermonkey.net/ // @version 1.0 // @description Autofill email, wait for CAPTCHA, login and claim DGB. // @author Rubystance // @license MIT // @match https://freeltc.fun/* // @grant none // ==/UserScript== (function () { 'use strict'; const email = "YOUR_FAUCETPAY_EMAIL_HERE"; // <-- Replace this with your FaucetPay email function waitForElement(selector, timeout = 10000) { return new Promise((resolve, reject) => { const intervalTime = 100; let elapsed = 0; const interval = setInterval(() => { const el = document.querySelector(selector); if (el) { clearInterval(interval); resolve(el); } else if (elapsed >= timeout) { clearInterval(interval); reject(`Element ${selector} not found after ${timeout}ms.`); } elapsed += intervalTime; }, intervalTime); }); } async function autoLogin() { if (window.location.pathname === "/" || window.location.pathname === "/index") { try { const emailInput = await waitForElement('input[name="wallet"]'); emailInput.value = email; const observer = new MutationObserver(() => { const captchaStatus = document.querySelector('.iconcaptcha-modal__body-title'); if (captchaStatus && captchaStatus.textContent.includes("Verification complete")) { const loginBtn = document.querySelector('button[type="submit"]'); if (loginBtn) { loginBtn.click(); observer.disconnect(); } } }); observer.observe(document.body, { childList: true, subtree: true }); } catch (e) { console.error("Login error:", e); } } } async function goToLTCFaucet() { if (window.location.pathname === "/dashboard") { const ltcLink = await waitForElement('a[href="https://freeltc.fun/faucet/currency/dgb"]'); // <<-- If you want to claim other crypto SOL/DOGE/FEY. ltcLink.click(); } } async function autoClaimLTC() { if (window.location.pathname.startsWith("/faucet/currency/dgb")) { // <<-- If you want to claim other crypto SOL/DOGE/FEY. const observer = new MutationObserver(() => { const captchaStatus = document.querySelector('.iconcaptcha-modal__body-title'); if (captchaStatus && captchaStatus.textContent.includes("Verification complete")) { const claimBtn = document.getElementById("subbutt"); if (claimBtn) { claimBtn.click(); observer.disconnect(); setTimeout(() => { const goClaimBtn = document.querySelector('a.btn.btn-primary[href="https://freeltc.fun/faucet/currency/dgb"]'); // <<-- If you want to claim other crypto SOL/DOGE/FEY. if (goClaimBtn) { goClaimBtn.click(); } }, 3000); } } }); observer.observe(document.body, { childList: true, subtree: true }); } } window.addEventListener('load', () => { autoLogin(); goToLTCFaucet(); autoClaimLTC(); }); })();