Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Take back that space that those annoying ads and upgrade prompts are currently holding prisoner
// ==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)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.