SC2Casts.com Adblock Nag Screen Remover

Removes the 'disable Adblock' nag screen.

目前為 2016-05-17 提交的版本,檢視 最新版本

// ==UserScript==
// @name         SC2Casts.com Adblock Nag Screen Remover
// @namespace    http://lazy.artifact
// @version      0.25
// @description  Removes the 'disable Adblock' nag screen.
// @author       Lazy Artifact
// @match        http://sc2casts.com/*
// @grant        none
// ==/UserScript==

(function() {
    //hi santah!! :-)

    var popupFuncNameRegex = /pop[_-]*up/i,
        char,
        i,
        noop = function() {};

    //remove nag screen
    
    for(i in window) {
        if(!window.hasOwnProperty(i)) {
            continue;
        }

        if(!popupFuncNameRegex.test(i)) {
            continue;
        }

        window[i] = noop;
    }

})();