Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name New Userscript
- // @namespace http://tampermonkey.net/
- // @version 2024-11-30
- // @description try to take over the world!
- // @author You
- // @match https://www.hejto.pl/
- // @icon https://www.google.com/s2/favicons?sz=64&domain=hejto.pl
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- const removeNotifications = () => {
- const notifications = document.querySelectorAll('[class*="fixed"][class*="bottom-0"][class*="right-0"][class*="z-1200"]');
- notifications.forEach(notification => notification.remove());
- };
- // Observe DOM changes to catch dynamically added notifications
- const observer = new MutationObserver(removeNotifications);
- observer.observe(document.body, { childList: true, subtree: true });
- // Initial cleanup
- removeNotifications();
- })();
Advertisement
Add Comment
Please, Sign In to add comment