Skip to content

Instantly share code, notes, and snippets.

@nappa32
Created March 9, 2025 16:53
Show Gist options
  • Save nappa32/8d95c632b5d208bb3073d4f929828188 to your computer and use it in GitHub Desktop.
Save nappa32/8d95c632b5d208bb3073d4f929828188 to your computer and use it in GitHub Desktop.
// ==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