ChatGPT Conversation Pruner

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Аўтар
slhaf
Усталяванняў за дзень
0
Усяго ўсталяванняў
16
Рэйтынг
0 0 0
Версія
2.3.5
Створаны
04.02.2026
Абноўлены
05.02.2026
Памер
25.2 КБ
Ліцэнзія
MIT
Ужываецца на

ChatGPT-Conversation-Pruner

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

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

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

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

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