saylestyler / github input mono

// ==UserScript==
// @name         github input mono
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  makes reading code snippets input mono + 14px
// @license      MIT
// @author       Tyler Sayles
// @include      https://gist.github.com/*
// @include      https://*.github.com/*
// @include      https://github.com/*
// @grant        none
// @run-at       document-end
// ==/UserScript==

// get all <td></td>s
var tds = document.getElementsByTagName('td');

// loop thru & replace their font with Input Mono @ 14px
for (var i = 0; i < tds.length; i++) {
  tds[i].style.fontFamily = 'Input Mono';
  tds[i].style.fontSize = '14px';
}

// for code editing
var pres = document.getElementsByTagName('pre');

for (i = 0; i < pres.length; i++) {
  pres[i].style.fontFamily = 'Input Mono';
  pres[i].style.fontSize = '14px';
}

var spans = document.getElementsByTagName('span');

for (i = 0; i < pres.length; i++) {
  spans[i].style.fontFamily = 'Input Mono';
  spans[i].style.fontSize = '14px';
}