网易邮箱净化-标签页

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

目前為 2019-10-08 提交的版本,檢視 最新版本

// ==UserScript==
// @name         网易邮箱净化-标签页
// @namespace    https://greasyfork.org/users/158180
// @version      0.2
// @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*
// @grant        none
// @run-at       document-start
// ==/UserScript==

var $G = window.$G || {}

$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)
}

$.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
}

(function() {
    'use strict';

    
})();