去除Gmail多余的广告和底部文字的Chrome扩展

// @name GmailLite
(function() {
var css = “table.Bs.nH.iY td.Bu:last-child{position:absolute !important;top:-99999px !important;right:0 !important;}.nH.pp..ps.pY{display: none !important;}.mm{display: none}.mn{display: none}.mp{display: none}.toxOdd{display: none}.l6{display: none}.ma{display: none}”;
if (typeof GM_addStyle != “undefined”) {
GM_addStyle(css);
} else if (typeof PRO_addStyle != “undefined”) {
PRO_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);
}
}
})();

将上述代码复制到记事本中,并将文件名改成Gmail.user.js拖拽到Chrome里面即可

评论已关闭。