Skip to content

Instantly share code, notes, and snippets.

View Reselim's full-sized avatar

Nicole Reselim

  • Toronto, Canada
  • 19:31 (UTC -05:00)
  • X @reselim_
View GitHub Profile
@Reselim
Reselim / Discord Experiments.js
Created October 6, 2022 02:20 — forked from MeguminSama/Discord Experiments.js
Discord Experiments.js
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";