Greasy Fork

Greasy Fork is available in English.

网易邮箱净化-标签页

净化网易系邮箱标签页的广告标签

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         网易邮箱净化-标签页
// @namespace    http://greasyfork.icu/users/158180
// @version      0.4
// @description  净化网易系邮箱标签页的广告标签
// @author       Shiyunjin
// @match        http*://mail.163.com/js6/main.jsp*
// @match        http*://mail.126.com/js6/main.jsp*
// @match        http*://mail.yeah.net/js6/main.jsp*
// @match        http*://hw.mail.163.com/js6/main.jsp*
// @match        http*://hw.mail.126.com/js6/main.jsp*
// @match        http*://hw.mail.yeah.net/js6/main.jsp*
// @grant        none
// ==/UserScript==


(function() {
    window.$G.set = function(a,b,c){
        if(a=="multiTabConf"){
            var n = [];
            for(var d in b) {
                switch(b[d]["tabid"]){
                    case "t0":
                    case "t1":
                    case "t2":
                    case "t3":
                        n.push(b[d]);
                        break;
                    default:
                }
            }
            b=n;
        }
        this._conf[a] = c ? b: $.Object.isArray(b) ? $.Array.union(this._conf[a] || [], b) : $.Object.extend(this._conf[a], b)
    }

    window.$.Object.extend = function(a, b, c) {
        a = a || {},
            b = b || {};
        for (var d in b){
            if(d=="set" && a[d]) return;
            "prototype" !== d && (c && a.hasOwnProperty(d) || (a[d] = b[d]));
        }
        try {
            c || b.toString === b.constructor.prototype.toString || (a.toString = b.toString)
        } catch(e) {}
        return a
    }

    $("a[title='点击关闭标签']").click();
})();