Created
March 9, 2025 16:53
-
-
Save nappa32/8d95c632b5d208bb3073d4f929828188 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove Blur-2xl | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Removes blur-2xl class from all elements | |
// @author You | |
// @match *://*/* | |
// @grant none | |
// @run-at document-idle | |
// ==UserScript== | |
(function() { | |
'use strict'; | |
// Function to remove blur-2xl class | |
function removeBlur() { | |
// Find all elements with blur-2xl class | |
const blurredElements = document.querySelectorAll('.blur-2xl'); | |
// Remove the class from each element | |
blurredElements.forEach(element => { | |
element.classList.remove('blur-2xl'); | |
}); | |
console.log('Removed blur-2xl from', blurredElements.length, 'elements'); | |
} | |
// Run immediately after page load | |
removeBlur(); | |
// Also set up a MutationObserver to handle dynamically added elements | |
const observer = new MutationObserver(function(mutations) { | |
mutations.forEach(function(mutation) { | |
if (mutation.addedNodes.length) { | |
removeBlur(); | |
} | |
}); | |
}); | |
// Start observing the document for changes | |
observer.observe(document.body, { childList: true, subtree: true }); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment