JavĂtsa az X.com/Twitter teljesĂtmĂ©nyĂ©t: eltĂĄvolĂtja a nehĂ©z CSS-t, korlĂĄtozza az FPS-t, csökkenti a DOM mĂ©retĂ©t, szĂŒnetelteti a kĂ©pernyĆn kĂvĂŒli videĂłkat, letiltja az analitikĂĄt, Ă©s kĂ©sĂ©s esetĂ©n automatikusan engedĂ©lyezi az agresszĂv mĂłdot.
X.com Heavy JS Optimizer+ is a high-performance userscript that dramatically reduces lag, scroll jank, and CPU load on X.com (Twitter).
It intelligently removes redundant animations, limits repainting, pauses offscreen videos, and caps JavaScript frame rates â all without breaking the core site experience.
đ§č Lightweight CSS Cleanup
Removes heavy effects (backdrop-filter, blur, gradients) and disables GPU-stressing layers.
âïž Passive Event Optimization
Forces passive: true on scroll/touch listeners for smoother rendering.
đïž Smart Video Control
âą Only one video can play at a time
âą Auto-pause when scrolled offscreen
âą Prevents auto-play and decoding spam
đ§© DOM Feed Garbage Collector
Keeps only the last N tweets in the DOM to prevent memory bloat.
(Configurable from userscript menu.)
đ Metrics Blocking (Optional)
Blocks unnecessary telemetry calls like scribe, engagement, and client_event.
⥠Aggressive Runtime Mode
Auto-detects long tasks and dynamically limits FPS (requestAnimationFrame) to maintain stability.
đ€ Tab Visibility Safety
Auto-pauses all videos when tab is hidden.
Available via ViolentMonkey / TamperMonkey menu:
| Scenario | Before | After | Improvement |
|---|---|---|---|
| Scrolling feed 100+ tweets | ~48â55 FPS | 90+ FPS | +85% |
| Memory footprint (avg) | 1.4 GB | 650 MB | â53% |
| CPU load (video active) | 45â60% | 25â30% | â50% |
(Tested on Brave 1.72 / Win10 / Ryzen 7 5800H)
â Works on:
đ§© Supported managers:
Developed by Oppai1442
Made with â€ïž, caffeine, and a stubborn hatred of lag
If you encounter any issues, please leave feedback â Iâll fix them as soon as possible.
License: MIT
View source on GreasyFork
â ïž Disclaimer:
This script modifies rendering behavior for optimization purposes.
Use at your own discretion â functionality on experimental browsers may vary.