Auto Claim PhoenixHost

Automatically click on Generate Link, You'll need the userscript from bypass.city to be able to automatise this. https://bypass.city/how-to-install-userscript

// ==UserScript==
// @name         Auto Claim PhoenixHost
// @namespace    http://tampermonkey.net/
// @version      1.4
// @description  Automatically click on Generate Link, You'll need the userscript from bypass.city to be able to automatise this. https://bypass.city/how-to-install-userscript
// @author       Myuui
// @match        https://dash.phoenixhost.cloud/lv
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const alertKey = 'phoenixhost_auto_click_warning_shown';
    if (!localStorage.getItem(alertKey)) {
        alert("Use auto bypass script from bypass.city");
        localStorage.setItem(alertKey, 'true');
    }

    const stopBtn = document.createElement('button');
    stopBtn.textContent = '🛑 Stop Script';
    stopBtn.style.position = 'fixed';
    stopBtn.style.top = '10px';
    stopBtn.style.left = '10px';
    stopBtn.style.zIndex = '9999';
    stopBtn.style.padding = '8px 12px';
    stopBtn.style.backgroundColor = '#dc2626';
    stopBtn.style.color = '#fff';
    stopBtn.style.border = 'none';
    stopBtn.style.borderRadius = '6px';
    stopBtn.style.fontSize = '14px';
    stopBtn.style.cursor = 'pointer';
    stopBtn.style.boxShadow = '0 2px 6px rgba(0,0,0,0.3)';
    document.body.appendChild(stopBtn);

    let scriptRunning = true;

    stopBtn.addEventListener('click', () => {
        scriptRunning = false;
        observer.disconnect();
        stopBtn.textContent = '✅ Script Stopped';
        stopBtn.style.backgroundColor = '#16a34a';
    });

    function clickGenerateLink() {
        if (!scriptRunning) return;

        const btn = document.querySelector('a[href="../lv/gen"].inline-flex.bg-\\[\\#3b82f6\\]');
        if (btn) {
            console.log("Generate Link button found. Clicking in 500ms...");
            setTimeout(() => {
                if (scriptRunning) {
                    btn.click();
                }
            }, 500);
        } else {
            console.log("Generate Link button not found yet...");
        }
    }

    clickGenerateLink();

    const observer = new MutationObserver(() => {
        clickGenerateLink();
    });

    observer.observe(document.body, { childList: true, subtree: true });
})();