Gmail MonoSpace Font

By yager Last update Oct 28, 2009 — Installed 2,006 times. Daily Installs: 6, 4, 11, 6, 6, 33, 22, 8, 8, 11, 6, 17, 11, 10, 14, 8, 23, 8, 5, 9, 13, 6, 5, 6, 9, 10, 8, 9, 2, 4, 6, 14

There are 1 previous version of this script.

// ==UserScript==
// @name          Gmail MonoSpace Font
// @namespace     http://creazy.net/2009/03/gmail_monospace_font_2.html
// @description	  Use a Monospaced(Fixed) font in message bodies and textarea for GMail.
// @include       http://mail.google.com/*
// @include       https://mail.google.com/*
// ==/UserScript==

(function () {
	var styles = "div.ii, textarea.dV, textarea.Ak { font-family: monospace !important; font-size: 12px !important; }";
	var heads  = document.getElementsByTagName("head");
	if (heads.length > 0) {
		var node = document.createElement("style");
		node.type = "text/css";
		node.appendChild(document.createTextNode(styles));
		heads[0].appendChild(node); 
	}
}) ();