Skip to content

Instantly share code, notes, and snippets.

@m-Phoenix852
Last active June 13, 2024 17:16
Show Gist options
  • Save m-Phoenix852/d63d869f16e40dac623c9aa347e8641a to your computer and use it in GitHub Desktop.
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);
}
});
})();
@WaterZ-dev
Copy link

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

Nice worked like a charm

@33CJ33CJ33
Copy link

How do I get the token?

@33CJ33CJ33
Copy link

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
Copy link

NotGAKi commented Apr 26, 2022

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
Copy link

IceWaltz commented Apr 26, 2022

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