Last active
July 12, 2016 19:25
-
-
Save alistairjcbrown/5d85072660f0b850cef68f4be278cdb1 to your computer and use it in GitHub Desktop.
Tampermonkey script to fix the Github font-family
This file contains hidden or 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 Fix Github Font-Family | |
// @version 0.2 | |
// @description Fix Github Font-Family | |
// @author Alistair Brown <[email protected]> | |
// @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