ChatGPT Navigator & Fold-Plus

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

目前為 2025-06-19 提交的版本,檢視 最新版本

作者
yazanzaid00
評價
0 0 0
版本
1.1.0
建立日期
2025-06-18
更新日期
2025-06-19
尺寸
12.2 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.

QingJ © 2025

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