Skip to content

QAshan2021/chatgpt-chat-trim-toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Chat Trim Toggle

A lightweight Chrome extension that helps reduce lag in long ChatGPT conversations by hiding older conversation turns and keeping only the latest messages visible.

Why this exists

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.

Features

  • 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

How it works

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.

Supported sites

  • https://chatgpt.com/*
  • https://chat.openai.com/*

Permissions

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.

Project structure

chat-trim-toggle/
├── manifest.json
└── content.js

About

Chrome extension that hides older ChatGPT conversation turns and keeps only the latest messages visible to reduce lag in long chats.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors