Created
November 26, 2018 22:42
-
-
Save BenFausch/8ed5db8fd3263245f7c9ac6f7f68692a to your computer and use it in GitHub Desktop.
Slack dark mode script to run when slack updates
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 forget chmod+x darkslack.sh | |
echo "document.addEventListener('DOMContentLoaded', function() { | |
$.ajax({ | |
url: 'https://raw.githubusercontent.com/laCour/slack-night-mode/master/css/raw/black.css', | |
success: function(css) { | |
let overrides = 'code { background-color: #535353; color: #85c5ff; }.c-mrkdwn__pre, .c-mrkdwn__quote { background: #535353 !important; background-color: #535353 !important; }'; | |
\$('<style></style>').appendTo('head').html(css + overrides); | |
} | |
}); | |
}); | |
" >> /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment