Userscripts and Tampermonkey
July 7, 2013 | JavaScript
I really like the new Outlook.com mail service from Microsoft because it´s clean and minimalistic. But the advertising on the right side is really annoying, especially when you´re working in a smaller browser window. This is where Userscripts entering.
Userscripts allows you to install and run scripts (typically a brief of JavaScript code) and make on-the-fly changes to the webpage content, a technique known as augmented browsing. The scripts can either run page-specific or domain-specific. In Google Chrome you can manage those scripts by using the popular Tampermonkey browser extension.Note: Chrome does have native support for Userscripts. If you prefer using Mozilla Firefox, you can take a look at Greasemonkey, which is a corresponding extension.
So after some small lines of JavaScript the ads are gone. Yey! Script updated 24/4-2015.
// ==UserScript== // @name Outlook.com & Live.com Ads Remover // @description Removes the right ads column in outlook.com and live.com // @match https://*.mail.live.com/* // @match http://*.mail.live.com/* // @match https://*.outlook.com/* // @match http://*.outlook.com/* // ==/UserScript== setTimeout(function() { var rightCol = document.querySelector('.WithRightRail'); if (rightCol) { // Let the main content div fill out the whole space rightCol.style.right = 0; // Get rid of the right ad column var ad = document.getElementById('RightRailContainer'); if (ad) { ad.parentNode.removeChild(ad); } } }, 2000);
You will find a bunch of ready-made Userscripts at userscripts-mirror.org or, developer as you are, make your own fabulous scripts ;).