Skip to content

Instantly share code, notes, and snippets.

@Saya47
Forked from m-Phoenix852/index.user.js
Created February 14, 2024 13:31
Show Gist options
  • Save Saya47/3cc983d644d903e5592fc40ce86f1925 to your computer and use it in GitHub Desktop.
Save Saya47/3cc983d644d903e5592fc40ce86f1925 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);
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment