Last active
July 6, 2017 21:26
-
-
Save rissajeanne/5ff6369ed2f64a96296644c87ec12e5a to your computer and use it in GitHub Desktop.
Slack Customization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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