Skip to content

Instantly share code, notes, and snippets.

@hardenchant
Last active March 31, 2021 17:54
Show Gist options
  • Save hardenchant/3eb655a108efbba619beed831410e49a to your computer and use it in GitHub Desktop.
Save hardenchant/3eb655a108efbba619beed831410e49a to your computer and use it in GitHub Desktop.
Install EnhancedDiscord on MacOS with plugins and config for 1080p 60fps streams
#!/bin/bash
# MacOS EnhancedDiscord installer with plugins and config for 1080p 60fps streams
# DISCLAIMER!
# Using EnhancedDiscord, or any other client mod, is against Discord's Terms of Service.
# Use it at your own risk. It's very unlikely any action will be taken against you,
# but we take no responsibility if anything happens.
# Usage:
# copy script into folder where you want store your EnhancedDiscord and plugins
# run in bash:
# source ./mac_os_discord_autopatch.sh
git clone https://github.com/joe27g/EnhancedDiscord.git
cd EnhancedDiscord/plugins
wget https://raw.githubusercontent.com/rauenzi/BDPluginLibrary/master/release/0PluginLibrary.plugin.js
wget https://raw.githubusercontent.com/oSumAtrIX/BetterDiscordPlugins/master/NitroEmoteAndScreenShareBypass.plugin.js
cd ..
cat << EOF >> config.json
{
"css_loader": {
"path": "./plugins/style.css",
"enabled": false
},
"friend_count": {
"onlineOnly": false
},
"anti_track": {
"enabled": false
},
"avatar_links": {
"enabled": false
},
"css_settings": {
"enabled": false
},
"direct_download": {
"enabled": false
},
"double_click_edit": {
"enabled": false
},
"double_click_mention": {
"enabled": false
},
"ed_settings": {
"enabled": false
},
"guild_count": {
"enabled": false
},
"hidden_channels": {
"enabled": false
},
"quick_save": {
"enabled": false
},
"silence": {
"enabled": false
},
"silent_typing": {
"enabled": false
},
"bdPlugins": true,
"0PluginLibrary.plugin": {
"enabled": true,
"currentVersionInfo": {
"version": "1.2.28",
"hasShownChangelog": true
}
},
"NitroEmoteAndScreenShareBypass.plugin": {
"enabled": true
}
}
EOF
ed_dir=$(pwd)
disc_version=$(ls ~/Library/Application\ Support/discord/ | grep -e "\d\.\d\.\d")
disc_index_path="${HOME}/Library/Application Support/discord/${disc_version}/modules/discord_desktop_core/index.js"
ps ax | grep -i "Discord.app" | head -n1 | cut -f1 -d " " | xargs kill || true
echo "process.env.injDir = '${ed_dir}';" >> temp.index.js
echo 'require(`${process.env.injDir}/injection.js`);' >> temp.index.js
cat $disc_index_path >> temp.index.js
cat ./temp.index.js > $disc_index_path
rm ./temp.index.js
cd ..
@hardenchant
Copy link
Author

image

@hardenchant
Copy link
Author

hardenchant commented Mar 31, 2021

Discord fixed client side checks, script no longer works

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