webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=Object.values(r.c)]); | |
var UserStore = cache.find(m => m?.exports?.default?.getCurrentUser).exports.default; | |
var actions = UserStore._dispatcher._actionHandlers._orderedActionHandlers["CONNECTION_OPEN"]; | |
var user = UserStore.getCurrentUser(); | |
actions.find(n => n.name === "ExperimentStore").actionHandler({ | |
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [], | |
}); | |
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler(); | |
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done"; |
Very useful! Thanks!
I'll start deleting dumb comments from now on. Let me make a small FAQ.
Q: "I enabled an experiment but cant use it!!!!"
A: Discord locks many experiments on the API. Enabling it on the client does not bypass this.
Q: "omg ur gonna steal my details"
A: Read the code. It literally just changes a zero to a one (false -> true).
Q: "How to I disable this?"
A: Press CTRL+R to refresh the client, or fully close it from the taskbar and restart it.
Q: "It didn't work!!!"
A: Good for you. I'm not your support agent.
[Reserved for future use]
thanks pal, I loved that QA disclaimer
ggz, pog code
thanks
works :)
i love u
meguu
read if cute
quite incredible
Q: "It didn't work!!!"
A: Good for you. I'm not your support agent.
Best faq writer
Update ur gist please. This code doesn't work
still works for me
"I'm not your support agent."
You might be my spirit animal though.
Allows you to enable experiments in the latest discord builds. Working as of 2023-01-04
Works on Stable, PTB, Canary on Web & Desktop.
If it doesn't work for you, check the following
If the answer to any of these is "yes", then don't complain here.
This script supports SWC. Stop blaming issues on SWC.