您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Click on the bitcoin tree every 20 minutes and then click home on knolix.com with infinite loop
当前为
// ==UserScript== // @name Knolix Auto Tree Click and Home Click Loop // @namespace http://tampermonkey.net/ // @version 1.0 // @description Click on the bitcoin tree every 20 minutes and then click home on knolix.com with infinite loop // @author PixelHash // @license MIT // @match https://knolix.com/* // @grant none // ==/UserScript== (function() { 'use strict'; const CLICK_INTERVAL = 20 * 60 * 1000; // 20 minutes function doubleClickTree() { const tree = document.getElementById('btctree'); if (!tree) { console.log('Tree element not found'); return false; } tree.click(); setTimeout(() => tree.click(), 100); console.log('Double clicked the tree at', new Date().toLocaleTimeString()); return true; } function clickHomeLink() { const homeLink = document.querySelector('a[href="/"].navlink.w-nav-link'); if (homeLink) { homeLink.click(); console.log('Clicked home link at', new Date().toLocaleTimeString()); } else { console.log('Home link not found'); } } function cycleClicks() { if (doubleClickTree()) { setTimeout(() => { clickHomeLink(); setTimeout(cycleClicks, CLICK_INTERVAL); }, 3000); } else { console.log('Retrying in 1 minute...'); setTimeout(cycleClicks, 60 * 1000); } } window.addEventListener('load', () => { // Start cycle 20 minutes after page load setTimeout(cycleClicks, CLICK_INTERVAL); }); })();