您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
hide outlook sidebar ads
- // ==UserScript==
- // @name OutlookSidebarADB
- // @version 240823.a
- // @description hide outlook sidebar ads
- // @match https://outlook.live.com/*
- // @icon https://outlook.live.com/mail/favicon.ico
- // @grant none
- // @run-at document-body
- // @namespace https://greasyfork.org/users/296362
- // ==/UserScript==
- (function() {
- 'use strict';
- // Define selectors more precisely and target specific elements
- var targets = [
- '#MainModule > div > div > div[class*=css-] + div',
- '#MailList > div > div > div > div > div > div > div > div:first-child',
- ];
- // Create the style element and apply CSS rules
- var style = document.createElement('style');
- style.textContent = targets.map(selector => `${selector} { display: none !important; }`).join('\n');
- document.body.appendChild(style);
- })();