Created
June 12, 2026 06:56
-
-
Save Xornop/62b1202e7a5d3158e2b23b9dae325177 to your computer and use it in GitHub Desktop.
Web Performance Booster (Anti-Lag) userscript
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 Disable Backdrop Filter Blur | |
| // @namespace https://www.github.com/Xornop | |
| // @version 1.1 | |
| // @description Verwijdert backdrop-filter blur op alle websites om prestaties te verbeteren. | |
| // @author Xornop | |
| // @match *://*/* | |
| // @grant GM_addStyle | |
| // @run-at document-start | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const css = ` | |
| /* 1. Remove backdrop-filters */ | |
| * { | |
| backdrop-filter: none !important; | |
| -webkit-backdrop-filter: none !important; | |
| } | |
| /* 2. Strip box-shadows */ | |
| *, *::before, *::after { | |
| box-shadow: none !important; | |
| text-shadow: none !important; | |
| } | |
| /* Add subtle outline to elements that would be invisible without shadows */ | |
| .card, [class*="card"], [class*="modal"], [class*="dropdown"], [class*="popup"] { | |
| border: 1px solid rgba(128, 128, 128, 0.2) !important; | |
| } | |
| /* 3. Disable animations/transitions that cause 'Reflows' (Layout Thrashing) */ | |
| * { | |
| transition-property: opacity, transform, color, background-color !important; | |
| } | |
| `; | |
| if (typeof GM_addStyle !== 'undefined') { | |
| GM_addStyle(css); | |
| } else { | |
| const style = document.createElement('style'); | |
| style.textContent = css; | |
| (document.head || document.documentElement).appendChild(style); | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment