Skip to content

Instantly share code, notes, and snippets.

@galvez
Created December 5, 2008 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save galvez/32351 to your computer and use it in GitHub Desktop.
Save galvez/32351 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name github-source-font-change.user.js
// @description Script to change the source code viewer font in GitHub
// @include https://github.com/*
// @include http://github.com/*
// @include http://gist.github.com/*
// ==/UserScript==
function change_font() {
var pres = document.getElementsByTagName('pre');
for(var i = 0, len = pres.length; i < len; i++)
pres[i].style.fontFamily = "Consolas";
}
change_font()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment