Last active
November 14, 2024 22:15
-
-
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* !!!! 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. |
I found a correction
webpackChunkdiscord_app.push([[Math.random()], {}, (e) => { if(e.c!=undefined){module = Object.values(e.c).find(x => x?.exports?.default?.getUsers).exports.default;} }]); nodes = Object.values(module._dispatcher._actionHandlers._dependencyGraph.nodes); try { nodes.find(x => x.name == "ExperimentStore").actionHandler["OVERLAY_INITIALIZE"]({ user: { flags: 1 } }); } catch (e) { } original = [module.getCurrentUser, module.getNonImpersonatedCurrentUser]; module.getCurrentUser = module.getNonImpersonatedCurrentUser = () => ({ isStaff: () => true }); nodes.find(x => x.name == "DeveloperExperimentStore").actionHandler["OVERLAY_INITIALIZE"](); [module.getCurrentUser, module.getNonImpersonatedCurrentUser] = original;Working
without issue5/29/2024 Needs to be executed everytime you refresh or update Discord
Same issue here. Does anyone know if there is a fix for this or a way to make this permanent?
You (probably) can't make this permanent without modifying Discord itself. At that point, it'd probably be better to use a client mod such as [Vencord](https://vencord.dev/). (BetterDiscord steals tokens, so I'd avoid using it on non-throwaway accounts.)
Sent from Proton Mail Android
-------- Original Message --------
On 6/14/24 8:57 PM, Chase Wheeler wrote:
Re: ***@***.*** commented on this gist.
I found a correction
webpackChunkdiscord_app.push([[Math.random()], {}, (e) => { if(e.c!=undefined){module = Object.values(e.c).find(x => x?.exports?.default?.getUsers).exports.default;} }]); nodes = Object.values(module._dispatcher._actionHandlers._dependencyGraph.nodes); try { nodes.find(x => x.name == "ExperimentStore").actionHandler["OVERLAY_INITIALIZE"]({ user: { flags: 1 } }); } catch (e) { } original = [module.getCurrentUser, module.getNonImpersonatedCurrentUser]; module.getCurrentUser = module.getNonImpersonatedCurrentUser = () => ({ isStaff: () => true }); nodes.find(x => x.name == "DeveloperExperimentStore").actionHandler["OVERLAY_INITIALIZE"](); [module.getCurrentUser, module.getNonImpersonatedCurrentUser] = original;
Working without issue 5/29/2024 Needs to be executed everytime you refresh or update Discord
Same issue here. Does anyone know if there is a fix for this or a way to make this permanent?
—
Reply to this email directly, view it on GitHub or unsubscribe.
You are receiving this email because you commented on the thread.
Triage notifications on the go with GitHub Mobile for iOS or Android.
(BetterDiscord steals tokens, so I'd avoid using it on non-throwaway accounts.)
do you have anything to back this up or are you just speaking out of your ass
(BetterDiscord steals tokens, so I'd avoid using it on non-throwaway accounts.)
do you have anything to back this up or are you just speaking out of your ass
I've been using BetterDiscord for a long time and I haven't lost any account/bot tokens. If you or somebody you know lost their account running a shady plugin then that's on you.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can someone make this as a plugin for BetterDiscord?