- Open the browser developer tools (
F12orCtrl + Shift + I) and click the Console tab. - 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)
Fyi, you can do it without enabling mobile emulation. Like here's one that works via webpack instead of an iframe.
So you can just directly paste it into console to get token >~<