-
-
Save dterracino/eafac2b1103f285bf770eb1006f3712f to your computer and use it in GitHub Desktop.
Github font changer script for #tampermonkey
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 Github font | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*.github.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var css ='.blob-code-inner {font-family: monospace !important; font-size:16px;}'; | |
var style=document.createElement('style'); | |
style.type='text/css'; | |
if(style.styleSheet){ | |
style.styleSheet.cssText = css; | |
}else{ | |
style.appendChild(document.createTextNode(css)); | |
} | |
document.getElementsByTagName('head')[0].appendChild(style); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment