Remove Telemetr.io Blur and Notifications

Removes blur effect and notifications on telemetr.io

  1. // ==UserScript==
  2. // @name Remove Telemetr.io Blur and Notifications
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @author sharmanhall
  6. // @description Removes blur effect and notifications on telemetr.io
  7. // @match https://telemetr.io/en/net/*
  8. // @match https://telemetr.io/en/channels/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=https://telemetr.io
  10. // @grant none
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16.  
  17. function removeElements() {
  18. // Remove blur div for /en/net/* pages
  19. const blurDivNet = document.querySelector('body > main > div > div.relative.min-h-\\[800px\\] > div.absolute.inset-0.z-20.flex.justify-center.items-start.p-2.top-\\[212px\\]');
  20. if (blurDivNet) {
  21. blurDivNet.remove();
  22. }
  23.  
  24. // Remove blur div for /en/channels/* pages
  25. const blurDivChannels = document.querySelector('body > main > div.container.relative.my-16.min-h-\\[500px\\] > div.absolute.inset-0.z-20.flex.justify-center');
  26. if (blurDivChannels) {
  27. blurDivChannels.remove();
  28. }
  29.  
  30. // Remove update notification and "Choose a Different Plan" overlay
  31. const notifications = document.querySelectorAll('.auth-plug');
  32. notifications.forEach(notification => notification.remove());
  33. }
  34.  
  35. // Run the function immediately
  36. removeElements();
  37.  
  38. // Set up a MutationObserver to handle dynamically loaded content
  39. const observer = new MutationObserver(removeElements);
  40. observer.observe(document.body, { childList: true, subtree: true });
  41. })();