Pretty Gmail GreasemonkeyScript

// ==UserScript==
// @name        Pretty Gmail
// @namespace   jason.gmail
// @description make gmail looks pretty
// @include     http*://mail.google.com/*
// @version     1.0
// ==/UserScript==

(function () {
    var addGlobalStyle = function (css) {
        var head, style;
        head = document.getElementsByTagName('head')[0];
        if (!head) { return; }
        style = document.createElement('style');
        style.type = 'text/css';
        style.innerHTML = css;
        head.appendChild(style);
    },

CONFIG = [
    //all
    '*{font:12px segoe UI!important;}',
    // remove panel scrollbar
    '.age { overflow-x: hidden;overflow-y: auto; }',
    //按钮
    '.T-I{height:18px!important; line-height:18px!important;}',
    //工具栏
    '.G-atb, .G-as7-atb, .G-MI {padding-bottom:5px;}',
    
].join("\n");

    addGlobalStyle(CONFIG);
})();

 

posted @ 2012-10-11 17:05  iQingHan  阅读(518)  评论(0编辑  收藏  举报