Skip to content
 
 

Repository files navigation

Trimwise Forfoxxx Firefox Add-on

A Firefox-only performance add-on for ChatGPT long conversations.

Why use this add-on?

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.

Problems solved

  • 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 + Lineage

  • Maintainer / Author: Shnxxx
  • Original creator: Garanovich
  • Fork lineage reference: icedmoca

Version

  • Current: v2.1-firefox.13
  • Manifest: 2.1.13

Firefox-only Scope

This repository is strictly Firefox-focused. Chromium/Chrome compatibility is intentionally removed.

Key Performance Optimizations (Firefox)

  • 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

Installation (Firefox)

Option 1 — Install from Release (.xpi)

  1. Download the .xpi file from the Releases section.
  2. Open the downloaded file in Firefox.
  3. Click Add when Firefox prompts to install the add-on.

Option 2 — Temporary Install (for testing / development)

  1. Open: about:debugging#/runtime/this-firefox
  2. Click Load Temporary Add-on
  3. Select manifest.json from the project folder.

Settings Window Notes

  • Floating settings button opens Add-on Settings (not "Extension")
  • Settings page follows chat dark/light theme when opened
  • Includes:

Theoretical Performance Comparison

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

Docs

License

MIT

About

Firefox version of Icedmoca's fork of Trimwise

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages