A lightweight Chrome extension that helps reduce lag in long ChatGPT conversations by hiding older conversation turns and keeping only the latest messages visible.
Long ChatGPT chats can become slow and difficult to navigate because a large amount of conversation history stays visible in the page. This extension improves usability by trimming the visible history so the interface remains cleaner and more responsive.
Important: this extension does not delete your chat history. It only hides older conversation turns in the page.
- Keeps only the latest 5 conversation turns visible
- Adds a floating ON/OFF toggle button
- Saves your preference using Chrome storage
- Works automatically as new messages appear
- Runs only on ChatGPT pages
- No external requests
- No tracking
- No background worker
The extension injects a content script into ChatGPT pages and watches the conversation for updates.
When trimming is enabled:
- it finds conversation turn elements on the page
- keeps the most recent 5 turns visible
- hides older turns using CSS
When trimming is disabled:
- all hidden turns become visible again
The extension also stores your toggle state locally so your preference is remembered after refresh or reopening the browser.
https://chatgpt.com/*https://chat.openai.com/*
This extension uses only one permission:
storage— used to save whether trimming is enabled or disabled
It does not request access to tabs, cookies, downloads, web requests, or external servers.
chat-trim-toggle/
├── manifest.json
└── content.js