Last active
October 4, 2022 05:44
-
-
Save piouc/053352df3e29357240d767a51b0e2e6b to your computer and use it in GitHub Desktop.
remove-outlook-ads.user.js
This file contains hidden or 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 Remove outlook ads | |
// @include https://outlook.live.com/mail/* | |
// @version 1.0.2 | |
// @updateURL https://gist.githubusercontent.com/piouc/053352df3e29357240d767a51b0e2e6b/raw/remove-outlook-ads.user.js | |
// @downloadURL https://gist.githubusercontent.com/piouc/053352df3e29357240d767a51b0e2e6b/raw/remove-outlook-ads.user.js | |
// @grant none | |
// ==/UserScript== | |
const style = document.createElement('style') | |
document.head.appendChild(style) | |
style.sheet.insertRule(` | |
[aria-label="Message list"] .full, | |
[aria-label="Navigation pane"] button, | |
#MainModule div[data-max-width="2400"] + div, | |
#MainModule + div { | |
display: none !important; | |
} | |
`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment