Gmail Air Skin 2 (with ads-block)

By amio Last update Nov 27, 2008 — Installed 4,208 times.

There are 13 previous versions of this script.

// ==UserScript==
// @name          Gmail Air Skin 2 (with ads-block)
// @namespace     http://www.amio.cn/
// @description	  Gmail Air Skin 2 with ads-block.
// @source        http://userscripts.org/scripts/show/7592
// @identifier    http://userscripts.org/scripts/source/7592.user.js
// @version       2.1.1
// @date          2008-11-28
// @creator       amio
// @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); /* ============================== Global ============================== */ /* win,mac,linux */ body.xN0XZb { font-family: verdana, geneva, kalimati, sans-serif !important } /* Side Column & Settings content & button */ div.z2kAad + div.XoqCub div.LYZ5re *, .eGbrz *, button { font-family: verdana, geneva, kalimati, sans-serif !important } /* small font fix ( headers, conversation list + labels, left nav, footer) */ button, div.qWFFaf *, div.jsbnre *, div.Sn99bd *, table.N2mZ7b tr *, h1 table *, .LYZ5re * { font-size: 12px !important } /* input border */ .mFwySd, .JRJslf { border-color: #AAA !important } .mFwySd:focus, .JRJslf:focus, .BUzdXc { border-color: #73A6FF !important } /* 弹出菜单:条目高亮 */ .j665Sd { background-color: #E0ECFF !important } button.UHrcr { font-size: 13px !important; padding: 1px 5px !important; position: relative !important; top: 1px !important } /* ============================== Side Column ============================== */ /* Nav link button style ( all ) */ .ACpQre, .cBhtOe { padding: 0 !important } .ACpQre *, .cBhtOe * { text-decoration: none !important; margin: 0 !important; padding: 0 !important; line-height: 21px !important } /* Gmail 用 div.Pj5gjf 背景图片来制作圆角效果, ** 为了和风格匹配,当前NavLink使用Pj5gjf;其他项目则隐藏之,代之以CSS圆角border实现左侧圆角效果 */ .ACpQre div.Pj5gjf { display: none !important } /* Nav link button margin ( all ) */ .ACpQre, .cBhtOe { -moz-border-radius: 4px 0 0 4px !important; border: 1px solid #C3D9FF !important; cursor: pointer; padding: 0 !important; margin: 0 3px 3px 20px !important; width: auto !important } /* Compose & Contacts = span.zD5BAe */ /* Spam & Trash ======= a....Tm9rOd */ /* ELSE =============== a....zD5BAe */ .cBhtOe .zD5BAe, .ACpQre .zD5BAe, .IyrUZb a.Tm9rOd { padding-left: 10px !important; display: block !important; margin: 0px !important; z-index: 99 !important } .IyrUZb a.Tm9rOd { color: #555 !important } /* Nav link button style ( 'current' ) */ .cBhtOe { margin-left: 0 !important; margin-right: 0 !important; border-width: 0 !important } .cBhtOe .zD5BAe, .cBhtOe .Tm9rOd { padding-left: 20px !important; font-size: 15px !important } /* Nav link button style ( \"Compose Mail\"&\"Contacts\" ) */ .cOSVMd * { color: black !important } /* Nav link button style ( \"Spam\"&\"Trash\" ) */ .IyrUZb { border-color: #CCC !important; } .IyrUzb:hover { background-color: #CCC !important } /* Nav link hover hightlight ( normal ) */ div[class~=\"ACpQre\"]:hover { background-color: #C3D9FF !important } /* Nav link hover hightlight ( gray ) */ div[class~=\"IyrUZb\"]:hover { background-color: #CCC !important } /* remove starred and chat icon */ img.gUlKtd, img.aBJ8he { position: absolute !important; top: 3px !important; right: 3px !important } .cBhtOe img.gUlKtd, .cBhtOe img.aBJ8he { right: 7px !important } /* remove invite box */ div[class=\"XoqCub I94Sdc\"] { display: none !important; } /* ============================== Thread List ============================== */ /* List Header/Footer and 'More Action' Menu */ div.yCMBJb *, div.Sn99bd * { font-family: verdana, geneva, kalimati, sans-serif !important; } /* LIST */ div.AH8jVb * { font-family: verdana, geneva, kalimati, sans-serif !important; } /* Conversation Item */ tr.xweT7d>td { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 24px !important } tr.xweT7d>td>div { height: 25px !important } /* blank thread td */ tr.lW3BFe>td { height: 26px !important } /* unread */ tr.xweT7d:hover { background-color: #E1ECFF !important; background-image: none !important } /* read */ tr.AnqB9d { background-color: #F0F4FA !important; } tr.AnqB9d:hover { background-color: #D4E4FF !important; background-image: none !important } /* checked */ tr.rfza3e { background-color: #FFC !important; } tr.rfza3e:hover { background-color: #FFE699 !important; background-image: none !important } /* smaller right side date td */ col.bLKGFb { width: 75px !important; padding-left: 0 !important } /* label */ div[class=\"lMVONe BylWac\"] { padding-top: 3px !important } div[class=\"lMVONe BylWac\"]>div>div { padding: 1px !important; line-height: 15px !important } /* text link highlight */ div.yCMBJb span[role=\"link\"]:hover, .vwcZUe:hover { color: red !important; text-decoration: underline !important } /* More Actions border highlight */ div.QOD9Ec:hover, div.Sn99bd:hover { border-color: #444 !important; } /* ============================== Conversation ============================== */ /* remove ads */ td.eWTfhb>div[class=\"XoqCub\"]>div[class=\"XoqCub\"]>div.XoqCub>* { display: none !important; } td.eWTfhb>div[class=\"XoqCub\"]>div[class=\"XoqCub\"]>div[class=\"XoqCub\"]>div.yMuNaf { display: block !important; position: absolute !important; right: 0 !important } /* Mail Title and Labels */ div.ice3Ad { margin-top: 20px !important; position: relative !important } div.ice3Ad h1>span { position: absolute !important; top: -20px !important; left: 3px !important } div.ice3Ad h1>span.VrHWId { position: relative !important; top: 5px !important } h1.YfMhcb { font-size: 20px !important; line-height: 23px !important; font-family: Georgia, serif !important; } /* Quick Link button ( Print All, New Window, etc ) */ .ukEBTe, .YuzpRb, .kPoXId, .Dm2exe, .ZqZoEd, .AK66W { display: none !important } td.eWTfhb>div.XoqCub { width: 100% !important; font-family: verdana, sans-serif !important } td.eWTfhb div.OZly4d { padding: 0 !important; float: right !important } td.eWTfhb div.yMuNaf span { margin-right: 10px !important; padding: 0px 6px 1px 6px !important; border: 1px solid #C3D9FF !important; border-top-width: 0 !important; -moz-border-radius: 0 0 4px 4px !important; } td.eWTfhb div.yMuNaf span:hover { background-color: #C3D9FF !important } td.eWTfhb div.yMuNaf span u { text-decoration: none !important; line-height: 13px !important } /* ---------- reply box resize ---------- */ div[class=\"Gi6zqd ccqOyd\"] { margin-right: 12px !important } textarea.gV2Gwc { width: 100% !important } /* \"show details\" fix (blue frame right-side) */ table[class=\"PwUwPb XoqCub MMcQxe\"], table[class=\"PwUwPb XoqCub MMcQxe\"] div[class=\"XoqCub ice3Ad\"] { width: 100% !important } /* ================== ELSE =================== */ .goog-menuitem * { white-space: nowrap !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); 
	}
}
})();