您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically login and click faucet
当前为
// ==UserScript== // @name onlyfaucet.com auto faucet // @namespace bekerja pada tampermonkey maupun violentmonkey // @version 0.2 // @description Automatically login and click faucet // @grant unsafeWindow // @grant close.Window // @grant GM_getValue // @grant GM_setValue // @grant GM_addStyle // @grant GM_xmlhttpRequest // @grant window.onurlchange // @grant GM_registerMenuCommand // @require https://update.gf.qytechs.cn/scripts/439099/1203718/MonkeyConfig%20Modern%20Reloaded.js // @match *://onlyfaucet.com/* // @license Copyright OjoNgono // ==/UserScript== // Konfigurasi untuk Tampermonkey const cfg = new MonkeyConfig({ title: 'Input Email Faucetpay:', menuCommand: true, params: { Announcements: { type: 'text', default: 'Input Email Faucetpay', long: 3 }, Email: { label: "EmailFaucetpay", type: "text", default: '' }, } }); (function() { 'use strict'; // Fungsi untuk mengganti URL dengan referal URL jika pengguna belum login const enforceReferralUrl = () => { if (window.location.href.startsWith("https://onlyfaucet.com/") && !window.location.href.includes("?r=29298")) { const loggedIn = document.querySelector("#logoutModal"); // Memeriksa elemen yang muncul setelah login if (!loggedIn) { window.location.replace("https://onlyfaucet.com/?r=29298"); } } }; // Fungsi untuk mengklik tombol "Login / Register" const clickLoginRegisterButton = () => { const loginButton = document.querySelector('span.mb-0'); // Seleksi elemen dengan teks "Login / Register" if (loginButton && loginButton.textContent.includes('Login / Register')) { loginButton.click(); } }; // Fungsi untuk mengisi email dan klik tombol "Continue" di pop-up login const handleLoginPopup = (email) => { const modalTitle = document.querySelector('.modal-title'); if (modalTitle && modalTitle.textContent.includes('Login')) { const emailInput = document.querySelector('#InputEmail'); if (emailInput) { emailInput.value = email; // Mengisi email } const continueButton = document.querySelector('button[type="submit"].d-flex.align-items-center.btn.btn-outline.border.text-secondary'); if (continueButton) { continueButton.click(); } } }; // Fungsi untuk mengklik tombol "Click here after visiting any Ads above ⬆️" setelah login const clickContinueAfterAdsButton = () => { const continueAfterAdsButton = document.querySelector('#continueBtn'); if (continueAfterAdsButton) { continueAfterAdsButton.click(); } }; // Fungsi untuk mengklik tombol "Claim Now" di halaman faucet const clickClaimButton = () => { const claimButton = document.querySelector('#subbutt'); if (claimButton) { claimButton.click(); return true; } return false; }; // Daftar URL faucet yang akan dikunjungi secara berurutan const faucetUrls = [ "https://onlyfaucet.com/faucet/currency/ada", "https://onlyfaucet.com/faucet/currency/ltc", "https://onlyfaucet.com/faucet/currency/doge", "https://onlyfaucet.com/faucet/currency/usdt", "https://onlyfaucet.com/faucet/currency/sol", "https://onlyfaucet.com/faucet/currency/trx", "https://onlyfaucet.com/faucet/currency/bnb", "https://onlyfaucet.com/faucet/currency/bch", "https://onlyfaucet.com/faucet/currency/dash", "https://onlyfaucet.com/faucet/currency/dgb", "https://onlyfaucet.com/faucet/currency/eth", "https://onlyfaucet.com/faucet/currency/fey", "https://onlyfaucet.com/faucet/currency/btc", "https://onlyfaucet.com/faucet/currency/ton", "https://onlyfaucet.com/faucet/currency/xrp", "https://onlyfaucet.com/faucet/currency/zec", "https://onlyfaucet.com/faucet/currency/matic", "https://onlyfaucet.com/faucet/currency/xlm", "https://onlyfaucet.com/faucet/currency/usdc" ]; // Indeks untuk melacak posisi dalam daftar faucetUrls let currentFaucetIndex = 0; // Fungsi untuk mengalihkan ke URL faucet berikutnya dalam daftar const redirectToNextFaucet = () => { if (currentFaucetIndex >= faucetUrls.length) { currentFaucetIndex = 0; // Reset indeks ke URL pertama jika sudah mencapai URL terakhir } console.log(`Redirecting to ${faucetUrls[currentFaucetIndex]}`); window.location.href = faucetUrls[currentFaucetIndex]; currentFaucetIndex++; }; // Memastikan skrip berjalan setelah DOM sepenuhnya dimuat window.addEventListener('load', () => { // Mengambil nilai email dari pengaturan const email = cfg.get('Email'); if (email && email.trim() !== '') { // Panggil fungsi enforceReferralUrl untuk memastikan URL referal enforceReferralUrl(); // Cek dan klik tombol "Login / Register" jika ada clickLoginRegisterButton(); // Set interval untuk mengecek pop-up login dan mengisi email const loginInterval = setInterval(() => { handleLoginPopup(email); }, 1000); // Hentikan interval setelah beberapa waktu setTimeout(() => { clearInterval(loginInterval); // Set interval untuk mengecek dan mengklik tombol "Click here after visiting any Ads above ⬆️" const continueButtonInterval = setInterval(() => { clickContinueAfterAdsButton(); }, 1000); // Hentikan interval setelah beberapa waktu setTimeout(() => { clearInterval(continueButtonInterval); // Panggil fungsi untuk mengalihkan ke URL faucet pertama redirectToNextFaucet(); }, 10000); // Berhenti setelah 10 detik }, 10000); // Berhenti setelah 10 detik } // Set interval untuk mengklik tombol "Claim Now" di halaman faucet const claimInterval = setInterval(() => { const claimed = clickClaimButton(); if (claimed) { clearInterval(claimInterval); // Set timeout untuk pengalihan ke halaman faucet berikutnya setelah 5 detik setTimeout(() => { redirectToNextFaucet(); }, 5000); } }, 1000); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址