Skip to content

Instantly share code, notes, and snippets.

@rissajeanne
Last active July 6, 2017 21:26
Show Gist options
  • Save rissajeanne/5ff6369ed2f64a96296644c87ec12e5a to your computer and use it in GitHub Desktop.
Save rissajeanne/5ff6369ed2f64a96296644c87ec12e5a to your computer and use it in GitHub Desktop.
Slack Customization
/**
* Append the following to /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
* Replace url with your own, or point to this url to responsively hide sidebar:
* https://gist.githubusercontent.com/rissajeanne/dc10be6272d223b778307dcd1d0028d9/raw/a6afd5fdac45e6b839da95c314acb3d8c7619553/slack-hide-sidebar.css
* Lastly, close and restart Slack
*
* Source: https://github.com/laCour/slack-night-mode/issues/73#issuecomment-287467332
*/
// Hides Slack sidebar if window is 720px or narrower
document.addEventListener('DOMContentLoaded', function() {
$.ajax({
url: 'https://gist.githubusercontent.com/rissajeanne/dc10be6272d223b778307dcd1d0028d9/raw/a6afd5fdac45e6b839da95c314acb3d8c7619553/slack-hide-sidebar.css',
success: function(css) {
$("<style></style>").appendTo('head').html(css);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment