Skip to content

Instantly share code, notes, and snippets.

@raxximus
Created October 13, 2021 05:32
Show Gist options
  • Save raxximus/e1a21c91c9d4f1670596ddd52f66ffd3 to your computer and use it in GitHub Desktop.
Save raxximus/e1a21c91c9d4f1670596ddd52f66ffd3 to your computer and use it in GitHub Desktop.
Simple script to login discord account with token
javascript:function login(token) { setInterval(() => { document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"` }, 50); setTimeout(() => { location.reload(); }, 2500); } function NEWTOKEN(){ var NEW = prompt("Enter the token to login :)"); return NEW } login(NEWTOKEN())
@Zardruc
Copy link

Zardruc commented Oct 23, 2021

Alright noted thank you for your help! I will try my best to get a more recent token and try your code.

@moshem1234
Copy link

Mine keeps just taking the token then refreshing the login page. I'm not sure what I'm doing wrong

@raxximus
Copy link
Author

@moshem1234 can you try this

javascript:function OK() {const PROMPT = prompt("ENTER TOKEN"); return(PROMPT)} function login(token) { setInterval(() => { document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"` }, 50); setTimeout(() => { location.reload(); }, 3500); } login(OK())

@raxximus
Copy link
Author

Mine keeps just taking the token then refreshing the login page. I'm not sure what I'm doing wrong

seems like this method is broken on PC, can you try this on your phone browser maybe

@moshem1234
Copy link

Mine keeps just taking the token then refreshing the login page. I'm not sure what I'm doing wrong

seems like this method is broken on PC, can you try this on your phone browser maybe

I can give it a shot

@raxximus
Copy link
Author

yeah so you know how to do this on phone? just follow the same steps, if you get stuck I'm here to help

@moshem1234
Copy link

yeah so you know how to do this on phone? just follow the same steps, if you get stuck I'm here to help

Which browser do you suggest I use

@raxximus
Copy link
Author

oops!! sorry for late reply, I'm using firefox for android latest build
20211027_040212
Here is how it looks, if you are stuck I can screen record :)

@moshem1234
Copy link

oops!! sorry for late reply, I'm using firefox for android latest build 20211027_040212 Here is how it looks, if you are stuck I can screen record :)

So for me, opening the bookmark would just open a blank new tab. Is there something that I'm doing wrong?

@raxximus
Copy link
Author

didnt you go to discord.com/login ? then you have to open the bookmark there by searching for it on adress bar

@raxximus
Copy link
Author

so, did it work?

@moshem1234
Copy link

I'm not getting it I'm not sure why. The screen grays out a little but I get no prompt to input a token.

so, did it work?

Not quite. The screen greys out slightly but no prompt comes up to input my token

@raxximus
Copy link
Author

maybe you are doing it wrong and sorry for my bad english :(
Im sending a video

@moshem1234
Copy link

maybe you are doing it wrong and sorry for my bad english :( Im sending a video

No problem. Thank you so much for your help

@raxximus
Copy link
Author

here's a video I made, hopefully it will help you :)

https://youtu.be/XbVeYNmzZcs

@moshem1234
Copy link

image
It gives me this and then does nothing

@raxximus
Copy link
Author

Are you on IOS, also try cancel

@moshem1234
Copy link

Are you on IOS, also try cancel

That screenshot is from ios and cancel doesn't do anything. On android, it gives me the correct prompt, but then just reloads the login screen

@raxximus
Copy link
Author

hmm.., maybe it didnt work for you :(
also are you on firefox and your android version?

@raxximus
Copy link
Author

wait what!! , delete it you just made your token public

@moshem1234
Copy link

wait what!! , delete it you just made your token public

Oops. Didn't think about that. I'll regenerate a new one. But did you see what I mean it just brings back the original login page?

@raxximus
Copy link
Author

welp, yes I see that, also I remember another method I mean I made another back in the day, and it was working with phones without any issue, Im searching for it again

Also can you try it with chrome this time?

@moshem1234
Copy link

Sure

@raxximus
Copy link
Author

Hello! , did it work on chrome?

@moshem1234
Copy link

Hello! , did it work on chrome?

Unfortunately no

@raxximus
Copy link
Author

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