Gmail Air Skin

By Ron Burgandy Last update Sep 27, 2007 — Installed 7,321 times. Daily Installs: 5, 5, 2, 1, 1, 0, 3, 1, 2, 1, 4, 0, 1, 0, 0, 0, 0, 1, 2, 3, 1, 3, 2, 3, 4, 1, 0, 1, 1, 1, 3, 0
// ==UserScript==
// @name           Gmail Air Skin
// @namespace      http://userscripts.org/scripts/show/9904
// @description    A new and imporved skin for your Gmail account
// @author         2007civicsi@gmail.com
// @include        http*://mail.google.com/*
// ==/UserScript==

function addStyle(add)
{
	var headTag = document.getElementsByTagName("head");
	if (headTag.length > 0)
	{
		var create = document.createElement("style");
		create.type = "text/css";
		create.innerHTML = add;
		headTag[0].appendChild(create); 
	}
}

/**VARIABLES**/
var buttonOpacity = "0.6"; //0.1 to 1.0
var sideBarHover = "E3EBFE"; //hover color over starred, chats, sent mail, etc...
var labelsHover = "D5F1D8"; //hover color over your labels
var messageHover = "FDFDE9"; //hover color over messages
var messageLabelHover = "000000"; //if you have labels on a message changes the label color on message hover
var hide_spam = true; //change to false to show spam total

if(hide_spam)
{
	addStyle("#ds_spam b {visibility: hidden;} #ds_spam b::before {content: \"Spam\"; visibility: visible; font-weight: normal;}");
}

addStyle("@namespace url(http://www.w3.org/1999/xhtml); * { font-family: tahoma, verdana, lucida sans, helvetica, arial !important; } /* buttons */ button { font-size: 13px !important } /* search bar, actions menus */ form#s, button, select, option, checkbox, radio { -moz-opacity: " + buttonOpacity + " !important;  } /* Refresh link */ span#rfr { font-size: 13px !important; } /* selection menus */ div.tbc { font-size: 13px !important; } /* contacts sidebar */ div#nav div.nl span#comp { font-size: 13px !important; } /* compose message sidebar: list item (current) */ div#nav table.cv tr.an td b.lk { font-size: 15px !important; font-weight: normal !important; text-decoration: none !important; display: block !important; padding: 4px 0 4px 0 !important; } /* folders sidebar: list item (current) */ div#nds table.cv tr.an td b.lk { font-size: 15px !important; font-weight: normal !important; text-decoration: none !important; display: block !important; padding: 6px 0 6px 0 !important; } /* folders sidebar: list item */ div#nds div.nl { font-size: 13px !important; margin-left: 10px !important; padding-left: 6px !important; padding-top: 3px !important; padding-bottom: 3px !important; } /* folders sidebar: list item (hover) */ div#nds div.nl:hover, div#nav > div.nl:hover { background-color: #" + sideBarHover + " !important; } /* invite a friend sidebar */ div#nvi { display: none !important; } /* labels appearing in the subject line */ table.tlc span.ct {color: red !important; font-size: 8pt !important; font-weight: bold !important} /* messages */ table.tlc tr td { font-size: 13px !important; padding-top: 3px !important; padding-bottom: 3px !important; } /* cursor */ #ar { margin-top: 2px !important; } /* messages (unread) */ table.tlc tr.ur td { font-size: 13px !important; } /* messages (unread - snippet) */ table.tlc tr.ur td span.p { font-size: 13px !important} /* block (all width active) */ div#nav table.cv tr.an td b[id], div#nds span.lk { display: block !important; } /* remove underline */ div#nds span.lk, div#nds b.lk { text-decoration: none !important; } /*round corners*/ div#nds div.nl { -moz-border-radius-topleft: 4px !important; -moz-border-radius-bottomleft: 4px !important; } /* selected round corners */ div#nav table.cv b.rnd { background-color: transparent !important; } div#nav table.cv { -moz-border-radius-topleft: 5px !important; -moz-border-radius-bottomleft: 5px !important; } div#nav table.cv td:first-child { -moz-border-radius-topleft: 5px !important; -moz-border-radius-bottomleft: 5px !important; } /* border lines */ div#nds div.nl:first-child { border-top: 1px solid #C3D9FF !important; } div#nds div.nl { border-bottom: 1px solid #C3D9FF !important; } div#nds div.nl { border-left: 1px solid #C3D9FF !important; } /*selected border lines*/ div#nds table.cv:first-child { border-top: 1px solid #C3D9FF !important; } div#nds table.cv { border-bottom: 1px solid #C3D9FF !important; } div#nds table.cv { border-left: 1px solid #C3D9FF !important; } /* bk */ div#nds div.nl { background-color: #FFFFFF !important; } /* selected: remove not(tr.an) and resize tr.an to compensate*/ div#nds table.cv tr.an { height: 15px !important; } div#nds table.cv tr:not([class='an']) td { display: none !important; } /* compose and contacts */ div#nav > div.nl { border-top: 1px solid #C3D9FF !important; border-bottom: 1px solid #C3D9FF !important; border-left: 1px solid #C3D9FF !important; -moz-border-radius-topleft: 5px !important; -moz-border-radius-bottomleft: 5px !important; background: white !important; padding-top: 3px !important; padding-bottom: 3px !important; }  /* selected border lines */ div#nav > table.cv { border-top: 1px solid #C3D9FF !important; border-bottom: 1px solid #C3D9FF !important; border-left: 1px solid #C3D9FF !important; } div#nav > div.nl span#cont, div#nav > div.nl span#comp { display: block !important; text-decoration: none !important; } div#nav > table.cv tr.an b.lk { text-decoration: none !important; }  /* remove left round so that the tab 'compose mail' will connect to div#co' */ div#co > div#tct > table > tbody > tr > td > b.rnd > b.rnd1, div#co > div#tct > table > tbody > tr > td > b.rnd > b.rnd2, div#co > table > tbody > tr > td > b.rnd > b.rnd1, div#co > table > tbody > tr > td > b.rnd > b.rnd2 { margin-left: 0px !important; } .lk { font-weight: normal !important; } /* labels box labels sidebar: header */ div#nvl td.s { padding: 4px 0px 4px 0px !important; font-size: 15px !important; } div#nb_0 { margin-top: 10px !important; margin-bottom: 1.5em !important; } /* label box color div#nb_0 div.nb, div#prf_l, div#nvl b.rnd b.rnd1, div#nvl b.rnd b.rnd2 { background-color: rgb(0, 217, 255) !important; } */ /* item color */ div#nb_0 table.nc div.lk[id^=\"sc\"] { background-color: #FFFFFF !important; border-top:1px solid transparent; border-bottom: thin solid #EFEFEF !important; text-decoration: none !important; padding: 2px 1px 3px 3px !important; } /* item over color */ div#nb_0 table.nc div.lk[id^=\"sc\"]:hover { background-color: #" + labelsHover + " !important; } /* remove edit label link */ #prf_l { display: none !important; } /* remove table extra border */ div#nb_0 table.nc { border-spacing: 0px !important; padding-right: 4px !important; } div#nb_0 table.nc tr, div#nb_0 table.nc td { padding: 0 !important; } /* spam not bold */ #ds_spam b { font-weight: bold !important; } div.ft { display:none !important; } /*email address*/ div#guser b { color: #000000 !important; } div#guser a.sol { text-transform: capitalize !important;} /*hover messages*/ table.tlc tr:hover { background-color: #" + messageHover + " !important; } /*NO CONVERSATION SELECTED MESSAGE */ .nm { font-size: 12px !important; } .nfl { color: #00c !important; font-weight: lighter !important; }  table.tlc tr:hover span.ct {color: " + messageLabelHover + " !important; } /* WEB CLIP BUTTONS */ #fbn, #fbp { -moz-border-radius: 4px !important; } /*CONTACT TABS */ .ctsm, .psm { -moz-border-radius-topleft: 7px !important; -moz-border-radius-topright: 7px !important; }");