Last active
July 18, 2025 05:34
-
Star
(325)
You must be signed in to star a gist -
Fork
(13)
You must be signed in to fork a gist
-
-
Save MeguminSama/2cae24c9e4c335c661fa94e72235d4c4 to your computer and use it in GitHub Desktop.
Revisions
-
MeguminSama revised this gist
Mar 4, 2024 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ 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({ -
MeguminSama revised this gist
Nov 29, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=Object.values(r.c)]); var UserStore = cache.find(m => m?.exports?.default?.getUsers).exports.default; var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes); var user = UserStore.getCurrentUser(); actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({ -
MeguminSama revised this gist
Feb 24, 2023 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ 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 = 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"; -
MeguminSama revised this gist
Oct 3, 2022 . 1 changed file with 9 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,9 @@ 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"; -
MeguminSama revised this gist
Sep 17, 2022 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,8 +5,7 @@ var UserStore = cache.find(m => m?.exports?.default?.getUsers).exports.default; var nodes = Object.values(DevStore._dispatcher._actionHandlers._dependencyGraph.nodes); try { nodes.find(n => n.name == "ExperimentStore").actionHandler["OVERLAY_INITIALIZE"]({ user: { flags: 1 }, type: "CONNECTION_OPEN" }); } catch { } var oldGetUser = UserStore.getCurrentUser; -
MeguminSama revised this gist
Sep 17, 2022 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,12 +4,12 @@ var DevStore = cache.find(m => m?.exports?.default?.isDeveloper !== void 0).expo var UserStore = cache.find(m => m?.exports?.default?.getUsers).exports.default; var nodes = Object.values(DevStore._dispatcher._actionHandlers._dependencyGraph.nodes); try { nodes.find(n => n.name == "ExperimentStore").actionHandler["OVERLAY_INITIALIZE"]({ user: { flags: 1 }, type: "CONNECTION_OPEN" }); } catch { } var oldGetUser = UserStore.getCurrentUser; UserStore.getCurrentUser = () => ({ hasFlag: () => true }); nodes.find(n => n.name == "DeveloperExperimentStore").actionHandler["OVERLAY_INITIALIZE"](); UserStore.getCurrentUser = oldGetUser; -
MeguminSama revised this gist
Sep 17, 2022 . 1 changed file with 0 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,17 +1,14 @@ var cache = Object.values(webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => r.c])); webpackChunkdiscord_app.pop(); var DevStore = cache.find(m => m?.exports?.default?.isDeveloper !== void 0).exports.default; var UserStore = cache.find(m => m?.exports?.default?.getUsers).exports.default; var nodes = Object.values(DevStore._dispatcher._actionHandlers._dependencyGraph.nodes); try { nodes.find(n => n.name == "ExperimentStore").actionHandler["CONNECTION_OPEN"]({ user: { flags: 1 }, type: "CONNECTION_OPEN" }); } catch { } var oldGetUser = UserStore.getCurrentUser; UserStore.getCurrentUser = () => ({ hasFlag: () => true }); nodes.find(n => n.name == "DeveloperExperimentStore").actionHandler["CONNECTION_OPEN"](); -
MeguminSama revised this gist
Sep 17, 2022 . 1 changed file with 17 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,18 @@ var cache = Object.values(webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => r.c])); webpackChunkdiscord_app.pop(); var DevStore = cache.find(m => m?.exports?.default?.isDeveloper !== void 0).exports.default; var UserStore = cache.find(m => m?.exports?.default?.getUsers).exports.default; var nodes = Object.values(DevStore._dispatcher._actionHandlers._dependencyGraph.nodes); try { nodes.find(n => n.name == "ExperimentStore").actionHandler["CONNECTION_OPEN"]({ user: { flags: 1 }, type: "CONNECTION_OPEN" }); } catch { } var oldGetUser = UserStore.getCurrentUser; UserStore.getCurrentUser = () => ({ hasFlag: () => true }); nodes.find(n => n.name == "DeveloperExperimentStore").actionHandler["CONNECTION_OPEN"](); UserStore.getCurrentUser = oldGetUser; -
MeguminSama revised this gist
Sep 17, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ var wpRequire = webpackChunkdiscord_app.push([[ "wp_isdev_patch" ], {}, r => r]); webpackChunkdiscord_app.pop(); var mod = Object.values(wpRequire.c).find(x => x?.exports?.default?.isDeveloper !== void 0) var usermod = Object.values(wpRequire.c).find(x => x?.exports?.default?.getUsers) var nodes = Object.values(mod.exports.default._dispatcher._actionHandlers._dependencyGraph.nodes) -
MeguminSama revised this gist
Sep 17, 2022 . 1 changed file with 8 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,11 @@ var wpRequire = webpackChunkdiscord_app.push([[ Symbol() ], {}, r => r]); webpackChunkdiscord_app.pop(); var mod = Object.values(wpRequire.c).find(x => x?.exports?.default?.isDeveloper !== void 0) var usermod = Object.values(wpRequire.c).find(x => x?.exports?.default?.getUsers) var nodes = Object.values(mod.exports.default._dispatcher._actionHandlers._dependencyGraph.nodes) try { nodes.find(x => x.name == "ExperimentStore").actionHandler["CONNECTION_OPEN"]({user: {flags: 1}, type: "CONNECTION_OPEN"}) } catch (e) {} var oldGetUser = usermod.exports.default.getCurrentUser; usermod.exports.default.getCurrentUser = () => ({hasFlag: () => true}) nodes.find(x => x.name == "DeveloperExperimentStore").actionHandler["CONNECTION_OPEN"]() usermod.exports.default.getCurrentUser = oldGetUser -
MeguminSama revised this gist
Sep 17, 2022 . 1 changed file with 12 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,12 @@ let wpRequire; window.webpackChunkdiscord_app.push([[ Math.random() ], {}, (req) => { wpRequire = req; }]); mod = Object.values(wpRequire.c).find(x => typeof x?.exports?.default?.isDeveloper !== "undefined") usermod = Object.values(wpRequire.c).find(x => x?.exports?.default?.getUsers) nodes = Object.values(mod.exports.default._dispatcher._actionHandlers._dependencyGraph.nodes); try { nodes.find(x => x.name == "ExperimentStore").actionHandler["OVERLAY_INITIALIZE"]({user: {flags: 1}}) } catch (e) {} oldGetUser = usermod.exports.default.__proto__.getCurrentUser; usermod.exports.default.__proto__.getCurrentUser = () => ({hasFlag: () => true}) nodes.find(x => x.name == "DeveloperExperimentStore").actionHandler["CONNECTION_OPEN"]() usermod.exports.default.__proto__.getCurrentUser = oldGetUser -
MeguminSama revised this gist
Jun 12, 2022 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,6 @@ window.___wp = function(e) { let id = e.c[Object.keys(e.c).find((k) => e.c[k]?.exports?.default?.isDeveloper === false)]; if (id) Object.defineProperty(id.exports.default, "isDeveloper", {get:()=>true}); delete window.___wp; } webpackChunkdiscord_app.push([["wp_isdev_patch"], {},window.___wp]); -
MeguminSama revised this gist
Jun 12, 2022 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,5 @@ window.___wp = function(e) { let id=e.c[Object.keys(e.c).find((k)=>e.c[k]?.exports?.default?.isDeveloper===false)]; if (id)Object.defineProperty(id.exports.default,"isDeveloper",{get:()=>true});delete window.___wp; } webpackChunkdiscord_app.push([["wp_isdev_patch"], {},window.___wp]); -
MeguminSama revised this gist
May 1, 2022 . 1 changed file with 6 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,6 @@ window.___wp = function(e) { let id = e.c[Object.keys(e.c).find((k) => e.c[k]?.exports?.default?.isDeveloper === false)]; if (id) Object.defineProperty(id.exports.default, "isDeveloper", {get:()=>true}); delete window.___wp; } webpackChunkdiscord_app.push([["wp_isdev_patch"], {},window.___wp]); -
MeguminSama revised this gist
Oct 29, 2021 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,10 +3,9 @@ webpackChunkdiscord_app.push([ {}, (e) => { for (let c in e.c) if (e.c[c].exports?.default?.isDeveloper === false) Object.defineProperty(e.c[c].exports.default, "isDeveloper", { get: () => true, }); }, ]); -
MeguminSama revised this gist
Oct 29, 2021 . 1 changed file with 11 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,12 @@ webpackChunkdiscord_app.push([ ["wp_isdev_patch"], {}, (e) => { for (let c in e.c) if (e.c[c].exports?.default?.isDeveloper === false) { Object.defineProperty(e.c[c].exports.default, "isDeveloper", { get: () => true, }); } }, ]); -
MeguminSama revised this gist
Jul 21, 2021 . 1 changed file with 2 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,4 @@ webpackJsonp.push([ [999], { l: (m, e, r) => { @@ -17,5 +10,4 @@ if (confirm(_)) webpackJsonp.push([ } }, [['l']] ]) -
MeguminSama revised this gist
Jun 26, 2021 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,8 +2,9 @@ _ = "Read me!\n" + "\n" + "This script modifies the isDeveloper function to return true instead of false.\n" + "\n" + "You should really check code before blindly pasting it into Discord to make sure you don't get token logged!\n" + "\n" + "Stay safe!"; if (confirm(_)) webpackJsonp.push([ [999], { -
MeguminSama revised this gist
Jun 26, 2021 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,9 @@ _ = "Read me!\n" + "\n" + "This script modifies the isDeveloper function to return true instead of false.\n" + "\n" + "You should really check code before blindly pasting it into Discord to make sure you don't get token logged!.\n" + "Stay safe!."; if (confirm(_)) webpackJsonp.push([ [999], { -
MeguminSama revised this gist
Jun 18, 2021 . 2 changed files with 20 additions and 13 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,13 +0,0 @@ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ _ = "Hold Up!\n" + "If someone told you to copy/paste something here you have an 11/10 chance you're being scammed.\n" + "Pasting anything in here could give attackers access to your Discord account.\n" + "Unless you understand exactly what you are doing, close this window and stay safe.\n" + "This code is safe, but I recommend you verify that yourself before continuing.\n" + "Click cancel to prevent the code from running. Click \"OK\" to enable experiments."; if (confirm(_)) webpackJsonp.push([ [999], { l: (m, e, r) => { for (k in r.c) (m = r.c[k].exports) && m.default && m.default.isDeveloper == 0 && Object.defineProperty(m.default, 'isDeveloper', { get: () => 1 }) } }, [['l']] ]), alert("Experiments enabled."); else alert("Execution cancelled, please verify the code before running it again."); -
MeguminSama created this gist
Dec 13, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ webpackJsonp.push([ [999], { l: (m, e, r) => { for (k in r.c) (m = r.c[k].exports) && m.default && m.default.isDeveloper == 0 && Object.defineProperty(m.default, 'isDeveloper', { get: () => 1 }) } }, [['l']] ])