Skip to content

Instantly share code, notes, and snippets.

@jamesl1001
Last active March 3, 2021 23:00
Show Gist options
  • Save jamesl1001/6828049765bd89509da1 to your computer and use it in GitHub Desktop.
Save jamesl1001/6828049765bd89509da1 to your computer and use it in GitHub Desktop.
Hides the advertisement panel on Outlook.com
// ==UserScript==
// @name Hide Ads Outlook
// @namespace https://jamesalexanderlee.co.uk/
// @version 0.11
// @description Hides the advertisement panel on Outlook.com
// @match https://outlook.live.com/*
// @author James Alexander Lee
// @copyright 2021, James Alexander Lee
// @lastUpdated 2021/03/03
// @downloadURL https://gist.github.com/jamesl1001/6828049765bd89509da1/raw/
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.githubusercontent.com/raw/2625891/waitForKeyElements.js
// ==/UserScript==
var selector = '#app > div > div:nth-child(3) > div:nth-child(1) > div:nth-child(1) > div > div > div:nth-child(4)';
waitForKeyElements(selector, function() {
document.querySelector(selector).style.display = 'none';
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment