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:
- Open the file in the following path:
- Windows:
%APPDATA%\Discord\settings.json
- macOS: (In macOS' case, the first or second may not exist but that's fine. If it exist, proceed with this work for only the file in one path.)
~/Library/Application Support/Discord/settings.json
or/Library/Application Support/Discord/settings.json
- Linux: (Also in Linux's case, proceed that like macOS.)
~/.config/discord/settings.json
or~/snap/discord/current/.config/discord/settings.json
- If the file
settings.json
in the directoryDiscord
doesn't exist, you must create it, and write{}
in the file contents.- then 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 }If Discord is running, you should completly exit Discord to restart.
- Open DevTools
- (Discord Client) Press
Ctrl
,Shift
andI
to open DevTools- (Web Browser) Press
F12
to open DevTools- Click
Console
tab, paste the userscript- Press
Enter
key (require leadingCtrl
key in some case) orโท Run
button