Created
May 20, 2009 14:28
-
-
Save bcalloway/114838 to your computer and use it in GitHub Desktop.
Sunburst Theme for Github - Greasemonkey Required
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Github Sunburst Syntax Highlight | |
// @namespace | |
// @description Textmate-style syntax highlighting for GitHub | |
// @include http://github.com/* | |
// @include https://github.com/* | |
// @include http://*.github.com/* | |
// @include https://*.github.com/* | |
// ==/UserScript== | |
(function() { | |
var css = "@namespace url(http://www.w3.org/1999/xhtml); /* The Source Code area: */ #files .file .data { background-color: #141414 !important; color:#ffffff !important; } /* Color Definitions: */ /* Comments */ .syntax .sd { color:#bbbbbb !important; font-style:italic !important; } /* Class names and stuff (class, public, function, etc) */ .syntax .k { color:#FF7A36 !important; font-weight:normal !important; } /* Function Names */ .syntax .nb { color:#ffffff !important; } /* Class Names */ .syntax .nc { color:#FFFFFF !important; font-weight:bold !important; } /* Variables */ .syntax .nv { color:#ffffff !important; } .syntax .vi { color:#ffffff !important; } /* Class variables */ .syntax .na, .syntax .no { color:#ffffff !important; } .syntax .n { color:#CFD085 !important; } .syntax .no { color:#ffffff !important; } /* Operators ('->', '::', '>', '<', '=', etc ) */ .syntax .o { color:#ffffff !important; } .syntax .si { color:#DAEB83 !important; }/* Strings */ .syntax .s1, .syntax .s2{ color:#60B042 !important; } .syntax .ss {color:#22A18E !important;} /* Constants */ .syntax .o, .syntax .nx { color:#ffffff !important; } .syntax .k { color:#CD7836 !important; } .syntax .nf { color:#CDDA72 !important; }"; | |
if (typeof GM_addStyle != "undefined") { | |
GM_addStyle(css); | |
} else if (typeof addStyle != "undefined") { | |
addStyle(css); | |
} else { | |
var heads = document.getElementsByTagName("head"); | |
if (heads.length > 0) { | |
var node = document.createElement("style"); | |
node.type = "text/css"; | |
node.appendChild(document.createTextNode(css)); | |
heads[0].appendChild(node); | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment