Aternos Auto Button Clicker

Automates button clicking on Aternos menus to save time and reduce repetitive tasks.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Aternos Auto Button Clicker
// @namespace    -
// @version      1.2
// @description  Automates button clicking on Aternos menus to save time and reduce repetitive tasks.
// @author       Taichums
// @match        https://aternos.org/*
// @icon         https://aternos.org/favicon.ico
// @grant        none
// @run-at       document-end
// @license      MIT
// ==/UserScript==

// Features:
// - Automatically clicks buttons in specific menus on Aternos
// - Works with ad blockers to streamline navigation

const debug = false; // Toggle debug mode

function clickButtons() {
    try {
        const elements = document.querySelectorAll(".btn.btn-white.SDZZVHLLAEzR");
        elements.forEach(element => {
            element.click();
            if (debug) {
                console.log('Clicked!');
            }
        });
    } catch (error) {
        console.error(`Error: ${error}`);
    }
}

addEventListener("load", () => {
    setInterval(() => {
        clickButtons();
    }, 5 * 60 * 1000); // 5 minutes interval
    // Initial click
    clickButtons();
});