Created
November 12, 2018 15:06
-
-
Save mykeels/7a68d0993dd3572408acf123eda2f191 to your computer and use it in GitHub Desktop.
Append to ssb-interop.js for Slack Night Mode on a Mac
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
document.addEventListener('DOMContentLoaded', function() { | |
$.ajax({ | |
url: 'https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css', | |
success: function(css) { | |
let overrides = ` | |
code { background-color: #535353; color: #85c5ff; } /* Change color: to whatever font color you want */ | |
.c-mrkdwn__pre, .c-mrkdwn__quote { background: #535353 !important; background-color: #535353 !important; } | |
` | |
$("<style></style>").appendTo('head').html(css + overrides); | |
} | |
}); | |
}); | |
/** reference: https://dev.to/changoman/easy-dark-mode-for-slack-1mmn */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Append to
/Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
for Slack Night Mode on a Mac