ChatGPT AutoCleaner v2

Automatically removes old messages on the ChatGPT page, keeping only the latest 5

作者
Aleksey Maximov
今日安裝
0
安裝總數
1
評價
0 0 0
版本
1.0
建立日期
2025-07-26
更新日期
2025-07-26
尺寸
6.5 KB
授權條款
MIT
腳本執行於

Problem

When using ChatGPT for long conversations, the web interface can become increasingly slow and unresponsive. This is especially noticeable in chats with dozens or hundreds of messages — scrolling lags, input delays, and UI freezes may occur. This happens because ChatGPT keeps all messages rendered in the DOM, which consumes memory and CPU.

Solution

This userscript automatically removes old messages from the conversation view, keeping only the most recent ones (default: 5). By cleaning up excess DOM elements, the interface stays fast and responsive, even during long sessions.

Features

  • Keeps only the N most recent messages (configurable)
  • Cleans up at a regular interval (configurable)
  • Compact floating UI to adjust settings
  • Works with both chat.openai.com and chatgpt.com
  • Fully local, no data sent anywhere

Notes

  • This script only affects the displayed messages — it does not delete anything from your account or the actual chat history stored by OpenAI.
  • Changes take effect automatically while you're chatting.