Skip to content

Instantly share code, notes, and snippets.

@MPThLee
Last active April 27, 2026 03:16
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.
@Johnnycyan
Copy link
Copy Markdown

I can see experiments, but enabling the favourites server doesn't work. I have the option of variant 1 and variant 2, but neither work.

Underneath the favourites server option it says "Warning: Server did not send any experiment config. You may need to check the "Send to Client" box in the admin UI.

Any ideas?

I actually just found out that apparently they worked on it more and made it nitro only. You can still access it by going to https://discord.com/channels/@favorites though but the button in the channel list is gone.

@Qwerty-Space
Copy link
Copy Markdown

Qwerty-Space commented Mar 2, 2026

@Johnnycyan it doesn't appear in the server list even with nitro

Thanks for that link though, it works with and without nitro!

@Johnnycyan
Copy link
Copy Markdown

@Johnnycyan it doesn't appear in the server list even with nitro

Thanks for that link though, it works with and without nitro!

Yeah I noticed it works without Nitro currently. I believe it's intended to be Nitro only though. Was just passing some info from the Discord Previews server. I created a local equicord plugin to add a favorites button back to the server list as well which you can get here if you want. You have to set up local plugins though https://drive.google.com/file/d/1I15apQxxkuLwFUPRLBikEmLD6KwrlGM1/view?usp=sharing

@Johnnycyan
Copy link
Copy Markdown

it's also apparently going to be added to FakeNitro as well Vendicated/Vencord#4019

@mosts
Copy link
Copy Markdown

mosts commented Mar 21, 2026

appears to be patched

@amandinha00amo-star
Copy link
Copy Markdown

alert((webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken());

@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)()

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