移除 Outlook 侧边广告

移除 Outlook 侧边和底侧广告, "开通 Premium" 按钮和 "开始会议" 按钮

  1. // ==UserScript==
  2. // @name Remove Outlook Side Ads
  3. // @name:zh-CN 移除 Outlook 侧边广告
  4. // @namespace http://tampermonkey.net/
  5. // @version 0.1
  6. // @description Remove Outlook side & bottom Ads, 'Upgrade to Premium' button and 'Meeting Now' button
  7. // @description:zh-CN 移除 Outlook 侧边和底侧广告, "开通 Premium" 按钮和 "开始会议" 按钮
  8. // @author ReekyStive
  9. // @match https://outlook.live.com/*
  10. // @icon https://www.google.com/s2/favicons?sz=64&domain=live.com
  11. // @grant none
  12. // @run-at document-body
  13. // @license MIT
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. 'use strict';
  18.  
  19. const removeSideAndBottomAds = true;
  20. const removePremiumButton = true;
  21. const removeMeetingButton = true;
  22.  
  23. let css = '';
  24. if (removeSideAndBottomAds) {
  25. css += '.pBKjV { display: none !important; }';
  26. }
  27. if (removePremiumButton) {
  28. css += '.VPtFl { display: none !important; }';
  29. }
  30. if (removeMeetingButton) {
  31. css += '#owaMeetNowButton_container { display: none !important; }';
  32. }
  33.  
  34. const style = document.createElement('style');
  35. style.innerHTML = css;
  36. document.body.appendChild(style);
  37. })();