Skip to content

Instantly share code, notes, and snippets.

@pigoz
Last active March 1, 2017 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pigoz/16ef374b5de3333caeb89f9d429ee52e to your computer and use it in GitHub Desktop.
Save pigoz/16ef374b5de3333caeb89f9d429ee52e to your computer and use it in GitHub Desktop.
fix link color in github (tapermonkey/greasemonkey)
// ==UserScript==
// @name Github Links
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://github.com/
// @grant none
// ==/UserScript==
(function() {
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle('a { color: #4078c0 }');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment