The code has been tested on Slack's desktop app (version 3.3.3) on macOS 10.14. Your milage may vary.
Tired of the Slack sidebar claiming a bunch of your precious screen estate? With this little hack you can toggle it! It includes changing one of Slack's built-in files, so be careful and backup.
In your terminal:
cd /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static
cp ssb-interop.js ssb-interop.bak
- Edit
ssb-interop.js
with your editor of choice. Add the code from the file below at the end, just before the closing}
. Don't touch anything else :) - Save and close
- Restart Slack
The sidebar will be hidden by default. To show it, press shift+cmd+b
. To hide it again, press the same key combo one more time.