Skip to content

Instantly share code, notes, and snippets.

@alistairjcbrown
Last active July 12, 2016 19:25
Show Gist options
  • Save alistairjcbrown/5d85072660f0b850cef68f4be278cdb1 to your computer and use it in GitHub Desktop.
Save alistairjcbrown/5d85072660f0b850cef68f4be278cdb1 to your computer and use it in GitHub Desktop.
Tampermonkey script to fix the Github font-family
// ==UserScript==
// @name Fix Github Font-Family
// @version 0.2
// @description Fix Github Font-Family
// @author Alistair Brown <me@alistairjcbrown.com>
// @match https://github.com/*
// @grant none
// ==/UserScript==
(function() {
var selectors = [
'body',
'.markdown-body',
'.tooltipped::after',
'.default-label .sha .ellipses'
];
var styleNode = document.createElement('style');
var styleText = document.createTextNode(selectors.join(', ') + ' { font-family: sans-serif !important; }');
styleNode.type = "text/css";
styleNode.appendChild(styleText);
document.head.appendChild(styleNode);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment