Skip to content

Instantly share code, notes, and snippets.

@robey
Created March 29, 2012 20:51
Show Gist options
  • Save robey/2243676 to your computer and use it in GitHub Desktop.
Save robey/2243676 to your computer and use it in GitHub Desktop.
small "user extension" for chrome to fix github's display of inline code
// ==UserScript==
// @name Fix github
// @namespace http://www.lag.net/fix-github/
// @version 1.0
// @description Fix the CSS for inline code segments of a markdown page on github.
//
// @include http://github.com/*
// @include https://github.com/*
// @include http://wiki.github.com/*
// @include http://help.github.com/*
// @include http://support.github.com/*
//
// ==/UserScript==
GM_addStyle(".markdown-body code { " +
" font: 12px monospace; " +
" background-color: transparent; " +
// " color: green; " + // i like this but most people will not. i am color blind. :)
" border: none; " +
" padding: 0px; " +
"}");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment