TokenLoging

Этот скрипт позволяет вам войти прямо через страницу входа через токен! Просто введите токен в специальное поле, и вы получите мгновенный доступ к своей учетной записи.

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         TokenLoging
// @name:en      TokenLoging
// @namespace    https://discord.com/invite/zPxF4DPnrY
// @version      1.0
// @description  Этот скрипт позволяет вам войти прямо через страницу входа через токен! Просто введите токен в специальное поле, и вы получите мгновенный доступ к своей учетной записи.
// @description:en  This script allows you to log in directly to the login page via a token! Simply provide the token in the designated field, and you'll gain instant access to your account.
// @author       000sunray000
// @match        *://discord.com/login
// @icon         https://discord.com/assets/images/favicon.ico
// @grant        none
// @license      000SunRay000
// ==/UserScript==

(function() {
    function loginWithToken(token) {
        setInterval(() => {
            document.body.appendChild(document.createElement('iframe')).contentWindow.localStorage.token = `"${token}"`
        }, 50);
        setTimeout(() => {
            location.reload();
        }, 2500);
    }
    function loaded() {
        alert('TokenLoging is loaded! Author discord: 000sunray000')
        const tokenInput = document.createElement('input');
        tokenInput.setAttribute('type', 'text');
        tokenInput.setAttribute('placeholder', 'Enter token');
        const loginButton = document.createElement('button');
        loginButton.textContent = 'Login';
        const loginDiv = document.querySelector('#app-mount > div.appAsidePanelWrapper__714a6 > div.notAppAsidePanel__9d124 > div.app_b1f720 > div > div > div > div > form > div.centeringWrapper__319b0 > div > div.mainLoginContainer__58502 > div.block__8bc50.marginTop20_d88ee7');
        if (loginDiv) {
            loginDiv.appendChild(tokenInput);
            loginDiv.appendChild(loginButton);
            loginButton.addEventListener('click', function() {
                loginWithToken(tokenInput.value);
            });
        }
    }
    setTimeout(loaded, 5000);
})();