A small snippit that creates a button to hide the channel list on Discord. Rewritten to fix some broken class definitions.
Do not use this script unless you know exacltly what you're doing.
I'm still working on getting everything working, so there will be instability for some time. Technically, the functionality works as it should, but the styling of the new button is still broken. I havent even looked at the BetterDiscord version yet, so definetely avoid that for now.
- Download channelcollapsebutton.plugin.js
- Put it in your plugins directory (Just open it from the client, can vary between indivudla users).
- Restart BetterDiscord
- Go into your discord client settings and enable developer mode.
- This can be accessed under the Appearance area.
- Open the developer console.
- This can vary depending on your OS and keyboard. It would be the same way you open the developer tools in Chrome or FireFox.
- On standard QWERTY Windows, the keybinding is CTRL+SHIFT+I (that's the letter "eye", not the number 1).
- On standard QWERTY macOS, the keybinding is Command+Option+I (that's the letter "eye", not the number 1)
- The window will look something like this
- Paste in the code from main.js into the Console tab
- Press enter
- Enjoy the newly added feature*
* Unfortunately, with the normal discord client, the button disapepars whenever you switch servers.
- Document ALL code contributions
- Anything undocumented will be ignored until full documentation is provided
- TEST your code first. Do not blindly contribute.
- Do NOT do a pull request into master, do it on dev instead.
- Your pull requests will be merged into master at each itteration if accepted.