CAI Token

shows the user's token in the account settings

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         CAI Token
// @namespace    http://tampermonkey.net/
// @version      1
// @description  shows the user's token in the account settings
// @author       kramcat
// @license MIT
// @match        https://beta.character.ai/settings*
// @icon         https://i.imgur.com/unIzTZO.png
// @grant        none
// ==/UserScript==

const char_token = localStorage.getItem('char_token');
const token = JSON.parse(char_token).value;

const TokenText = document.createElement('p');

TokenText.textContent = token;

TokenText.style.position = "bottom";
TokenText.style.marginTop = '64px';
TokenText.style.color = 'rgb(159, 151, 136)';
TokenText.style.textAlign = "center";

document.body.appendChild(TokenText);