Gmail Empty is Empty

By mconstantine Last update Sep 2, 2009 — Installed 2,546 times.
// ==UserScript==
// @name          GMail Empty is Empty
// @version       0.1
// @description   Removes the "No new mail" notice for empty inboxes.
// @author 	      mattconstantine, with code borrowed from jbmarteau 
// @include       http://mail.google.com/*
// @include       https://mail.google.com/*
// @include       http://*.mail.google.com/*
// @include       https://*.mail.google.com/*
// ==/UserScript==
(function() {
var css = "@namespace url(http://www.w3.org/1999/xhtml);         \
          .zr {text-indent: -500em !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); 
	}
}
})();