隐藏Outlook广告

隐藏Outlook网页端的各种内嵌广告

目前为 2018-02-28 提交的版本。查看 最新版本

// ==UserScript==
// @name              Hide Outlook ads
// @name:zh-CN        隐藏Outlook广告
// @namespace         https://gf.qytechs.cn/zh-CN/users/42351
// @require           https://code.jquery.com/jquery-3.2.1.min.js
// @version           0.7
// @description       Hide embedded ads in Outlook
// @description:zh-CN 隐藏Outlook网页端的各种内嵌广告
// @author            Antecer
// @match             https://outlook.live.com/*
// @grant             none
// ==/UserScript==

// outlook标准版广告屏蔽css
var cssNomal = [
    '._n_h{display: none !important;}', //隐藏右侧广告
    '#primaryContainer > div{right: 0px !important; bottom:0 !important;}', //消除上一条广告的占位
    '._n_15{display: none !important;}', //隐藏"升级到 Premium"按钮
    '._n_05{bottom: 40px !important;}', //消除上一条广告的占位
    'div[style*="height: 40px"][style*="bottom: 0px"]{display: none !important;}', //隐藏底部的推荐Edge广告
    'div[style*="top: 40px"] > div > div { bottom:0 !important;}' //消除上一条广告的占位
].join("\r\n");
// outlook测试版广告屏蔽css
var cssBeta = [
    '._2qPmszDwBfYpF7PO9Mn3KN{display: none !important;}', //隐藏右侧广告
    '._20YsfelFmugQWgNkXdkYaF{display: none !important;}' //隐藏订阅outlook广告
].join("\r\n");
// 合并css规则
var cssAll = '<style>' + cssNomal + cssBeta + '</style>';
// 执行css规则
jQuery.noConflict();
(function($){ $(function(){
    $("head:first").append(cssAll);
});})(jQuery);

QingJ © 2025

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