您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Click on BTCTREE and reload page
当前为
// ==UserScript== // @name Knolix Auto Tree Clicker // @namespace http://tampermonkey.net/ // @version 1.2 // @description Click on BTCTREE and reload page // @author Rubystance // @license MIT // @match https://knolix.com/* // @grant none // ==/UserScript== (function () { 'use strict'; function findClickableBitcoin() { const bitcoinImages = document.querySelectorAll('#btctree img'); return Array.from(bitcoinImages).find(img => { const rect = img.getBoundingClientRect(); return rect.width >= 59 && rect.height >= 59; }); } function clickBitcoinAndGoHome() { const bitcoin = findClickableBitcoin(); if (bitcoin) { console.log('[Knolix] BTCTREE found. Clicking...'); bitcoin.click(); setTimeout(() => { const homeButton = document.querySelector('a.navlink.w-nav-link'); if (homeButton) { console.log('[Knolix] Clicking on home...'); homeButton.click(); } else { console.warn('[Knolix] Home button not found.'); } }, 3000); } else { console.log('[Knolix] No BTCTREE found. Reloading in 60 seconds...'); setTimeout(() => { console.log('[Knolix] Reloading page...'); location.reload(); }, 60000); } } window.addEventListener('load', () => { setTimeout(clickBitcoinAndGoHome, 3000); }); })();