您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
click claim button
// ==UserScript== // @name A Crypto Miner (AB) // @namespace http://tampermonkey.net/ // @version 1.1 // @description click claim button // @author 👽 // @match https://acryptominer.io/user/faucet // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function randomDelay(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } function simulateClick(button) { // Repeat the event sequence multiple times for reliability for (let i = 0; i < 3; i++) { ['mouseover', 'mousedown', 'mouseup', 'click'].forEach(type => { button.dispatchEvent(new MouseEvent(type, { view: window, bubbles: true, cancelable: true, buttons: 1 })); }); } } function isVisible(el) { const style = window.getComputedStyle(el); return style.display !== 'none' && style.visibility !== 'hidden' && el.offsetParent !== null; } function waitForEnabledButton(id, callback) { const interval = setInterval(() => { const button = document.getElementById(id); if (button && isVisible(button) && !button.disabled) { clearInterval(interval); callback(button); } }, 300); // check every 300ms } window.addEventListener('load', () => { waitForEnabledButton('claim-button', (button) => { const firstDelay = randomDelay(10000, 13000); console.log(`First click in ${firstDelay}ms`); setTimeout(() => { console.log('Attempting first click...'); simulateClick(button); setTimeout(() => { console.log('Attempting second click...'); simulateClick(button); }, 2000); // second click 2s later }, firstDelay); }); }); })();