Sometimes, for example when you want to make use of a selfbot or you want to use an unofficial Discord client that doesn’t have password login you’ll probably need your Discord token.
Update: Since the newest Discord Update this trick doesn’t work anymore!
Notice: Even though some people understood this wrong, this trick works on both PC and mobile devices!
The way we run it:
Notice: Google Chrome and some other browsers will cut the
What is different:
The developer console will directly show variables when entering their names, the address bar obviously won’t, so we will have to find a different way to display it.
We could just use
alert() but that won’t allow us to copy it, so instead we will replace the whole website’s text with our token. For that we will first get the
<body> element using
document.getElementsByTagName('body') (notice the
 which selects the first (and only) body element it finds).
After we have the element we can just edit it’s content by using
.innerHTML = .
The only thing that is left now is the token itself which is stored in the variable
The completed code:
You can now copy that directly into your address bar.
Go to any page on discordapp.com that will show a 404 error (e.g. https://discordapp.com/1) and execute the code by…
- …pasting it in your address bar (or reading list) and pressing <Enter>.
- …clicking the bookmarklet (on PC).
- …entering the first letters name of the bookmarklet in the address bar until it appears (as shown in the screenshot below) and then clicking it.
Adding it as a bookmarklet:
You have to do this frequently (for whatever reason)? No problem, just add the bookmarklet by dragging this into your bookmarks (on PC, in Edge PC and mobile you can right click it and then select “Add to reading list”): Obtain Discord token, or, in case you are using Chrome mobile, you can create a new bookmark for a page of your choice, open the bookmark list, tap on “edit” on the bookmark you just created and then insert
Thanks for reading my very first, actual blog post!