Skip to content

Instantly share code, notes, and snippets.

@oyepriyansh
Last active September 11, 2025 12:55
Show Gist options
  • Save oyepriyansh/1be45b722181ec634664410cde244708 to your computer and use it in GitHub Desktop.
Save oyepriyansh/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

@ItzAbhijeetYT1
Copy link

token

@iamcrazy10
Copy link

Token

@Hi-doki
Copy link

Hi-doki commented Aug 5, 2024

token

@fady20201
Copy link

token

@renacodes356
Copy link

Token

@rayenloihichi
Copy link

Token

@AbsurdlyUnique
Copy link

Token

@monsif569
Copy link

token

@adamafwo
Copy link

Token

@fortynaytilibabagi
Copy link

bruhken

@Bituvo
Copy link

Bituvo commented Nov 29, 2024

Token

@MythicalPhantom
Copy link

MythicalPhantom commented Dec 6, 2024

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
Copy link

Hi-doki commented Dec 6, 2024

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

@MythicalPhantom
Copy link

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
Copy link

Hi-doki commented Dec 6, 2024

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
Copy link

Hi-doki commented Dec 9, 2024

token

@MythicalPhantom
Copy link

token

@Zombro01
Copy link

token

@nhnhhhh
Copy link

nhnhhhh commented Mar 6, 2025

TOKEN

@nhnhhhh
Copy link

nhnhhhh commented Mar 6, 2025

Token

@andres1138
Copy link

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

@Hi-doki
Copy link

Hi-doki commented Mar 31, 2025

token

@r5ter13
Copy link

r5ter13 commented Apr 19, 2025

token

@zaki-dev31
Copy link

Token

@1Loks
Copy link

1Loks commented May 28, 2025

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

@zaki999-dev
Copy link

token

@Lai-0602
Copy link

Lai-0602 commented Sep 1, 2025

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
Copy link

Hi-doki commented Sep 1, 2025

🤓

@MythicalPhantom
Copy link

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.

@oyepriyansh
Copy link
Author

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