Last active
June 16, 2024 15:19
-
-
Save No-Eul/ee63b221c91323bb26e49a81e4b4c8d8 to your computer and use it in GitHub Desktop.
Enable Discord experiment options with the shortest code.
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
// Notice: This code is no longer working and deprecated | |
(( | |
$, | |
f = n => Object.values($._dispatcher._actionHandlers._dependencyGraph.nodes) | |
.find($ => $.name == n) | |
.actionHandler.CONNECTION_OPEN | |
) => { | |
try { | |
f`ExperimentStore`({ user: { flags: ++$.getCurrentUser().flags }, type: "CONNECTION_OPEN" }); | |
} catch (e) {} | |
f`DeveloperExperimentStore`(); | |
$.getCurrentUser().flags--; | |
})(webpackChunkdiscord_app.push([[0], {}, $ => Object.values($.c)]) | |
.map(({exports: $}) => $?.default) | |
.find($ => $?.getCurrentUser && $?._dispatcher)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copy the userscript, and paste into the console of your browser or Discord client!
๐ Before Opening DevTools
๐ How to Open DevTools
์ ์ ์คํฌ๋ฆฝํธ๋ฅผ ๋ณต์ฌํด์ ๋น์ ์ ๋ธ๋ผ์ฐ์ ๋ ๋์ค์ฝ๋ ์ฝ์์ ๋ถ์ฌ๋ฃ์ผ์ธ์!
๐ ๊ฐ๋ฐ์ ๋๊ตฌ๋ฅผ ์ด๊ธฐ์ ์
๐ ๊ฐ๋ฐ์ ๋๊ตฌ ์ฌ๋ ๋ฐฉ๋ฒ