Created
December 5, 2008 14:51
-
-
Save galvez/32351 to your computer and use it in GitHub Desktop.
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-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