Skip to content

Instantly share code, notes, and snippets.

@evaldofelipe
Last active July 19, 2019 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evaldofelipe/cc2ec1d04fed0c8693f6b59ad5ae7c74 to your computer and use it in GitHub Desktop.
Save evaldofelipe/cc2ec1d04fed0c8693f6b59ad5ae7c74 to your computer and use it in GitHub Desktop.
document.addEventListener('DOMContentLoaded', function() {
$.ajax({
url: 'https://cdn.jsdelivr.net/gh/laCour/slack-night-mode/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);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment