在您安裝前,Greasy Fork希望您了解本腳本包含“可能不受歡迎的功能”,可能幫助腳本的作者獲利,而不能給你帶來任何收益。
作者從這份腳本獲得佣金, 例如透過重寫連結或提供優惠券代碼以加入推薦或附屬代碼
腳本的作者解釋:
Directs to a referral link when not logged in
Automatically Login and Click Faucet on Freeltc
// ==UserScript== // @name Freeltc.fun Auto Faucet(not working) // @namespace bekerja pada tampermonkey maupun violentmonkey // @version 0.3 // @description Automatically Login and Click Faucet on Freeltc // @author Ojo Ngono // @grant GM_getValue // @grant GM_setValue // @grant GM_addStyle // @grant GM_registerMenuCommand // @require https://update.greasyfork.org/scripts/439099/1203718/MonkeyConfig%20Modern%20Reloaded.js // @match https://freeltc.fun/* // @license Copyright OjoNgono // @antifeature referral-link Directs to a referral link when not logged in // ==/UserScript== const cfg = new MonkeyConfig({ title: 'Input Email Faucetpay:', menuCommand: true, params: { Email: { label: "Email Faucetpay", type: "text", default: '' }, } }); (function() { 'use strict'; window.addEventListener('load', () => { startProcess(); }); function startProcess() { const email = cfg.get('Email'); if (!email || email.trim() === '') { enforceLogoutWithWarning(); return; } else { enforceReferralUrl(); setTimeout(() => { if (!isLoggedIn()) { clickLoginJoinButton(); } else { fillEmailField(email); rotateUrls(); observeTurnstileAndClaim(); } }, 1000); } } function isLoggedIn() { const logoutMenuItem = document.querySelector('a[href="https://freeltc.fun/auth/logout"]'); const alertMessage = document.querySelector('.alert.alert-info.text-center'); return logoutMenuItem !== null || alertMessage !== null; } function enforceLogoutWithWarning() { if (isLoggedIn()) { alert('Please enter your email in the settings menu before using MY SCRIPT.'); const logoutButton = document.querySelector('a[href="https://freeltc.fun/auth/logout"]'); if (logoutButton) { logoutButton.click(); } else { window.location.replace("https://freeltc.fun/auth/logout"); } } } function enforceReferralUrl() { const email = cfg.get('Email'); if (!isLoggedIn() && email) { const currentUrl = window.location.href; const referralUrl = "https://freeltc.fun/?r=30435"; if (currentUrl === "https://freeltc.fun/" && !currentUrl.includes("?r=30435")) { window.location.replace(referralUrl); } } } function clickLoginJoinButton() { const loginButton = document.querySelector('a[data-target="#login"]'); if (loginButton) { loginButton.click(); } setTimeout(() => { const email = cfg.get('Email'); fillEmailField(email); const modalSubmitButton = document.querySelector('.modal-footer button[type="submit"].btn-outline'); if (modalSubmitButton) { modalSubmitButton.scrollIntoView({ behavior: 'smooth', block: 'center' }); modalSubmitButton.click(); } }, 1000); observeTurnstileAndClaim(); } function fillEmailField(email) { const emailInput = document.querySelector('#InputEmail'); if (emailInput) { emailInput.value = email; emailInput.dispatchEvent(new Event('input', { bubbles: true })); } } function observeTurnstileAndClaim() { const turnstileObserver = new MutationObserver(() => { const turnstileResponse = document.querySelector('input[name="cf-turnstile-response"]'); const claimNowButton = document.querySelector('#subbutt'); const modalSubmitButton = document.querySelector('.modal-footer button[type="submit"]'); if (turnstileResponse && turnstileResponse.value !== "") { if (claimNowButton) { claimNowButton.scrollIntoView({ behavior: 'smooth', block: 'center' }); claimNowButton.click(); } if (modalSubmitButton) { modalSubmitButton.scrollIntoView({ behavior: 'smooth', block: 'center' }); modalSubmitButton.click(); } turnstileObserver.disconnect(); } }); const turnstileInput = document.querySelector('input[name="cf-turnstile-response"]'); if (turnstileInput) { turnstileObserver.observe(turnstileInput, { attributes: true, attributeFilter: ['value'] }); } setTimeout(() => { const turnstileResponse = document.querySelector('input[name="cf-turnstile-response"]'); const claimNowButton = document.querySelector('#subbutt'); const modalSubmitButton = document.querySelector('.modal-footer button[type="submit"]'); if (turnstileResponse && turnstileResponse.value === "" && claimNowButton && claimNowButton.innerText.includes('Claim Now')) { claimNowButton.click(); } if (modalSubmitButton) { modalSubmitButton.click(); } }, 30000); } const urls = [ "https://freeltc.fun/faucet/currency/ltc", "https://freeltc.fun/faucet/currency/doge", "https://freeltc.fun/faucet/currency/usdt", "https://freeltc.fun/faucet/currency/sol", "https://freeltc.fun/faucet/currency/trx", "https://freeltc.fun/faucet/currency/bnb", "https://freeltc.fun/faucet/currency/bch", "https://freeltc.fun/faucet/currency/dash", "https://freeltc.fun/faucet/currency/dgb", "https://freeltc.fun/faucet/currency/eth", "https://freeltc.fun/faucet/currency/fey", "https://freeltc.fun/faucet/currency/zec", "https://freeltc.fun/faucet/currency/xrp", "https://freeltc.fun/faucet/currency/matic", "https://freeltc.fun/faucet/currency/btc", "https://freeltc.fun/faucet/currency/ada", "https://freeltc.fun/faucet/currency/ton", "https://freeltc.fun/faucet/currency/xlm", "https://freeltc.fun/faucet/currency/usdc", "https://freeltc.fun/faucet/currency/xmr", "https://freeltc.fun/faucet/currency/tara" ]; let currentIndex = parseInt(localStorage.getItem('currentIndex')) || 0; const rotateUrls = () => { if (window.location.href === "https://freeltc.fun/") { window.location.href = urls[currentIndex]; currentIndex = (currentIndex + 1) % urls.length; localStorage.setItem('currentIndex', currentIndex); } }; function checkForMessage() { const swalPopup = document.querySelector('.swal2-popup.swal2-show'); if (swalPopup) { const successMessageContainer = swalPopup.querySelector('.swal2-html-container'); if (successMessageContainer) { const successMessage = successMessageContainer.innerText || ""; const successIndicator = "has been sent to your FaucetPay account!"; const claimSuccessIndicator = "Success!"; const insufficientFundsMessage = "The faucet does not have sufficient funds for this transaction."; if (successMessage.includes(successIndicator) || successMessage.includes(claimSuccessIndicator)) { window.location.href = "https://freeltc.fun/"; } else if (successMessage.includes(insufficientFundsMessage)) { window.location.href = "https://freeltc.fun/"; } } } } setInterval(checkForMessage, 1000); })();