Automatically removes old messages on the ChatGPT page, keeping only the latest 5
当前为
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.
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.
chat.openai.com and chatgpt.com