Greasy Fork is available in English.

Outlook.com Preview OWA Adbar remover

This script removes Outlook.com Preview OWA Ads and reclaims the space.

As of 15. 11. 2015. See the latest version.

// ==UserScript==
// @name         Outlook.com Preview OWA Adbar remover
// @version      0.1.1
// @description  This script removes Outlook.com Preview OWA Ads 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);
	}
})();