Outlook.com 广告移除器

从 Outlook.com 邮件界面中移除广告

  1. // ==UserScript==
  2. // @name Outlook.com Ad Remover
  3. // @description Remove ads from Outlook.com mail interface
  4. // @name:ar مزيل إعلانات Outlook.com
  5. // @description:ar إزالة الإعلانات من واجهة بريد Outlook.com
  6. // @name:bg Премахване на реклами от Outlook.com
  7. // @description:bg Премахва рекламите от интерфейса на пощата в Outlook.com
  8. // @name:cs Odstraňovač reklam z Outlook.com
  9. // @description:cs Odstraňuje reklamy z rozhraní pošty Outlook.com
  10. // @name:da Outlook.com Annoncefjerner
  11. // @description:da Fjerner annoncer fra Outlook.com mail-grænsefladen
  12. // @name:de Outlook.com Werbung Entferner
  13. // @description:de Entfernt Werbung aus der Outlook.com Mail-Oberfläche
  14. // @name:el Αφαίρεση διαφημίσεων από το Outlook.com
  15. // @description:el Αφαιρεί διαφημίσεις από τη διεπαφή αλληλογραφίας του Outlook.com
  16. // @name:en Outlook.com Ad Remover
  17. // @description:en Remove ads from Outlook.com mail interface
  18. // @name:eo Outlook.com Reklamforigilo
  19. // @description:eo Forigas reklamojn el la poŝtinterfaco de Outlook.com
  20. // @name:es Eliminador de anuncios de Outlook.com
  21. // @description:es Elimina anuncios de la interfaz de correo de Outlook.com
  22. // @name:fi Outlook.com Mainosten Poistaja
  23. // @description:fi Poistaa mainokset Outlook.com-sähköpostikäyttöliittymästä
  24. // @name:fr Suppresseur de publicités Outlook.com
  25. // @description:fr Supprime les publicités de l’interface de messagerie Outlook.com
  26. // @name:fr-CA Suppresseur de publicités Outlook.com
  27. // @description:fr-CA Supprime les publicités de l’interface de messagerie Outlook.com
  28. // @name:he מסיר פרסומות של Outlook.com
  29. // @description:he מסיר פרסומות מממשק הדואר של Outlook.com
  30. // @name:hr Uklanjanje oglasa s Outlook.com
  31. // @description:hr Uklanja oglase iz sučelja pošte na Outlook.com
  32. // @name:hu Outlook.com Hirdetéseltávolító
  33. // @description:hu Eltávolítja a hirdetéseket az Outlook.com levelezőfelületről
  34. // @name:id Penghapus Iklan Outlook.com
  35. // @description:id Menghapus iklan dari antarmuka email Outlook.com
  36. // @name:it Rimuovi annunci da Outlook.com
  37. // @description:it Rimuove gli annunci dall’interfaccia di posta di Outlook.com
  38. // @name:ja Outlook.com広告リムーバー
  39. // @description:ja Outlook.comメールインターフェースから広告を削除します
  40. // @name:ka Outlook.com რეკლამის მოცილება
  41. // @description:ka შლის რეკლამებს Outlook.com-ის ელფოსტის ინტერფეისიდან
  42. // @name:ko Outlook.com 광고 제거기
  43. // @description:ko Outlook.com 메일 인터페이스에서 광고를 제거합니다
  44. // @name:nb Outlook.com Annonsefjerner
  45. // @description:nb Fjerner annonser fra Outlook.com e-postgrensesnittet
  46. // @name:nl Outlook.com Advertentieverwijderaar
  47. // @description:nl Verwijdert advertenties uit de Outlook.com e-mailinterface
  48. // @name:pl Usuwacz reklam Outlook.com
  49. // @description:pl Usuwa reklamy z interfejsu poczty Outlook.com
  50. // @name:pt-BR Removedor de anúncios do Outlook.com
  51. // @description:pt-BR Remove anúncios da interface de e-mail do Outlook.com
  52. // @name:ro Îndepărtarea reclamelor din Outlook.com
  53. // @description:ro Elimină reclamele din interfața de e-mail Outlook.com
  54. // @name:ru Удаление рекламы с Outlook.com
  55. // @description:ru Удаляет рекламу из интерфейса почты Outlook.com
  56. // @name:sk Odstraňovač reklám z Outlook.com
  57. // @description:sk Odstraňuje reklamy z rozhrania pošty Outlook.com
  58. // @name:sr Уклањање огласа са Outlook.com
  59. // @description:sr Уклања огласе из интерфејса поште на Outlook.com
  60. // @name:sv Outlook.com Annonsborttagare
  61. // @description:sv Tar bort annonser från Outlook.com e-postgränssnittet
  62. // @name:th ตัวลบโฆษณา Outlook.com
  63. // @description:th ลบโฆษณาออกจากอินเทอร์เฟซอีเมลของ Outlook.com
  64. // @name:tr Outlook.com Reklam Kaldırıcı
  65. // @description:tr Outlook.com posta arayüzünden reklamları kaldırır
  66. // @name:ug Outlook.com ئېلان ئۆچۈرگۈچ
  67. // @description:ug Outlook.com خەت ئارايۈزىدىن ئېلانلارنى ئۆچۈرىدۇ
  68. // @name:uk Видаляч реклами з Outlook.com
  69. // @description:uk Видаляє рекламу з інтерфейсу пошти Outlook.com
  70. // @name:vi Công cụ xóa quảng cáo Outlook.com
  71. // @description:vi Xóa quảng cáo khỏi giao diện thư của Outlook.com
  72. // @name:zh Outlook.com 广告移除器
  73. // @description:zh 从 Outlook.com 邮件界面中移除广告
  74. // @name:zh-CN Outlook.com 广告移除器
  75. // @description:zh-CN 从 Outlook.com 邮件界面中移除广告
  76. // @name:zh-HK Outlook.com 廣告移除器
  77. // @description:zh-HK 從 Outlook.com 郵件介面中移除廣告
  78. // @name:zh-SG Outlook.com 广告移除器
  79. // @description:zh-SG 从 Outlook.com 邮件界面中移除广告
  80. // @name:zh-TW Outlook.com 廣告移除器
  81. // @description:zh-TW 從 Outlook.com 郵件介面中移除廣告
  82. // @namespace http://tampermonkey.net/
  83. // @version 1.0.1
  84. // @author aspen138
  85. // @match *://outlook.live.com/mail/0/*
  86. // @grant none
  87. // @license MIT
  88. // ==/UserScript==
  89.  
  90. (function() {
  91. 'use strict';
  92.  
  93. // Function to remove ad elements
  94. function removeAds() {
  95. // Remove elements with aria-label="广告" (Ad in Chinese)
  96. document.querySelectorAll('[aria-label="广告"]').forEach(el => {
  97. el.closest('div[class]').remove();
  98. });
  99.  
  100. // Remove elements with ID starting with 'owaadbar'
  101. document.querySelectorAll('[id^="owaadbar"]').forEach(el => {
  102. el.closest('div[class]').remove();
  103. });
  104.  
  105. // Remove ad placeholders or related elements if any
  106. document.querySelectorAll('.VdboX, .GssDD, .z0duZ').forEach(el => {
  107. el.remove();
  108. });
  109. }
  110.  
  111. // Run on page load
  112. window.addEventListener('load', removeAds);
  113.  
  114. // Observe mutations to handle dynamic content (SPA behavior)
  115. const observer = new MutationObserver(removeAds);
  116. observer.observe(document.body, { childList: true, subtree: true });
  117. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址