Gmail MonoSpace Font

By yager Last update Oct 28, 2009 — Installed 6,279 times.

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); 
	}
}) ();