Skip to content

Instantly share code, notes, and snippets.

@microideation
Created October 3, 2018 16:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save microideation/e3590b7b9c44cfcb23997b1520b7a1f6 to your computer and use it in GitHub Desktop.
Save microideation/e3590b7b9c44cfcb23997b1520b7a1f6 to your computer and use it in GitHub Desktop.
Dark mode snipped for slack
/**
* Enable this for dark mode
*/
document.addEventListener('DOMContentLoaded', function() {
$.ajax({
url: 'https://gist.githubusercontent.com/sandheepgr/c3c3fa065ffb33d1165438ebb32edec3/raw/7ff92b87f563a5add1361778120002f866d23476/slack-night-mode-custom.css',
success: function(css) {
$("<style></style>").appendTo('head').html(css);
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment