您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto-clicks 'Collect your reward' with random delay and simulates real click.
// ==UserScript== // @name ClaimLitoshi // @namespace http://tampermonkey.net/ // @version 3.1 // @description Auto-clicks 'Collect your reward' with random delay and simulates real click. // @author 👽 // @match https://claimlitoshi.top/faucet/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Generate random delay between 7 to 14 seconds (in ms) const randomDelay = Math.floor(Math.random() * (14 - 7 + 1) + 7) * 1000; function simulateRealClick(element) { if (!element) return; const evtOptions = { bubbles: true, cancelable: true, view: window }; ['mouseover', 'mousedown', 'mouseup', 'click'].forEach(type => { const event = new MouseEvent(type, evtOptions); element.dispatchEvent(event); }); } function tryClickButton() { const buttons = document.querySelectorAll('button.claim-button'); for (let btn of buttons) { if (btn.textContent.includes('Collect your reward')) { simulateRealClick(btn); return; } } } window.addEventListener('load', () => { setTimeout(tryClickButton, randomDelay); }); })();