您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove annoying Proton Mail promotional buttons
// ==UserScript== // @name NO Proton Mail promotions // @namespace http://tampermonkey.net/ // @version 0.22 // @description Remove annoying Proton Mail promotional buttons // @author cosmicRice // @match https://mail.proton.me/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @run-at document-idle // @license MIT // ==/UserScript== (function() { 'use strict'; const removePromo = () => { const a = document.querySelector('div.flex.bg-promotion.relative'); if (!a) { return false; } a.remove(); return true; } const removeUpgrade = () => { const a = document.querySelector('li.topnav-listItem.topnav-listItem--noCollapse'); if (!a) { return false; } a.remove(); return true; } let giveUpCounter = 0; let isPromoRemoved = false; let isUpgradeRemoved = false; const interval = setInterval(() => { isPromoRemoved = isPromoRemoved || removePromo(); isUpgradeRemoved = isUpgradeRemoved || removeUpgrade(); if ((isPromoRemoved && isUpgradeRemoved) || giveUpCounter > 30) { clearInterval(interval); } giveUpCounter++; }, 500); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址