NOTICE: By continued use of this site you understand and agree to the binding شروط الخدمة and سياسة الخصوصية.
Install steps: Install a userscript manager, select Install, then open a website matched by the script.
كيفية استخدام برنامج Userscript للمبتدئين Chrome Edge Firefox
The following figures come from the original source and are separate from activity on this site.
Original script: 🧠 X.com 高级 JavaScript 优化器+
Source version: 1.3.9
Last source check:
Last successful check:
Requests received by this site are not proof that a user completed installation.
Clicking Install records a request on this site; it does not confirm installation. Not working after install? View troubleshooting and issues
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.
التقييم: 0