Userscripts and Tampermonkey

Userscripts and Tampermonkey article image

I really like the new 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 & Ads Remover
// @description  Removes the right ads column in and
// @match        https://**
// @match        http://**
// @match        https://**
// @match        http://**
// ==/UserScript==

setTimeout(function() {
    var rightCol = document.querySelector('.WithRightRail');
    if (rightCol) {
        // Let the main content div fill out the whole space = 0;

        // Get rid of the right ad column
        var ad = document.getElementById('RightRailContainer');
        if (ad) {
}, 2000);

You will find a bunch of ready-made Userscripts at or, developer as you are, make your own fabulous scripts ;).