Nodego AccessToken Extractor

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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!");
    });

})();