DEV Community

Cover image for Outlook Space Liberation - A Tampermonkey Script

Posted on

Outlook Space Liberation - A Tampermonkey Script

I don't frequent, 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
// @version      0.1
// @description  Gains that space back by annoying ads and upgrade prompts.
// @author       fischgeek
// @match*
// @grant        none
// @require
// ==/UserScript==

var $ = window.jQuery
$(document).ready(function() {
        $('span:contains("Upgrade to Office 365")').parent().parent().parent().hide()
    }, 500)
Enter fullscreen mode Exit fullscreen mode

Top comments (0)