Skip to content

Instantly share code, notes, and snippets.

@No-Eul
Last active June 16, 2024 15:19
Show Gist options
  • Save No-Eul/ee63b221c91323bb26e49a81e4b4c8d8 to your computer and use it in GitHub Desktop.
Save No-Eul/ee63b221c91323bb26e49a81e4b4c8d8 to your computer and use it in GitHub Desktop.
Enable Discord experiment options with the shortest code.
// 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));
@No-Eul
Copy link
Author

No-Eul commented Apr 19, 2022

Copy the userscript, and paste into the console of your browser or Discord client!

๐Ÿ“Œ Before Opening DevTools

Discord แ…Ÿhas updated to prevent users from easily opening the console in their client. For the reason, you have to do first before you open the console:

  • (Windows) Open the file "%APPDATA%\Discord\settings.json" (create it when doesn't exist) and add key-value pair below; It should be seperated each key-value pair by , (comma). Like this:
{
  "DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true
}

๐Ÿ“– How to Open DevTools

In Discord client, press Ctrl, Shift and I
In web browser, press F12
Press Console tab, paste the userscript
Press Enter key (require leading Ctrl key in some case) or โ–ท Run button


์œ ์ €์Šคํฌ๋ฆฝํŠธ๋ฅผ ๋ณต์‚ฌํ•ด์„œ ๋‹น์‹ ์˜ ๋ธŒ๋ผ์šฐ์ €๋‚˜ ๋””์Šค์ฝ”๋“œ ์ฝ˜์†”์— ๋ถ™์—ฌ๋„ฃ์œผ์„ธ์š”!

๐Ÿ“Œ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ๋ฅผ ์—ด๊ธฐ์ „์—

๋””์Šค์ฝ”๋“œ๋Š” ์‚ฌ์šฉ์ž๋“ค์ด ํด๋ผ์ด์–ธํŠธ์—์„œ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ๋ฅผ ์‰ฝ๊ฒŒ ์—ด์ง€ ๋ชปํ•˜๋„๋ก ์—…๋ฐ์ดํŠธํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ ๊ฐœ๋ฐœ์ž ๋„๊ตฌ๋ฅผ ์—ด๊ธฐ ์ „์— ํ•ด์•ผ ํ•  ์ผ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

  • (Windows) "%APPDATA%\Discord\settings.json" ํŒŒ์ผ์„ ์—ด๊ณ  (์—†์œผ๋ฉด ๋งŒ๋“ค๊ธฐ) ํŠน์ • ํ‚ค-๊ฐ’ ์Œ์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค. ์ด ๋•Œ, ๊ฐ๊ฐ์˜ ํ‚ค-๊ฐ’ ์Œ๋“ค์€ , ๋กœ ๊ตฌ๋ถ„๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
{
  "DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true
}

๐Ÿ“– ๊ฐœ๋ฐœ์ž ๋„๊ตฌ ์—ฌ๋Š” ๋ฐฉ๋ฒ•

๋””์Šค์ฝ”๋“œ ํด๋ผ์ด์–ธํŠธ์—์„œ Ctrl Shift I ํ‚ค ๋ˆ„๋ฅด๊ธฐ
์›น ๋ธŒ๋ผ์šฐ์ €์—์„œ F12 ํ‚ค ๋ˆ„๋ฅด๊ธฐ
Console ํ˜น์€ ์ฝ˜์†” ํƒญ์—์„œ ์œ ์ €์Šคํฌ๋ฆฝํŠธ ๋ถ™์—ฌ๋„ฃ๊ธฐ
Enter ํ‚ค (๊ฒฝ์šฐ์— ๋”ฐ๋ผ ์„ ํ–‰ Ctrl ํ‚ค ์ž…๋ ฅ ํ•„์š”) ๋˜๋Š” โ–ท ์‹คํ–‰ ๋ฒ„ํŠผ ๋ˆ„๋ฅด๊ธฐ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment