loading...
Cover image for Outlook Space Liberation - A Tampermonkey Script

Outlook Space Liberation - A Tampermonkey Script

fischgeek profile image fischgeek ・1 min read

I don't frequent outlook.com, but when I do, I can't tell you how much it annoys me that ad-block (in this case Ghostery) is unable to block these sections. So, I did what anyone would do, I created a tampermonkey script to help me out. Thought I would share it. Hope it brings others as much joy as it does me.

// ==UserScript==
// @name         Outlook Space Liberation
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Gains that space back by annoying ads and upgrade prompts.
// @author       fischgeek
// @match        https://outlook.live.com/mail/*
// @grant        none
// @require      http://code.jquery.com/jquery-1.12.4.min.js
// ==/UserScript==

var $ = window.jQuery
$(document).ready(function() {
    setInterval(function(){
        $('[data-icon-name="OutlookLogo"]').parent().parent().parent().hide()
        $('[role="menu"]').prev().hide()
        $('span:contains("Upgrade to Office 365")').parent().parent().parent().hide()
    }, 500)
})

Discussion

pic
Editor guide