Removes blur effect and update notification on telemetr.io
当前为
// ==UserScript==
// @name Remove Telemetr.io Blur and Update Notification
// @namespace http://tampermonkey.net/
// @version 1.0
// @author sharmanhall
// @description Removes blur effect and update notification on telemetr.io
// @match https://telemetr.io/en/net/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=https://telemetr.io
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
// Function to remove elements
function removeElements() {
// Remove blur div
const blurDiv = 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 (blurDiv) {
blurDiv.remove();
}
// Remove update notification
const updateNotification = document.querySelector('.auth-plug');
if (updateNotification) {
updateNotification.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 });
})();