Gmail Themes: Cold Shower Tweaks

Removes pink from the Cold Shower theme

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name           Gmail Themes: Cold Shower Tweaks
// @namespace      www.arthaey.com
// @description    Removes pink from the Cold Shower theme
// @include        http://mail.google.com/*
// @include        https://mail.google.com/*
//
// Backed up from http://userscripts.org/scripts/review/37198
// Last updated on 2008-11-20
// @version 0.0.1.20140612212411
// ==/UserScript==
(function() {

var firstClass = "ar6Hkf";
var secondClasses = [
    "S6g97b",
    "iv9XJc",
    "jsbnre",
    "QCouhb"
];

var css = "@namespace url(http://www.w3.org/1999/xhtml); ";
for (var i = 0; i < secondClasses.length; i++) {
    css += "." + firstClass + " ." + secondClasses[i] + " ";
    if (i != secondClasses.length - 1)
        css += ", ";
}
css += "{ background-color: #CFDCE6 !important; }";

// add CSS styles
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); 
  }
}
})();