🧠 X.com Heavy JS Optimizer+

Enhance X.com/Twitter performance by removing heavy CSS, throttling FPS, limiting feed DOM, blocking analytics, and optimizing offscreen videos.

Verze ze dne 23. 10. 2025. Zobrazit nejnovější verzi.

Seznam verzí skriptu, při kterých došlo ke změnám v kódu. Zobrazit všechny verze.

  • v1.3.6 08. 11. 2025

    v1.3.6
    - perf: throttle setTimeout same as setInterval to reduce CPU wakeups
    - fix: correct override to no-op only longtask/resource/paint observers
    - perf: add modulepreload removal to block bundler prefetch
    - perf: apply content-visibility to sidebarColumn to reduce offscreen layout cost
    - perf: lower fetchPriority for images to save bandwidth
    - style: extend cleanup for gradient/shadow utility classes

  • v1.3.5 06. 11. 2025

    v1.3.5
    - feat: add localization & extended language support (50 locales)
    - chore: unify metadata descriptions & names

  • v1.3.4 06. 11. 2025

    v1.3.4
    - refactor: replace MutationObserver blocker with throttled version
    - fix: restore feed loading & modals on X.com (no more broken infinite scroll)

  • v1.3.3 06. 11. 2025

    v1.3.3
    - refactor: rewrite PerformanceObserver patch to safe version (fix arguments/constructor issue)

  • v1.3.2 23. 10. 2025
  • v1.3.1 23. 10. 2025

    🧠 X.com Heavy JS Optimizer+ — Changelog

    v1.3.1-pre (2025-10-23)

    Fixes & Stability

    • Fixed critical TypeError: root.querySelectorAll is not a function caused when onReady() fired before the DOM was available.
    • Added safety guards for both scanVideos() and scanImg() to prevent crashes on non-Element nodes.
    • Ensured first DOM scan is triggered correctly using onReady() (no more skipped optimization for initial videos/images).
    • Improved overall stability on browsers with aggressive preload or delayed DOM construction.

    Performance Enhancements

    • Maintained @run-at document-start for maximum patch coverage (fetch, rAF, and setInterval hooks initialize early).
    • Added lightweight checks to reduce redundant MutationObserver calls.
    • Optimized early CSS injection timing for faster compositor cleanup.

    Behavior Improvements

    • Video & image optimization now runs both:
      • Once after DOM ready (onReady).
      • Continuously via live MutationObserver for new tweets.
    • Prevented double-injection and redundant event listeners.

    Developer Notes

    • This version is functionally identical to v1.3.0, but much safer and crash-free.
    • Considered stable for daily use.
    • Future builds will focus on:
      • Live FPS/Memory overlay (performance HUD).
      • Smart DOM cleanup (auto remove old tweets after 10+ minutes).

    v1.3.0 (Initial Public Release)

    Core Features

    • Full optimization suite for X.com/Twitter:
      • Removes heavy CSS (blur, backdrop-filter, linear-gradient).
      • Forces content-visibility: auto on feed articles for massive paint savings.
      • Caps frame rate to ~45 FPS during long tasks (Aggressive Mode).
      • Pauses offscreen videos and enforces single active video decoding.
      • Auto-lazy-loads and async-decodes all images.
      • Optionally blocks analytics (scribe, metrics, client_event, etc.).
    • User menu (GM_registerMenuCommand) to toggle:
      • Aggressive Mode ON/OFF
      • DOM feed limit
      • Analytics blocking

    Adaptive Runtime

    • Auto-detects browser long tasks via PerformanceObserver.
    • Dynamically enables “Aggressive” or “Ultra” mode when lag spikes.
    • Reduces setInterval density to lighten CPU usage.

    Author

    Oppai1442
    GreasyFork Profile

    License: MIT

  • v1.3.0 22. 10. 2025