Skip to content

Instantly share code, notes, and snippets.

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*
// @include*
// @include*
// ==/UserScript==
function change_font() {
var pres = document.getElementsByTagName('pre');
for(var i = 0, len = pres.length; i < len; i++)
pres[i].style.fontFamily = "Consolas";
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.