Aternos Auto Button Clicker

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

Versione datata 23/08/2023. Vedi la nuova versione l'ultima versione.

// ==UserScript==
// @name         Aternos Auto Button Clicker
// @namespace    -
// @version      1.1
// @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

function clickButtons() {
    const elements = document.querySelectorAll("#qFehtXbWMXJr > div > div:nth-child(4) > div:nth-child(2) > div:nth-child(3) > div.btn.btn-white.SDZZVHLLAEzR");
    elements.forEach(element => {
        element.click();
        console.log('Clicked!');
    });
}

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