Created
October 15, 2018 11:44
-
-
Save wrick17/a33a97b8cf14166630011c9b32c410c6 to your computer and use it in GitHub Desktop.
Make slack dark (ONLY FOR OSX)
This file contains 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
#! /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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sh dark_slack.sh