zequi / Outlook.com - Visual tuninings AND Hide Right Bar (BETA)

// ==UserScript==
// @name        Outlook.com - Visual tuninings AND Hide Right Bar (BETA)
// @namespace   zequi-ns/
// @description Hides the right bar
// @include     https://*.mail.live.com/*
// @grant none
// @version     1
// base on other Script, this script just for testing
// ==/UserScript==
var observer = new MutationObserver(function(mutations) {
    mutations.forEach(function(mut) {
        if (mut.attributeName == "class" && mut.target.classList.contains("RightRailContainerWidth")) {
            mut.target.classList.remove("RightRailContainerWidth");
        }
    });
});

function hook()
{
    //added by zequi
    setTimeout(function(){ 
        document.querySelector(".foldersQuickViews").style.left="-13px"; 
        document.querySelector(".v-InboxFooterContainer .c-PageFooter").remove();
        document.querySelector(".v-InboxFooterContainer").remove();
        document.querySelector(".lnav_topItem").remove(); //borra el primer item de la columna1ª, este item es de "categorías"
        //cambiar color de botones de arriba
        document.querySelector("#Archive").style.color="#6699FF";
        document.querySelector("#MarkAsJunk").style.color="#6699FF";
        
        document.querySelector("#Sweep").style.color="#6699FF";
        // quita columna derecha
        document.querySelector("#RightRailContainer").remove();
        document.querySelector(".WithRightRail").style.right="0px";
    }, 10000);
    
    //original
    var target = document.querySelector("#contentRight");
    if (target) {
        target.classList.remove("RightRailContainerWidth");
        observer.observe(target, { attributes: true });
        return true;
    }
    return false;
}

hook();