您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
https://freebitco.in/?r=1393623
当前为
// ==UserScript== // @name Script-Free-BTC // @namespace https://github.com/HaygoNunes/Script-FreeBTC // @version 2.0 // @description https://freebitco.in/?r=1393623 // @author Hyago Nunes // @match https://freebitco.in/* // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; function selecionarElementoXPath(xpath) { return document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; } function elementoEstaVisivel(elemento) { return elemento && elemento.offsetParent !== null; } function aguardarElemento(xpath, callback) { const intervalo = setInterval(() => { const elemento = selecionarElementoXPath(xpath); if (elementoEstaVisivel(elemento)) { clearInterval(intervalo); setTimeout(callback, 3000); } }, 1000); } function clicarClaim() { const botaoClaim = selecionarElementoXPath("/html/body/div[2]/div/div/div[7]/p[3]/input"); if (elementoEstaVisivel(botaoClaim)) { botaoClaim.click(); console.log("Botão 'Claim' clicado com sucesso."); } else { console.log("Botão 'Claim' não encontrado ou não visível."); } } function executarAcoes() { console.log("Script iniciado. Aguardando CAPTCHA..."); aguardarElemento("/html/body//div/div/div[3]", clicarClaim); } window.addEventListener('load', () => { console.log("Página carregada. Iniciando script..."); executarAcoes(); }); })();