Nodego AccessToken Extractor

Extracts and displays accessToken from localStorage on app.nodego.ai with a copy button.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Nodego AccessToken Extractor
// @namespace    https://github.com/itsmesatyavir
// @version      1.0
// @description  Extracts and displays accessToken from localStorage on app.nodego.ai with a copy button.
// @author       ForestArmy
// @license      MIT
// @match        https://app.nodego.ai/*
// @grant        GM_addStyle
// @grant        GM_setClipboard
// ==/UserScript==

(function() {
    'use strict';

    const token = localStorage.getItem("accessToken");

    if (!token) return;

    const box = document.createElement("div");
    box.innerHTML = `
        <div id="tokenBox">
            <label><strong>Access Token:</strong></label><br>
            <textarea id="accessToken" readonly>${token}</textarea><br>
            <button id="copyToken">Copy</button>
        </div>
    `;
    document.body.appendChild(box);

    GM_addStyle(`
        #tokenBox {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 300px;
            background: #fff;
            border: 2px solid #444;
            padding: 10px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0,0,0,0.5);
            z-index: 9999;
        }
        #accessToken {
            width: 100%;
            height: 60px;
            margin: 5px 0;
            font-family: monospace;
        }
        #copyToken {
            background: #28a745;
            color: white;
            border: none;
            padding: 5px 10px;
            cursor: pointer;
            border-radius: 5px;
        }
        #copyToken:hover {
            background: #218838;
        }
    `);

    document.getElementById("copyToken").addEventListener("click", () => {
        GM_setClipboard(token);
        alert("Access Token Copied to Clipboard!");
    });

})();