Skip to content

Instantly share code, notes, and snippets.

@krlohnes
Created January 26, 2017 16:09
Show Gist options
  • Save krlohnes/19fc104c6dd128f42db3302def838839 to your computer and use it in GitHub Desktop.
Save krlohnes/19fc104c6dd128f42db3302def838839 to your computer and use it in GitHub Desktop.
Slack dark mode
// Using ajax rather than a dynamically injected <link>, to account for sites (like gist.github.com) that don't serve
// a content-type for CSS files
var cssURI = 'https://gist.githubusercontent.com/DrewML/f244d6015c9b690b1dc241669b69dde1/raw/3d6351b8767ee5fba1ac86cad9b8cc5cf2ff9fea/slack-theme.css';
$.get(cssURI).then(function(css) {
$('<style />').text(css).appendTo('body')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment