Skip to content

Instantly share code, notes, and snippets.

@priyazsh
Last active May 13, 2026 11:15
Show Gist options
  • Select an option

  • Save priyazsh/1be45b722181ec634664410cde244708 to your computer and use it in GitHub Desktop.

Select an option

Save priyazsh/1be45b722181ec634664410cde244708 to your computer and use it in GitHub Desktop.
How To Get Discord Account Token?

How to Get Discord Account Token?

Note

This guide is for educational purposes only.

Instructions

Follow these steps to retrieve your Discord account token:

  1. Open Discord Website:

    • Go to Discord Website and log in to your account in the browser if you haven't already.
  2. Bookmark the Website:

    • Bookmark the Discord website.
  3. Edit the Bookmark URL:

    • Edit the bookmark you just created and change the URL to the following code:
       javascript:(function()%7Blocation.reload()%3Bvar%20i%20%3D%20document.createElement('iframe')%3Bdocument.body.appendChild(i)%3Balert(i.contentWindow.localStorage.token)%7D)()
  4. Execute the Bookmark:

    • Click on the bookmark you edited. A popup will appear, revealing your Discord token. Copy it for your use.

Video Tutorial

If you prefer visual guidance, watch this video tutorial:

How To Get Discord Account Token?

Discord

For further assistance, join our Discord server:

Join our Discord

Warning

Discord tokens are sensitive information. Treat them like keys to your account and keep them private to prevent the risk of hacking. Safeguard your Discord token for account security.


- Priyansh Prajapat

@fady20201

Copy link
Copy Markdown

token

@renacodes356

Copy link
Copy Markdown

Token

@rayenloihichi

Copy link
Copy Markdown

Token

@julian-richter

Copy link
Copy Markdown

Token

@monsif569

Copy link
Copy Markdown

token

@adamafwo

Copy link
Copy Markdown

Token

@fortynaytilibabagi

Copy link
Copy Markdown

bruhken

@Bituvo

Bituvo commented Nov 29, 2024

Copy link
Copy Markdown

Token

@jeffersonz12

jeffersonz12 commented Dec 6, 2024

Copy link
Copy Markdown

I want to use this script to obtain the account token, but then use it for other purposes. I replaced the alert with a return to store it in a variable, but the scripts won’t work because the page would reload. Is there a way around this?

This is a nice script overall :)

@Hi-doki

Hi-doki commented Dec 6, 2024

Copy link
Copy Markdown

Have you tried storing the token in the sites local local storage? You could do this for example: localStorage.setItem('discord_token', token_variable);
@MythicalPhantom

@jeffersonz12

Copy link
Copy Markdown

Have you tried storing the token in the sites local local storage? You could do this for example: localStorage.setItem('discord_token', token_variable); @MythicalPhantom

I realized that about 2 hours ago, but thank you 🙏

@Hi-doki

Hi-doki commented Dec 6, 2024

Copy link
Copy Markdown

Have you tried storing the token in the sites local local storage? You could do this for example: localStorage.setItem('discord_token', token_variable); @MythicalPhantom

I realized that about 2 hours ago, but thank you 🙏

ah okay no problem, good luck with whatever you're doing

@Hi-doki

Hi-doki commented Dec 9, 2024

Copy link
Copy Markdown

token

@jeffersonz12

Copy link
Copy Markdown

token

@Zombro01

Copy link
Copy Markdown

token

@nhnhhhh

nhnhhhh commented Mar 6, 2025

Copy link
Copy Markdown

TOKEN

@nhnhhhh

nhnhhhh commented Mar 6, 2025

Copy link
Copy Markdown

Token

@andres1138

Copy link
Copy Markdown

Token,
I figured I would go ahead and continue this token chain.

@Hi-doki

Hi-doki commented Mar 31, 2025

Copy link
Copy Markdown

token

@r5ter13

r5ter13 commented Apr 19, 2025

Copy link
Copy Markdown

token

@zaki-dev31

Copy link
Copy Markdown

Token

@1Loks

1Loks commented May 28, 2025

Copy link
Copy Markdown

why the youtube vedio got deleted? can you make another one on any website and give me? pleaseeeeeeeeee

@zaki999-dev

Copy link
Copy Markdown

token

@lai0602-real

Copy link
Copy Markdown

I want to use this script to obtain the account token, but then use it for other purposes. I replaced the alert with a return to store it in a variable, but the scripts won’t work because the page would reload. Is there a way around this?

This is a nice script overall :)

Bruh there's literally a location.reload() at the front of the script

I just removed that part and it worked for me (I also changed output to console.log() cuz I deleted the javascript: and just ran it in my console):

(function(){var i = document.createElement('iframe'); document.body.appendChild(i); console.log(i.contentWindow.localStorage.token)})()

@Hi-doki

Hi-doki commented Sep 1, 2025

Copy link
Copy Markdown

🤓

@jeffersonz12

Copy link
Copy Markdown

Bruh there's literally a location.reload() at the front of the script

I just removed that part and it worked for me (I also changed output to console.log() cuz I deleted the javascript: and just ran it in my console):

Relax, I'm over this already. Plus, it doesn't work without location.reload back then. I'm not sure about now.

@priyazsh

Copy link
Copy Markdown
Author

@priyazsh

priyazsh commented Oct 5, 2025

Copy link
Copy Markdown
Author

why the youtube vedio got deleted? can you make another one on any website and give me? pleaseeeeeeeeee

if i upload it again, they'll take down the channel

@sxbontopsof-cpu

Copy link
Copy Markdown

javascript:(function()%7Blocation.reload()%3Bvar%20i%20%3D%20document.

@Urnyy

Urnyy commented May 13, 2026

Copy link
Copy Markdown

discord reload itself when the bookmark is executed.

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