Skip to content

Instantly share code, notes, and snippets.

@jakiestfu
Last active December 10, 2015 19:18
Show Gist options
  • Save jakiestfu/4480024 to your computer and use it in GitHub Desktop.
Save jakiestfu/4480024 to your computer and use it in GitHub Desktop.
This bit of Javascript will activate the GitHub Enterprise styling on most GitHub pages.
(function(d) {
d.body.classList.add('enterprise');
var style = document.createElement('style')
style.type = 'text/css'
style.innerHTML = '.enterprise .header-logo-blacktocat:hover, .enterprise .top-nav a:hover, .enterprise #user-links a:hover, .enterprise .advanced-search:hover{color:#fff;text-shadow:0 0 10px #fff;}'
d.getElementsByTagName('head')[0].appendChild(style);
})(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment