Skip to content

Instantly share code, notes, and snippets.

@wrick17
Created October 15, 2018 11:44
Show Gist options
  • Save wrick17/a33a97b8cf14166630011c9b32c410c6 to your computer and use it in GitHub Desktop.
Save wrick17/a33a97b8cf14166630011c9b32c410c6 to your computer and use it in GitHub Desktop.
Make slack dark (ONLY FOR OSX)
#! /bin/bash
# Don't want to interpret variables whilst reading from the HEREDOC - thus the single quotes... potto
cat << 'EOF' >> /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
document.addEventListener('DOMContentLoaded', function() {
$.ajax({
url: 'https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css',
success: function(css) {
$("<style></style>").appendTo('head').html(css);
}
});
});
EOF
echo If Slack.app is already running, refresh with CMD-R
@wrick17
Copy link
Author

wrick17 commented Oct 15, 2018

sh dark_slack.sh

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