Skip to content

Instantly share code, notes, and snippets.

@m-Phoenix852
Created August 26, 2020 07:45
Show Gist options
  • Select an option

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

Select an option

Save m-Phoenix852/b47fffb0fd579bc210420cedbda30b61 to your computer and use it in GitHub Desktop.
Simple script to log in to discord account using token.
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);
@tudes00

tudes00 commented Jun 24, 2024

Copy link
Copy Markdown

@Techpro709 helped me and the script worked, thanks!
If you need help, send him a request on discord, he replied within the day.

@R3d-Developer

Copy link
Copy Markdown

Im on opera and script doesent work does anybody know if its patched? its keep givin me the error :Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval'"

and honeslty i tried multiple things but dont seem to find nothin that works

@bigpaster12345

Copy link
Copy Markdown

yeah i think it doesnt work at all anymore, nothing i try seems to work

@THEJON78

Copy link
Copy Markdown

yeah i think it doesnt work at all anymore, nothing i try seems to work

mhmm. what did you try?

@Zaklil

Zaklil commented Jul 26, 2024

Copy link
Copy Markdown

guys who can help me?

@Zaklil

Zaklil commented Jul 26, 2024

Copy link
Copy Markdown

i don't know how to use it my discord is xavier_200

@pxldevv

pxldevv commented Jul 28, 2024

Copy link
Copy Markdown

chat my username has been changed on discord...
For those of you who are trying to message me.

(I've hit the username change limit so imma update it here once I can change it to smth else)

Also currently the script is still working!

@pxldevv

pxldevv commented Jul 28, 2024

Copy link
Copy Markdown

also @AvicenniaMarina you can find your token in the network fetch for any messages.

@Helpme102o10plz

Copy link
Copy Markdown

I dont understand how to do it! which code do i use? what code do i replace with my token? what site do i paste it on? the actual login or just the discord.com/ one. can someone please explain

@nostorian

Copy link
Copy Markdown

@Helpme102o10plz literally all you gott do is replace "your token" with your actual discord token and paste it in discord.com/login's console. shit is not rocket science 💀

@pxldevv

pxldevv commented Aug 6, 2024

Copy link
Copy Markdown

Yep ^

@DUCKY-MAN

Copy link
Copy Markdown

The token worked once and now its not working. What should I do?

@pxldevv

pxldevv commented Aug 6, 2024 via email

Copy link
Copy Markdown

@THEJON78

THEJON78 commented Aug 7, 2024

Copy link
Copy Markdown

The token worked once and now its not working. What should I do?

did you reset your password

@TheAlphaGhast

Copy link
Copy Markdown

just compressed it myself: (elem => {elem.contentWindow.localStorage.setItem('token', 'YOURTOKENGOESHERE');document.body.removeChild(elem)})(document.body.appendChild(document.createElement('iframe')));

@jsdkfkjljfds

jsdkfkjljfds commented Oct 15, 2024 via email

Copy link
Copy Markdown

@pxldevv

pxldevv commented Oct 15, 2024

Copy link
Copy Markdown

just compressed it myself: (elem => {elem.contentWindow.localStorage.setItem('token', 'YOURTOKENGOESHERE');document.body.removeChild(elem)})(document.body.appendChild(document.createElement('iframe')));

Yeah that looks like it'd work.

@user5705

Copy link
Copy Markdown

Awesome. Works

@WiLkINNS

WiLkINNS commented Dec 6, 2024

Copy link
Copy Markdown

Doesnt seem to work

@gagedevs

gagedevs commented Dec 8, 2024

Copy link
Copy Markdown

If you have issues, DM me on Discord @xgage

@TheAlphaGhast

Copy link
Copy Markdown

Doesnt seem to work

doesnt work for me too but seems to work for others

(i think it only works in chrome or so, i didnt test it)

@opusmeta

Copy link
Copy Markdown

Work

@yum1234

yum1234 commented Dec 22, 2024

Copy link
Copy Markdown

Works for me. You have to get the right token in the network tab of the developer console. Look for the authorization header. This is the token you will probably want.

@kyan0045

kyan0045 commented Dec 24, 2024

Copy link
Copy Markdown

it literally does work, try in chrome, operagx, or zen, tried all 3

@Maxhem2

Maxhem2 commented Dec 29, 2024

Copy link
Copy Markdown

Just paste and run it about three to four times quickly it will work

@spekly

spekly commented Dec 30, 2024

Copy link
Copy Markdown

it doesnt work for me, when i put the token in the brackets and press enter it says Uncaught SyntaxError: missing ) after argument list

@yum1234

yum1234 commented Dec 30, 2024

Copy link
Copy Markdown

it doesnt work for me, when i put the token in the brackets and press enter it says Uncaught SyntaxError: missing ) after argument list

You have to put it in the quote at the first line, not the brackets. I tested it like a week ago.
let token = "your token"; #put here!!!

@spekly

spekly commented Dec 30, 2024

Copy link
Copy Markdown

i just realized that, i did it but it still says Uncaught SyntaxError: missing ) after argument list
!
Uploading Screenshot 2024-12-30 151959.png…

@yum1234

yum1234 commented Dec 30, 2024

Copy link
Copy Markdown

Did you leave the quotes? Paste ur token, but only replace the (your token) part and leave the quotes surrounding it?

@spekly

spekly commented Dec 30, 2024

Copy link
Copy Markdown

yep i left the quotes, idk if u can see the screenshot

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