您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto-clicks "DISAGREE" and waits 12s then claim
当前为
// ==UserScript== // @name BitFaucet Auto // @namespace http://tampermonkey.net/ // @version 2.2 // @description Auto-clicks "DISAGREE" and waits 12s then claim // @author 👽 // @match https://bitfaucet.net/faucet/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // === Auto-click "DISAGREE" button whenever it appears === function clickDisagreeButton() { const buttons = document.querySelectorAll('button'); buttons.forEach(button => { const span = button.querySelector('span'); if (span && span.textContent.trim().toUpperCase() === 'DISAGREE') { console.log('Clicked DISAGREE button'); button.click(); } }); } // Check for DISAGREE button every second setInterval(clickDisagreeButton, 1000); // === Wait 12 seconds and click "Get Reward" === window.addEventListener('load', () => { setTimeout(() => { const rewardBtn = document.querySelector('button#submit'); if (rewardBtn) { console.log('Clicked Get Reward button after 12s'); rewardBtn.click(); } else { console.log('"Get Reward" button not found.'); } }, 12000); // 12 seconds = 12000 ms }); })();