Microsoft Edge Ad Blocker

This is blocker for Edge ads on Microsoft websites. DISCLAIMER! Author isn't affiliated with Google, Apple and other Microsoft haters. Suсk it! We all love Microsoft, but sometimes their pushes are a bit annoying

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Microsoft Edge Ad Blocker
// @namespace    http://microsoft.com/
// @version      0.3
// @description  This is blocker for Edge ads on Microsoft websites. DISCLAIMER! Author isn't affiliated with Google, Apple and other Microsoft haters. Suсk it! We all love Microsoft, but sometimes their pushes are a bit annoying
// @author       Kenya-West
// @match        https://*.live.com/*
// @match        http*://*.office.com/*
// @match        http*://*.microsoft.com/*
// @match        http*://*.xbox.com/*
// @match        http*://*.skype.com/*
// @match        http*://*.mixer.com/*
// @match        http*://*.outlook.com/*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    var adList = [
        "#epb",
        "#edgePromotion",
        "ohp-announcement",
        ".ms-bgc-ns.notificationBarSlideIn"
    ];

    for (var i = 0; i < adList.length; i++) {
        try {
            document.querySelector(adList[i]).style.display = "none";
            console.log("Microsoft Edge Ad Blocker successfully blocker the banner '" + adList[i] + "'"); //production::enable
        } catch (err) {}
    }
})();