A Firefox-only performance add-on for ChatGPT long conversations.
Long ChatGPT threads can become heavy over time, especially when a conversation grows to hundreds of turns. On Firefox this often shows up as:
- slow scroll responsiveness,
- higher CPU usage during updates,
- larger memory footprint from keeping every message mounted,
- heavier background-tab resource usage.
Trimwise Forfoxxx addresses these by reducing DOM pressure, batching expensive operations, and prioritizing visible content.
- DOM bloat in long chats: offscreen messages are virtualized into lightweight placeholders.
- Main-thread spikes: virtualize/restore work is processed through adaptive frame budgets.
- Repeated mutation churn: conversation updates are coalesced and processed in idle-friendly batches.
- Costly full collapse passes: long-message collapse scans are chunked and cached.
- Background-tab waste: observers are detached/paused when the tab is hidden.
- Maintainer / Author: Shnxxx
- Original creator: Garanovich
- Fork lineage reference: icedmoca
- Current: v2.1-firefox.13
- Manifest: 2.1.13
This repository is strictly Firefox-focused. Chromium/Chrome compatibility is intentionally removed.
- Virtual scrolling with DOM removal + height placeholders
- Adaptive frame-budget queue for virtualize/restore operations
- Bitwise queue-state flags to avoid redundant scheduling
- Idle-batched mutation processing
- Chunked collapse scanning with cached height reads
- Background-tab observer detachment (
visibilitychange) to reduce hidden-tab CPU usage - Firefox-only options UI simplification: integer input + compact save action for lower UI overhead
- Download the
.xpifile from the Releases section. - Open the downloaded file in Firefox.
- Click Add when Firefox prompts to install the add-on.
- Open:
about:debugging#/runtime/this-firefox - Click Load Temporary Add-on
- Select
manifest.jsonfrom the project folder.
- Floating settings button opens Add-on Settings (not "Extension")
- Settings page follows chat dark/light theme when opened
- Includes:
- Contribute link (issues): https://github.com/Shnxxx/Trimwise-Firefox/issues
- Ko-fi support button
- Credits to Garanovich and icedmoca
| Scenario | Baseline | v2.1-firefox.13 |
|---|---|---|
| Mutation burst handling | Repeated immediate work | Idle-batched/coalesced |
| Virtualize/restore spikes | High same-frame churn | Adaptive frame-budget queue |
| Hidden-tab CPU | Continues processing | Observer detached while hidden |
| Collapse scanning | Large synchronous scan | Chunked idle scan + cache |
MIT