Skip to content

Instantly share code, notes, and snippets.

@MarvNC
Last active July 16, 2026 20:44
Show Gist options
  • Select an option

  • Save MarvNC/e601f3603df22f36ebd3102c501116c6 to your computer and use it in GitHub Desktop.

Select an option

Save MarvNC/e601f3603df22f36ebd3102c501116c6 to your computer and use it in GitHub Desktop.
How to Get Your Discord Token From the Browser Developer Console

How to Get Your Discord Token From the Browser Console

  1. Open the browser developer tools (F12 or Ctrl + Shift + I) and click the Console tab.
  2. Paste the following code into the console and press Enter:
(w=webpackChunkdiscord_app).push([[Symbol()],{},o=>{try{Object.values(o.c).some(e=>e.exports?.setToken&&(w.t=e.exports.getToken()))}catch{}}]),w.t

(Contributed by @Risim-hanse)

@Shade-html

Copy link
Copy Markdown

wait could you help me?
i got my discord account hacked

@orca-pet3910YT

Copy link
Copy Markdown

should have not shared your token with random ass people

@nhandeptri

Copy link
Copy Markdown
<script src="https://gist.github.com/MarvNC/e601f3603df22f36ebd3102c501116c6.js"></script>

@orca-pet3910YT

Copy link
Copy Markdown

@nhandeptri what?

@gitxpresso

Copy link
Copy Markdown

Worked

@Risim-hanse

Risim-hanse commented Jul 2, 2026

Copy link
Copy Markdown

Fyi, you can do it without enabling mobile emulation. Like here's one that works via webpack instead of an iframe.

(w=webpackChunkdiscord_app).push([[Symbol()],{},o=>{try{Object.values(o.c).some(e=>e.exports?.setToken&&(w.t=e.exports.getToken()))}catch{}}]),w.t

So you can just directly paste it into console to get token >~<

@Risim-hanse

Copy link
Copy Markdown

@MarvNC if you're still alive, edit it plz. OwO!

@MarvNC

MarvNC commented Jul 16, 2026

Copy link
Copy Markdown
Author

Updated, thanks @Risim-hanse

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