ChatGPT AutoCleaner v2

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

Autor
Aleksey Maximov
Denně instalací
0
Celkem instalací
3
Hodnocení
0 0 0
Verze
1.0
Vytvořeno
26. 07. 2025
Aktualizováno
26. 07. 2025
Size
6,5 KB
Licence
MIT
Spustit na

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.
长期地址
遇到问题?请前往 GitHub 提 Issues。