Skip to content

Instantly share code, notes, and snippets.

@jgraham-gpsw
Created August 17, 2017 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jgraham-gpsw/68a4d1689cce9798b5846485633bb700 to your computer and use it in GitHub Desktop.
Save jgraham-gpsw/68a4d1689cce9798b5846485633bb700 to your computer and use it in GitHub Desktop.
// 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