Remove Telemetr.io Blur and Notifications

Removes blur effect and notifications on telemetr.io

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Remove Telemetr.io Blur and Notifications
// @namespace    http://tampermonkey.net/
// @version      1.1
// @author       sharmanhall
// @description  Removes blur effect and notifications on telemetr.io
// @match        https://telemetr.io/en/net/*
// @match        https://telemetr.io/en/channels/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=https://telemetr.io
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    function removeElements() {
        // Remove blur div for /en/net/* pages
        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\\]');
        if (blurDivNet) {
            blurDivNet.remove();
        }

        // Remove blur div for /en/channels/* pages
        const blurDivChannels = document.querySelector('body > main > div.container.relative.my-16.min-h-\\[500px\\] > div.absolute.inset-0.z-20.flex.justify-center');
        if (blurDivChannels) {
            blurDivChannels.remove();
        }

        // Remove update notification and "Choose a Different Plan" overlay
        const notifications = document.querySelectorAll('.auth-plug');
        notifications.forEach(notification => notification.remove());
    }

    // Run the function immediately
    removeElements();

    // Set up a MutationObserver to handle dynamically loaded content
    const observer = new MutationObserver(removeElements);
    observer.observe(document.body, { childList: true, subtree: true });
})();