Skip to content

Instantly share code, notes, and snippets.

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