ChatGPT Conversation Pruner

缓解 ChatGPT 长对话场景下的前端性能问题

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
slhaf
Dziennych instalacji
1
Wszystkich instalacji
17
Oceny
0 0 0
Wersja
2.3.5
Utworzono
04-02-2026
Zaktualizowano
05-02-2026
Rozmiar
25,2 KB
Licencja
MIT
Dotyczy

ChatGPT-Conversation-Pruner

一个用于缓解 ChatGPT 长对话场景下前端性能问题的 Tampermonkey 用户脚本。

该脚本通过在对话 DOM 达到“稳定态”后,动态剪枝较早的对话轮次(turn),以降低页面中同时存在的 DOM 节点数量,从而改善滚动、输入和渲染时的卡顿问题。

脚本仅在对话页面生效,不拦截网络请求,不收集任何数据。

脚本灵感来自 ChatGPT 长对话卡顿优化。 在其基于 DOM 卸载的优化思路基础上,本脚本进一步引入了被剪枝 DOM 的缓存、按需恢复以及基于滚动状态的动态 DOM 管控机制,以适配更长对话和更复杂的前端状态变化。

GitHub链接: https://github.com/slhafzjw/ChatGPT-Conversation-Pruner