New Outlook.com Email OWA Adbar remover

This script removes Outlook.com Email OWA Ads from new interface and reclaims the space.

  1. // ==UserScript==
  2. // @name New Outlook.com Email OWA Adbar remover
  3. // @version 0.1.4
  4. // @description This script removes Outlook.com Email OWA Ads from new interface and reclaims the space.
  5. // @author Allan DSouza
  6. // @match https://outlook.live.com/*
  7. // @grant none
  8. // @namespace https://greasyfork.org/users/20177
  9. // ==/UserScript==
  10.  
  11.  
  12. (function() {var css = [
  13. "._n_h {display: none; width: 0 !important; position: absolute}",
  14. "#primaryContainer > div:nth-child(7){ right: 0 !important; width: 100% !important;}",
  15. "._n_15 {display: none; width: 0 !important; position: absolute}",
  16. "._2qPmszDwBfYpF7PO9Mn3KN {display: none; width: 0 !important; position: absolute}"
  17. ].join("\n");
  18.  
  19. var node = document.createElement("style");
  20. node.type = "text/css";
  21. node.appendChild(document.createTextNode(css));
  22. var heads = document.getElementsByTagName("head");
  23. if (heads.length > 0) {
  24. heads[0].appendChild(node);
  25. } else {
  26. document.documentElement.appendChild(node);
  27. }
  28. })();