Outlook Extend Panel

Extend right side panel of Outlook mail

As of 11.11.2016. See ბოლო ვერსია.

// ==UserScript==
// @name        Outlook Extend Panel
// @version     1.07
// @description Extend right side panel of Outlook mail
// @namespace   iFantz7E.OutlookExtendPanel
// @match       *://*.mail.live.com/*
// @match       *://outlook.live.com/*
// @run-at      document-start
// @grant       GM_addStyle
// @icon        https://a.gfx.ms/OLFav.ico
// @copyright	2014, 7-elephant
// ==/UserScript==

// http://userscripts.org/scripts/show/293639
// https://greasyfork.org/scripts/9587-outlook-extend-panel

GM_addStyle(
	"   #MainContent { right: 0px !important; } "
	+ " .WithRightRail { right: 0px !important; } "
	+ " #RightRailContainer, ._n_h { display: none !important; } "
	+ " ._rp_v2, ._rp_Y4 { margin-left: 0px !important; } "
	+ " ._rp_g { margin-left: 13px !important; } "
	+ " .treeHeaderContainer .firstHeaderTreeNodeRow { padding-left: 15px !important; } "
	+ " .oep_Right { right: 0px !important; } "
	+ " .ms-bgc-nlr .subfolders .nowrap { margin-left: -30px; } "
);

function attachOnLoad(callback)
{
	window.addEventListener("load", function (e) 
	{
		callback();
	});
}

function attachOnReady(callback) 
{
	document.addEventListener("DOMContentLoaded", function (e) 
	{
		callback();
	});
}

function ready()
{
	var countNN = 100;
	var tmNN = setInterval(function()
	{
		var eleNN = document.querySelector("._n_N");
		if (eleNN)
		{
			eleNN.parentElement.parentElement.classList.add("oep_Right");
			clearInterval(tmNN);
		}
		if (countNN-- < 0)
		{
			clearInterval(tmNN);
		}
	}, 100);
}

function load()
{
}

attachOnReady(ready);
attachOnLoad(load);