Skip to content

Instantly share code, notes, and snippets.

@fischgeek
Last active June 14, 2019 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fischgeek/811512bd5ec5de929206ee19c45200d4 to your computer and use it in GitHub Desktop.
Save fischgeek/811512bd5ec5de929206ee19c45200d4 to your computer and use it in GitHub Desktop.
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