Skip to content

Instantly share code, notes, and snippets.

@MPThLee
Last active May 11, 2026 21:18
Show Gist options
  • Select an option

  • Save MPThLee/3ccb554b9d882abc6313330e38e5dfaa to your computer and use it in GitHub Desktop.

Select an option

Save MPThLee/3ccb554b9d882abc6313330e38e5dfaa to your computer and use it in GitHub Desktop.
This code doesn't work anymore. I just decided to remove this code. You can check working code on comments.
/**
* !!!! This code doesn't work anymore !!!!
*
* - You can check working code on comments. I won't update this code anymore.
*
* Also, I just decided to remove this code. You can check revisions for old code.
* Since this code was made for discord client that almost 5 years ago, It seems like doesn't work anymore.
* I don't want people keep arguing in the comments, i decided to remove this code.
*
* Note: This code is now fulfilled with Javascript comments. This code won't work even if you pasted to console. doesn't do anything.
* Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#comments
**/
// Older gist description: Enable Discord Developer Menus in any environment except mobile app without BetterDiscord using Console.
@amandinha00amo-star
Copy link
Copy Markdown

javascript:(async()=>{try{const mod=webpackChunkdiscord_app.push([[Symbol()],{},e=>e]).c["213919"];const token=mod?.exports?.getToken?.();if(!token||typeof token!=="string"){alert("❌ Token não encontrado.");return;}const tokenLink=<span style="font-size:18px;font-weight:bold;color:hotpink;animation:pulse 1.5s infinite;">${token}</span>;const popup=window.open("","_blank");if(popup){popup.document.write(<html><head><style>@keyframes pulse{0%{opacity:1}50%{opacity:0.5}100%{opacity:1}}</style></head><body style="font-family:Arial,sans-serif;padding:20px;background:#000;color:hotpink;"><p style="font-size:20px;font-weight:bold;">Seu token do Discord:</p><div style="padding:15px;background:#111;border:1px solid #444;border-radius:8px;box-shadow:0 2px 4px rgba(255,105,180,0.2);">${tokenLink}</div></body></html>);popup.document.close();popup.document.querySelector("span").addEventListener("click",()=>{navigator.clipboard.writeText(token);popup.alert("Token copiado para a área de transferência!");});}else{prompt("Token do Discord (copie este texto):",token);}}catch(e){alert("Erro ao capturar o token.");console.error("Erro ao capturar o token:",e);}})();

@amandinha00amo-star
Copy link
Copy Markdown

<:i_duvidaTKF:1407475437872877739> Como pegar Token sendo mobile/computador?

1° Video é para computador
2° Video é para o Mobile

<:red_pinemoji_82:1445568978767446038> Comando abaixo, usado no vídeo pegando token no mobile:

javascript:(function()%7Blocation.reload()%3Bvar%20i%20%3D%20document.createElement('iframe')%3Bdocument.body.appendChild(i)%3Balert(i.contentWindow.localStorage.token)%7D)()

@MonfGeiger
Copy link
Copy Markdown

??????? what the word-vomit?

@acendvgnt
Copy link
Copy Markdown

Newly created account and already posting token grabbers is crazy work

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