Skip to content

Instantly share code, notes, and snippets.

@m-Phoenix852
Last active March 18, 2026 17:35
Show Gist options
  • Select an option

  • Save m-Phoenix852/d63d869f16e40dac623c9aa347e8641a to your computer and use it in GitHub Desktop.

Select an option

Save m-Phoenix852/d63d869f16e40dac623c9aa347e8641a to your computer and use it in GitHub Desktop.
Userscript to login to discord accounts with ease, just do SHIFT + T at the login page and enter the token!
// ==UserScript==
// @name Discord Token Login
// @namespace https://gist.github.com/m-Phoenix852/d63d869f16e40dac623c9aa347e8641a/
// @version 1.1
// @description Taking over discord's tokens!
// @author Phoenix852
// @match *://discord.com/login
// @updateURL https://gist.github.com/m-Phoenix852/d63d869f16e40dac623c9aa347e8641a/raw/6d1ee63df17685e4ea06018bd8b47541d4261b82/index.user.js
// @grant none
// @iconURL https://i.imgur.com/rI8GsTz.png
// @run-at document-start
// ==/UserScript==
(function(){
console.log("Dicord Token Login ready!");
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
document.addEventListener("keydown", (event) => {
if(event.shiftKey && event.keyCode === 84) {
if(!["https://discord.com/login", "http://discord.com/login"].includes(window.location.href)) return;
console.log("Prompting for token...");
let token = prompt("Give the token");
if(!token) { console.log("No token provided. Aborting!"); return; }
login(token);
}
});
})();
@xCancazedd

xCancazedd commented Jul 11, 2021

Copy link
Copy Markdown

can this be used with tokens for discord bots you make in the developer page?? When i paste in my bots token it reloads but doesnt log me in with my bot

if you want to log in with a bots token you'll have to use an app called Discord Bot Client, here is the link https://github.com/Flam3rboy/discord-bot-client

@XfedeX

XfedeX commented Jul 12, 2021

Copy link
Copy Markdown

Why do i see multiple tokens with tokenlogger but none of them work?
E.G:
tokens:

NTYyMTUwNDE3ODU3OTA0NjQw.YMkWtA.ftgx-dZaant5VSPwIb5XbGxxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YNiGLA.CoAq0MsT-KXwC2meQZpXY1xxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YMnnUg.ZVXamHym6v6BzaQzYy61Npxxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YOsMOw.KZl7o_QlwYxl6nezWAIKXxxxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YOsKGg.2PYqRFeWV9zJApIytvsV1xxxxxx

The token owner is using Discord while I try.

@xCancazedd

Copy link
Copy Markdown

Why do i see multiple tokens with tokenlogger but none of them work?
E.G:
tokens:

NTYyMTUwNDE3ODU3OTA0NjQw.YMkWtA.ftgx-dZaant5VSPwIb5XbGxxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YNiGLA.CoAq0MsT-KXwC2meQZpXY1xxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YMnnUg.ZVXamHym6v6BzaQzYy61Npxxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YOsMOw.KZl7o_QlwYxl6nezWAIKXxxxxxx
NTYyMTUwNDE3ODU3OTA0NjQw.YOsKGg.2PYqRFeWV9zJApIytvsV1xxxxxx

The token owner is using Discord while I try.

what??

@WaterZ-dev

Copy link
Copy Markdown

epic. very simple actually. I thought that to do this in js would be very hard, but i guess I was wrong. Thanks!

@Hana-Programming

Copy link
Copy Markdown

Nice worked like a charm

@33CJ33CJ33

Copy link
Copy Markdown

How do I get the token?

@33CJ33CJ33

Copy link
Copy Markdown

I decoded the user ID of an abusive user to get in their account but it only gives half the token. How do I get the other half??

@NotGAKi

NotGAKi commented Apr 26, 2022

Copy link
Copy Markdown

after putting the token and pressing ok. it loads then comes back to the login page.. i opened ispect and it shows this: (Pasting anything in here could give attackers access to your Discord account.) is there any new way to log in?

@IceWaltz

IceWaltz commented Apr 26, 2022

Copy link
Copy Markdown

after putting the token and pressing ok. it loads then comes back to the login page.. i opened ispect and it shows this: (Pasting anything in here could give attackers access to your Discord account.) is there any new way to log in?

You're looking at it, just get the tampermonkey extension and copy this code in and follow the instructions to use it, if it doesn't work try a different token, else it's probably an expired token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment