-
Star
(153)
You must be signed in to star a gist -
Fork
(75)
You must be signed in to fork a gist
-
-
Save m-Phoenix852/b47fffb0fd579bc210420cedbda30b61 to your computer and use it in GitHub Desktop.
let token = "your token"; | |
function login(token) { | |
setInterval(() => { | |
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"` | |
}, 50); | |
setTimeout(() => { | |
location.reload(); | |
}, 2500); | |
} | |
login(token); |
pro tip: if you keep getting notifs about this and dont want them, theres a unsubscribe button at the top of the page.
guys im getting this, what have I done wrong?
the token I used is for my bot and it is working fine, soo i guess it is not about the token, right?
let token = "yS7zW0uzMzO6h84I4MA.GbuYOLMz05sA4saZoxMTTMH.pE7yNQ_eGF08";
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
login(token);
the token I used is for my bot
Bot tokens do NOT work the same way as user tokens (have different permissions + use a "Bot" prefix in the headers) and cannot function with the discord webapp
this script btw still works on aug 1, 2025 but it doesn't work with bot tokens, only user tokens
this script btw still works on aug 1, 2025 but it doesn't work with bot tokens, only user tokens
Like bytequill said above, bot tokens can't function in the discord web app, just wanted to make sure that was clear.
this script btw still works on aug 1, 2025 but it doesn't work with bot tokens, only user tokens
Like bytequill said above, bot tokens can't function in the discord web app, just wanted to make sure that was clear.
I know. Only certain modified versions of the Discord app can do that.
this script btw still works on aug 1, 2025 but it doesn't work with bot tokens, only user tokens
Interesting. this one, and similar variations havent worked for me in a while. I get an error: TypeError: _.toLowerCase is not a function
what do I execute it on?
@zaydahmedx in your browser console
Arc_dsWIoW2hB8.mp4
I also got the same error but with a user token from my acount not with a bot token.
yo bro can you help me? i only get debug logs and it sends me back to discord login page pls help