Skip to content

Instantly share code, notes, and snippets.

@jonstuebe
Created August 20, 2018 20:35
Show Gist options
  • Save jonstuebe/85c4efccf62e6d8ad61d8a90bf58a8f6 to your computer and use it in GitHub Desktop.
Save jonstuebe/85c4efccf62e6d8ad61d8a90bf58a8f6 to your computer and use it in GitHub Desktop.
#! /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