New Outlook.com Email OWA Adbar remover

This script removes Outlook.com Email OWA Ads from new interface and reclaims the space.

ของเมื่อวันที่ 08-03-2016 ดู เวอร์ชันล่าสุด

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         New Outlook.com Email OWA Adbar remover
// @version      0.1.1
// @description  This script removes Outlook.com Email OWA Ads from new interface and reclaims the space.
// @author       Allan DSouza
// @match        https://outlook.live.com/owa/*
// @grant        none
// @namespace https://greatest.deepsurf.us/users/20177
// ==/UserScript==


(function() {var css = [
    "._n_p {display: none; width: 0 !important; position: absolute}",
    "#primaryContainer > div:nth-child(4){ right: 0 !important; width: 100% !important;}"
].join("\n");

	var node = document.createElement("style");
	node.type = "text/css";
	node.appendChild(document.createTextNode(css));
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		heads[0].appendChild(node); 
	} else {
		document.documentElement.appendChild(node);
	}
})();