// ==UserScript==
// @author         ProtectorOne, langware
// @version        4.8
// @name           Hotmail Ad Remover
// @description    Removes ad and Quick Add pane from Windows Live Mail
// @include        http://*.mail.live.com/*
// @include        https://*.mail.live.com/*
// @include        http://mail.live.com/*
// @include        https://mail.live.com/*
// @date           4 August 2009
// @injectframes   1
// ==/UserScript==

// remove Quick Add
var i, mc, QAPane = document.getElementById('IAPWrapper'),
    ids = ['MainContent','ManagedContentWrapper'];
if(QAPane) QAPane.parentNode.removeChild(QAPane);

// expand panes
for (i in ids){
  mc = document.getElementById(ids[i]);
  if (mc){
    mc.style.right = '0px';
    mc.style.marginRight = '1px';
  }
}
