在您安装前,Greasy Fork镜像 希望您知道此脚本包含可能不受欢迎的功能,也许会帮助脚本作者获利,而不能给你带来任何收益。
作者从这份脚本获得佣金,例如透过改写链接或提供优惠券代码以包含推荐或附属代码。
脚本作者的说明:
Directs to a referral link when not logged in
Login otomatis, scroll ke tombol Claim, dan klik dengan jeda
目前为
// ==UserScript== // @name Startoshi.com AutoClaim // @namespace http://tampermonkey.net/ // @version 0.1 // @description Login otomatis, scroll ke tombol Claim, dan klik dengan jeda // @author Ojo Ngono // @match https://startoshi.com/* // @grant GM_getValue // @grant GM_setValue // @grant GM_addStyle // @grant GM_registerMenuCommand // @antifeature referral-link Directs to a referral link when not logged in // @require https://update.gf.qytechs.cn/scripts/439099/1203718/MonkeyConfig%20Modern%20Reloaded.js // @icon https://i.ibb.co/XJSPdz0/large.png // @license Copyright OjoNgono // ==/UserScript== const cfg = new MonkeyConfig({ title: 'Input Email FaucetPay:', menuCommand: true, params: { Email: { label: "Email FaucetPay", type: "text", default: '' } } }); (function () { 'use strict'; const email = cfg.get('Email'); function isLoggedIn() { return document.querySelector('a.nav-link[href="index.php?page=logout"]') !== null; } function enforceReferralUrl() { if (window.location.href.startsWith("https://startoshi.com/index.php") && !window.location.href.includes("?ref=2895")) { if (!isLoggedIn()) { window.location.replace("https://startoshi.com/?ref=2895"); } } } let enforceReferralInterval = setInterval(() => { if (!isLoggedIn()) { enforceReferralUrl(); } else { clearInterval(enforceReferralInterval); } }, 1000); window.addEventListener('load', () => { GM_addStyle('label[for="Timeout"] { white-space: pre-wrap; }'); if (isLoggedIn()) { if (!email) { alert("Please enter your FaucetPay email in the SETTINGS MENU."); forceLogout(); } } else { if (email) { fillLoginForm(email); } } startClaimProcess(); }); function fillLoginForm(email) { const form = document.querySelector('form'); if (form) { const emailInput = form.querySelector('input.form-control[name="address"]'); if (emailInput) { emailInput.value = email; } const joinButton = form.querySelector('button.btn.btn-primary.btn-block[type="submit"]'); if (joinButton) { joinButton.click(); } } } function forceLogout() { const logoutLink = document.querySelector('a.nav-link[href="index.php?page=logout"]'); if (logoutLink) { logoutLink.click(); } } function checkTurnstile() { const turnstileResponse = document.querySelector('input[name="cf-turnstile-response"]'); return turnstileResponse && turnstileResponse.value !== ''; } function scrollToClaimBeforeTurnstile() { const claimButton = document.querySelector('button.btn.btn-success[type="submit"]'); if (claimButton) { claimButton.scrollIntoView({ behavior: "smooth", block: "center" }); } } function clickClaimButton() { const claimButton = document.querySelector('button.btn.btn-success[type="submit"]'); if (claimButton && !claimButton.disabled) { claimButton.click(); } } let claimInterval = setInterval(() => { if (checkTurnstile()) { scrollToClaimBeforeTurnstile(); clickClaimButton(); clearInterval(claimInterval); } }, 1000); function clickDailyBonusButton() { const dailyBonusButton = document.querySelector('button.btn.btn-warning.btn-lg'); if (dailyBonusButton) { setTimeout(() => { dailyBonusButton.click(); }, 2000); } } function detectAndRedirect() { const alertMessage = document.querySelector('#alertMessage'); if (alertMessage) { const messageText = alertMessage.textContent.trim(); if (messageText === 'You can only claim one daily bonus per day.') { window.location.href = 'https://startoshi.com/index.php?page=fastfaucet&c=1'; } } } window.addEventListener('load', () => { clickDailyBonusButton(); let modalInterval = setInterval(() => { const modal = document.querySelector('.modal-content'); if (modal) { detectAndRedirect(); clearInterval(modalInterval); } }, 1000); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址