ChatGPT AutoCleaner v2

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

作者
Aleksey Maximov
日安装量
0
总安装量
0
评分
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.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址