Outlook Space Liberation - A Tampermonkey Script

fischgeek

fischgeek

Posted on June 14, 2019

Outlook Space Liberation - A Tampermonkey Script

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)
})
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
fischgeek
fischgeek

Posted on June 14, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related