Gmail Fixed Font

By Jon Parise Last update Jul 14, 2009 — Installed 1,730 times. Daily Installs: 0, 3, 3, 2, 2, 2, 2, 0, 2, 1, 1, 0, 2, 3, 1, 0, 2, 0, 3, 0, 1, 0, 1, 3, 1, 3, 0, 2, 3, 2, 0, 4

There are 3 previous versions of this script.

// ==UserScript==
// @name           Gmail Fixed Font
// @namespace      http://www.indelible.org/
// @description    Fixed-font message bodies for Gmail
// @author         Jon Parise
// @version        1.22
// @include        http://mail.google.com/*
// @include        https://mail.google.com/*
// @include        http://*.mail.google.com/*
// @include        https://*.mail.google.com/*
// ==/UserScript==

// Plain-text Message Body
var css = ".ii, .dV { font: .9em monospace !important; }";
// Quoted Text
css += ".im, .gmail_quote { color: #666 !important; }";

if (typeof GM_addStyle != "undefined") {
    GM_addStyle(css);
} else if (typeof addStyle != "undefined") {
    addStyle(css);
} else {
    var heads = document.getElementsByTagName("head");
    if (heads.length > 0) {
        var node = document.createElement("style");
        node.type = "text/css";
        node.appendChild(document.createTextNode(css));
        heads[0].appendChild(node);
    }
}