ChatGPT AutoCleaner v2

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

Tekijä
Aleksey Maximov
Päivittäiset asennukset
0
Asennuskerrat
3
Arvostelut
0 0 0
Versio
1.0
Luotu
26.7.2025
Päivitetty
26.7.2025
Size
6,5 kt
Lisenssi
MIT
Käytössä

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。