在您安裝前,Greasy Fork希望您了解本腳本包含“可能不受歡迎的功能”,可能幫助腳本的作者獲利,而不能給你帶來任何收益。
作者從這份腳本獲得佣金, 例如透過重寫連結或提供優惠券代碼以加入推薦或附屬代碼
腳本的作者解釋:
Directs to a referral link when not logged in
Automatically Login and Click Faucet
// ==UserScript== // @name ClaimCrypto.in AutoClaim Faucet // @namespace bekerja pada tampermonkey maupun violentmonkey // @version 0.1 // @author Ojo Ngono // @description Automatically Login and Click Faucet // @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://claimcrypto.in/* // @exclude https://claimcrypto.in/auth/login* // @icon https://i.ibb.co.com/XJSPdz0/large.png // @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: { Announcements: { type: 'text', default: 'Input Email Faucetpay', long: 2 }, Email: { label: "EmailFaucetpay", type: "text", default: '' } } }); (function() { 'use strict'; const email = cfg.get('Email'); const loggedIn = document.querySelector('i.fas.fa-user-circle.fa-2x'); function isLoggedIn() { const userIcon = document.querySelector('i.fas.fa-user-circle.fa-2x'); return userIcon !== null; } function isOnMainPage() { const currentUrl = window.location.href; return currentUrl === "https://claimcrypto.in/" || currentUrl === "https://claimcrypto.in/?r=1235"; } function enforceReferralUrl() { if (window.location.href.startsWith("https://claimcrypto.in") && !window.location.href.includes("?r=1235")) { if (!isLoggedIn()) { window.location.replace("https://claimcrypto.in/?r=1235"); } } } let enforceReferralInterval = setInterval(function() { if (!isLoggedIn()) { enforceReferralUrl(); } else { clearInterval(enforceReferralInterval); } }, 1000); window.addEventListener('load', () => { GM_addStyle('label[for="Timeout"] { white-space: pre-wrap; }'); if (loggedIn) { if (!email) { alert("Please enter your FaucetPay email in the SETTINGS MENU."); forceLogout(); } else { rotateUrls(); } } else { if (email) { fillLoginForm(email); } } }); function fillLoginForm(email) { const form = document.querySelector('form.user'); if (form) { const emailInput = form.querySelector('input[name="wallet"]'); if (emailInput) { emailInput.value = email; } const loginButton = form.querySelector('button[type="submit"]'); if (loginButton) { // Tambahkan jeda 5 detik sebelum klik tombol login setTimeout(() => { loginButton.click(); }, 5000); // 5000 ms = 5 detik } } } function forceLogout() { const logoutButton = document.querySelector('a[href="https://claimcrypto.in/auth/logout"]'); if (logoutButton) { logoutButton.click(); } } const urls = [ "https://claimcrypto.in/faucet/currency/ltc", "https://claimcrypto.in/faucet/currency/trx", "https://claimcrypto.in/faucet/currency/usdt", "https://claimcrypto.in/faucet/currency/doge", "https://claimcrypto.in/faucet/currency/bnb", "https://claimcrypto.in/faucet/currency/bch", "https://claimcrypto.in/faucet/currency/eth", "https://claimcrypto.in/faucet/currency/sol", "https://claimcrypto.in/faucet/currency/dash", "https://claimcrypto.in/faucet/currency/dgb", "https://claimcrypto.in/faucet/currency/fey", "https://claimcrypto.in/faucet/currency/zec" ]; let currentIndex = parseInt(localStorage.getItem('currentIndex')) || 0; function rotateUrls() { if (isLoggedIn() && isOnMainPage()) { window.location.href = urls[currentIndex]; currentIndex = (currentIndex + 1) % urls.length; localStorage.setItem('currentIndex', currentIndex); } } setInterval(() => { if (isLoggedIn() && isOnMainPage()) { rotateUrls(); } }, 5000); function clickClaimButton() { const claimButton = document.querySelector('#subbutt'); if (claimButton) { claimButton.scrollIntoView({ behavior: "smooth", block: "center" }); setTimeout(() => { claimButton.click(); }, 2000); } } setInterval(clickClaimButton, 4000); 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 = "The faucet does not have sufficient funds for this transaction."; const insufficientFundsMessage = " has been sent to your FaucetPay account!"; if (successMessage.includes(successIndicator) || successMessage.includes(insufficientFundsMessage)) { window.location.href = "https://claimcrypto.in/"; return; } } } const goClaimButton = document.querySelector('h4.next-button a.btn.btn-primary'); if (goClaimButton && goClaimButton.innerText.includes('Go Claim')) { goClaimButton.click(); } const alertDanger = document.querySelector('.alert-danger'); if (alertDanger) { const alertText = alertDanger.innerText || ""; const dailyLimitMessage = "Daily claim limit for this coin reached, please comeback again tomorrow."; setTimeout(() => { if (alertText.includes(dailyLimitMessage)) { window.location.replace("https://claimcrypto.in/"); } }, 1000); } } setInterval(checkForMessage, 1000); function clickTryAgain() { const tryAgainButton = document.querySelector('a.btn.btn-primary'); if (tryAgainButton && tryAgainButton.textContent.includes('Try Again')) { tryAgainButton.click(); } } setInterval(clickTryAgain, 2000); })();