Skip to content

Instantly share code, notes, and snippets.

@priyanzsh
Last active November 25, 2025 20:04
Show Gist options
  • Select an option

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

Select an option

Save priyanzsh/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

@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.

@priyanzsh
Copy link
Author

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

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

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