max / 🧠 Π Π°ΡΡˆΠΈΡ€Π΅Π½Π½Ρ‹ΠΉ ΠΎΠΏΡ‚ΠΈΠΌΠΈΠ·Π°Ρ‚ΠΎΡ€ JS для X.com+

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 ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΎ

РСзюмС: ΠžΠΏΡ‚ΠΈΠΌΠΈΠ·ΠΈΡ€ΡƒΠ΅Ρ‚ X.com/Twitter: удаляСт тяТСлыС CSS, ΠΎΠ³Ρ€Π°Π½ΠΈΡ‡ΠΈΠ²Π°Π΅Ρ‚ FPS, сокращаСт DOM, приостанавливаСт Π²ΠΈΠ΄Π΅ΠΎ Π²Π½Π΅ экрана, Π±Π»ΠΎΠΊΠΈΡ€ΡƒΠ΅Ρ‚ Π°Π½Π°Π»ΠΈΡ‚ΠΈΠΊΡƒ ΠΈ автоматичСски Π²ΠΊΠ»ΡŽΡ‡Π°Π΅Ρ‚ агрСссивный Ρ€Π΅ΠΆΠΈΠΌ ΠΏΡ€ΠΈ Π»Π°Π³Π°Ρ….

Π”ΠΎΠΌΠ°ΡˆΠ½ΡΡ страница: 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