Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ==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
You can’t perform that action at this time.