Skip to content

Releases

v1.2

Choose a tag to compare

@Greedeks Greedeks released this 02 Dec 13:08
bdacff8
  • Added a Collapse old Thinking option (enabled by default) that collapses expanded reasoning blocks once in older turns and applies content-visibility: auto to thinking containers above the latest two turns.
  • Improved cold page-load performance by switching to @run-at document-start: lightweight optimization styles, root classes, and input buffering now apply immediately before <body> exists, while the UI widget and observers initialize as soon as document.body is ready.
  • Improved animation and GPU reduction in Disable animations by hiding decorative Rive/avatar <canvas> elements (such as Kimi message avatars) and clamping CSS animations on <canvas> without affecting charts or diagrams.
  • Improved tab-return and back/forward navigation handling by consolidating visibilitychange, focus, and pageshow (bfcache) into a single onReturn handler with a coalesced 400 ms follow-up scan, eliminating duplicate scans on focus and avoiding up to a 5-second wait when sites update content right after returning to a tab.

v1.1

Choose a tag to compare

@Greedeks Greedeks released this 01 Dec 16:27
3f658e5
  • Fixed an issue where clicking code blocks or Copy buttons could cause sudden scroll jumps by excluding :focus-within elements from content-visibility: auto and reducing the pre-render margin from 1600 px to 800 px.
  • Added support for Grok (grok.com), Perplexity (perplexity.ai), and Qwen (chat.qwen.ai), including <textarea> input buffering on Grok and Qwen.
  • Added an Isolate message layout option (contain: layout style, enabled by default) to prevent streaming responses from triggering layout reflows across neighboring messages.
  • Added a 5-step buffer delay slider (120 / 180 / 240 / 320 / 400 ms, default 240 ms) under Smooth typing, with a one-click reset to 240 ms on the value badge.
  • Added an Adaptive / Dark / Light interface theme selector (defaulting to Adaptive) that detects the site's active theme, reacts to live theme switches, and syncs across open tabs.
  • Improved large-chat opening and scrolling behavior:
    • Switched script injection to @run-at document-body so lightweight styles apply before the chat finishes loading.
    • Inverted off-screen skipping to :not(.ai5-near) so distant turns skip layout and rendering from the very first frame.
    • Added a throttled MutationObserver (80 ms) to detect newly opened or switched chats before paint, and increased the background fallback scan interval from 2000 ms to 5000 ms to reduce periodic overhead on huge threads.
  • Improved virtualized message counting:
    • Added data-virtual-list-item-key tracking and div.ds-virtual-list scroller detection for DeepSeek so the counter reflects the full thread instead of only visible DOM rows.
    • Updated ChatGPT's counter to also read data-chatgpt-search-unit-key and data-content-search-unit-key alongside fallback-turn-* keys.

v1.0

Choose a tag to compare

@Greedeks Greedeks released this 01 Dec 14:34
710b391

Initial release of AI OptiChat - a lightweight userscript to eliminate UI lag, scroll stutters, and 2–3 FPS typing delays in long AI chats.

Highlights

  • Off-screen message skipping & smart pre-rendering for smoother scrolling without broken buttons.
  • Smooth typing (<textarea> input batching) to fix severe typing lag in huge threads.
  • Heavy style & GPU reductions (disable background blur, shadows, decorative animations, compact long code blocks, lazy-load images).
  • Per-site & global settings with auto-activate message threshold and instant cross-tab sync.
  • Floating control widget with Mini mode, drag-and-drop lock, position/settings reset, and EN / RU interface.

Supported Sites

Google AI Studio · Gemini · ChatGPT · Claude · DeepSeek · Kimi

Installation

Click the attached AI-OptiChat.user.js file below to install via Tampermonkey / Violentmonkey.