Last active
April 7, 2024 13:15
-
-
Save MeguminSama/2cae24c9e4c335c661fa94e72235d4c4 to your computer and use it in GitHub Desktop.
Discord Experiments.js
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
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]); | |
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default; | |
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes); | |
var user = UserStore.getCurrentUser(); | |
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({ | |
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [], | |
}); | |
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN(); | |
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done"; |
Weird-- I was a couple of PTB builds behind and that was the issue. I force-quit PTB and it updated to 275959, and the snippet worked fine.
Thanks a bunch @Zyrenth . This is the only thing keeping me able to stream content to a friend while leaving HDR on.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@MeguminSama np, anytime
@ccoffield93 are you sure you're using the latest snippet? It still works on 275959 (af8afd2)