ΠΠΎΠ΄ΠΎΠ±ΡΠ΅ΡΠ΅ ΠΏΡΠΎΠΈΠ·Π²ΠΎΠ΄ΠΈΡΠ΅Π»Π½ΠΎΡΡΡΠ° Π½Π° X.com/Twitter: ΠΏΡΠ΅ΠΌΠ°Ρ Π²Π° ΡΠ΅ΠΆΡΠΊ CSS, ΠΎΠ³ΡΠ°Π½ΠΈΡΠ°Π²Π° FPS, Π½Π°ΠΌΠ°Π»ΡΠ²Π° ΡΠ°Π·ΠΌΠ΅ΡΠ° Π½Π° DOM, ΠΏΠΎΡΡΠ°Π²Ρ Π½Π° ΠΏΠ°ΡΠ·Π° Π²ΠΈΠ΄Π΅ΠΎΠΊΠ»ΠΈΠΏΠΎΠ²Π΅ ΠΈΠ·Π²ΡΠ½ Π΅ΠΊΡΠ°Π½Π°, Π±Π»ΠΎΠΊΠΈΡΠ° Π°Π½Π°Π»ΠΈΠ·ΠΈ ΠΈ Π°Π²ΡΠΎΠΌΠ°ΡΠΈΡΠ½ΠΎ Π°ΠΊΡΠΈΠ²ΠΈΡΠ° Π°Π³ΡΠ΅ΡΠΈΠ²Π΅Π½ ΡΠ΅ΠΆΠΈΠΌ ΠΏΡΠΈ Π·Π°Π±Π°Π²ΡΠ½Π΅.
ΠΡ
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.
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.