Created
August 20, 2018 20:35
-
-
Save jonstuebe/85c4efccf62e6d8ad61d8a90bf58a8f6 to your computer and use it in GitHub Desktop.
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
#! /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://gist.githubusercontent.com/jonstuebe/bddadd625c0e8a66d430022ef652fc2a/raw/fe750d4886b593207ffa1331ad93a84200828812/slack-dark.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