max / ๐Ÿง  X.com Heavy JS Optimizer+

Install steps: Install a userscript manager, select Install, then open a website matched by the script.

แƒ›แƒแƒ›แƒฎแƒ›แƒแƒ แƒ”แƒ‘แƒšแƒ˜แƒก แƒกแƒ™แƒ แƒ˜แƒžแƒขแƒ˜แƒก แƒ“แƒแƒ›แƒฌแƒงแƒ”แƒ‘แƒ—แƒแƒ—แƒ•แƒ˜แƒก HOWTO Chrome Edge Firefox

แƒ’แƒแƒ›แƒแƒฅแƒ•แƒ”แƒงแƒœแƒ“แƒ:

แƒ•แƒ”แƒ แƒกแƒ˜แƒ: 1.3.9.1+3c718ea แƒ’แƒแƒœแƒแƒฎแƒšแƒ”แƒ‘แƒฃแƒšแƒ˜แƒ

แƒ แƒ”แƒ–แƒ˜แƒฃแƒ›แƒ”: Enhance X.com/Twitter performance by removing heavy CSS, throttling FPS, limiting feed DOM, blocking analytics, and optimizing offscreen videos.

แƒกแƒแƒฌแƒงแƒ˜แƒกแƒ˜ แƒ’แƒ•แƒ”แƒ แƒ“แƒ˜: https://greasyfork.org/scripts/553367-x-com-heavy-js-optimizer

แƒšแƒ˜แƒชแƒ”แƒœแƒ–แƒ˜แƒ: MIT

แƒแƒœแƒขแƒ˜แƒคแƒฃแƒœแƒฅแƒชแƒ˜แƒ: แƒ“แƒแƒฃแƒ–แƒฃแƒกแƒขแƒ”แƒ‘แƒ”แƒšแƒ˜

Source and freshness

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:

Source daily installs
0
Source total installs
0
OpenUserJS install requests
0

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+

โšก Overview

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.


๐Ÿš€ Features

  • ๐Ÿงน 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.


๐Ÿงฐ Menu Commands

Available via ViolentMonkey / TamperMonkey menu:

  • ๐Ÿง  Toggle Aggressive Mode
  • ๐Ÿงฉ Set feed tweet limit
  • ๐Ÿ“Š Enable/Disable metrics blocking

๐Ÿงช Benchmarks

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)


โš™๏ธ Compatibility

โœ… Works on:

๐Ÿงฉ Supported managers:

  • ViolentMonkey โœ…
  • TamperMonkey โœ…
  • FireMonkey ๐ŸŸก (limited support)

๐Ÿ’ก Tips

  • For best results, disable other performance-altering scripts or extensions.
  • You can monitor real-time CPU impact via Chrome DevTools > Performance.

๐Ÿช„ Credits

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