Created
January 15, 2019 11:34
-
-
Save peko/08001db4ee9babd8d482e19ffae99d18 to your computer and use it in GitHub Desktop.
Github font changer script for #tampermonkey
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 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