ChatGPT Navigator & Fold-Plus

ChatGPT userscript: ↑↓ navigator, directory, refresh & fold long "You" messages.

当前为 2025-06-18 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
yazanzaid00
评分
0 0 0
版本
1.0.0
创建于
2025-06-18
更新于
2025-06-18
大小
11.3 KB
许可证
MIT
适用于

ChatGPT Navigator & Fold-Plus (v2.7.0)

Features

  • ↑/↓ Navigator — Quickly jump between your messages in the current conversation.
  • Message Counter — Shows “current / total” user messages; hides itself when there are none.
  • Collapsible “You” Messages — Long user messages (> 3 lines) are collapsed by default; click to expand.
  • Directory Panel — A toggleable list of all your questions on the right side.
  • Refresh Button — Manually reinitialize the script if UI elements fail to appear or after switching conversations.
  • Auto-Reboot on Visibility Change — Detects when you enter/leave a conversation and re-boots itself.

Installation

  1. Install Tampermonkey (or any compatible userscript manager) in Safari 18.5.
  2. Create a new userscript and paste in the entire code.
  3. Save & enable.

Usage

  • Click the button to force a full re-scan & reposition (useful after chat switching).
  • Click the ▼/▲ toggle to show or hide the question directory.
  • Use the and buttons beside the composer to move through your question turns.
  • Click on a collapsed message to expand/collapse it.
  • The navigator hides itself automatically if there are no user messages.

Customization

  • Adjust CONFIG.FOLD.lineThreshold (default 3) to change when messages fold.
  • Tweak CONFIG.TIMINGS values for scroll-suppress debounce or SPA boot delay.
  • If ChatGPT renames DOM selectors, update the strings under CONFIG.SELECTORS.

Troubleshooting

  • If the navigator or directory fails to appear, click the ⟳ Refresh button.
  • After a major ChatGPT UI update, edit only the CONFIG.SELECTORS section to match new classes.
  • All “breaking points” live in the top CONFIG block for easy maintenance.