您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically fills the address textbox with input address, then clicks claim button after it waits for captcha completion.
// ==UserScript== // @name autoclaim bestchange.com // @namespace http://tampermonkey.net/ // @version 0.11 // @description Automatically fills the address textbox with input address, then clicks claim button after it waits for captcha completion. // @author Me // @match https://www.bestchange.com/* // @grant none // @license MIT // ==/UserScript== var uraddress = 'URBTCADDRESSHERE'; (function() { 'use strict'; // Wait for the DOM to be fully loaded window.addEventListener('load', function() { // Locate the textbox by its id setTimeout(1000); var textbox = document.getElementById('bonus_purse'); if (textbox) { textbox.value = uraddress; console.log('Textbox found and text inserted:', textbox); } else { console.log('No textbox found with id "bonus_purse".'); } }, false); waitForCaptcha(function() { console.log("Captcha has been resolved!"); // Locate the button by its id var button = document.getElementById('bonus_button'); if (button) { button.click(); // Click the button console.log('Button found and clicked:', button); } else { console.log('No button found with id "bonus_button".'); } }, false); function checkCaptchaResolved() { // Get the hCaptcha response textarea let hCaptchaResponse = document.querySelector('textarea[id^="h-captcha-response-"]'); // If the textarea contains any value, hCaptcha is likely resolved if (hCaptchaResponse && hCaptchaResponse.value.trim() !== "") { return true; // Return true if resolved } else { return false; // Return false if not resolved } } function waitForCaptcha(callback) { let captchaCheckInterval = setInterval(function() { if (checkCaptchaResolved()) { clearInterval(captchaCheckInterval); callback(); } }, 1000); // Check every 1 second } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址