Last active
March 3, 2021 23:00
-
-
Save jamesl1001/6828049765bd89509da1 to your computer and use it in GitHub Desktop.
Hides the advertisement panel on Outlook.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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