您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove as notificações de todos os sites do navegador.
// ==UserScript== // @name Sem Notificação // @description Remove as notificações de todos os sites do navegador. // @namespace CowanNOT // @license CowBas // @version 1.0 // @author Cowanbas // @match *://*/* // @run-at document-start // ==/UserScript== (function() { 'use strict'; // Lista de nomes comuns de notificações const notificationSelectors = [ '.notification', // Classe de notificação '#notification', // ID de notificação '.notif', // Abreviação às vezes usada '.alert', // Alertas do Bootstrap '.toast', // Notificações tipo toast '.popup', // Notificações estilo popup '[role="alert"]', // Role ARIA para alerta '[data-notification]' // Atributo de dados customizado ]; // Remover as notificações function removeNotifications() { notificationSelectors.forEach(selector => { const elements = document.querySelectorAll(selector); elements.forEach(element => { element.remove(); }); }); } // Tirar as notificações ao recarregar a página window.addEventListener('load', removeNotifications); // Observar notificações adicionadas dinamicamente const observer = new MutationObserver(removeNotifications); observer.observe(document.body, { childList: true, subtree: true }); })();