Skip to content

新增 ChatGPT 长对话双侧导航与预览脚本 - #73

Draft
kdazhy wants to merge 7 commits into
BigPizzaV3:mainfrom
kdazhy:agent/add-chatgpt-long-conversation-navigator
Draft

新增 ChatGPT 长对话双侧导航与预览脚本#73
kdazhy wants to merge 7 commits into
BigPizzaV3:mainfrom
kdazhy:agent/add-chatgpt-long-conversation-navigator

Conversation

@kdazhy

@kdazhy kdazhy commented Aug 8, 2026

Copy link
Copy Markdown

Summary

  • Add ChatGPT 长对话双侧导航与预览 v6.5.0 to the Codex++ script market.
  • Keep the complete right-side conversation index and current-answer left-side outline for Chat/Task desktop views.
  • Tighten chapter recognition so ordinary labels do not become chapters, and keep the left outline compact and opt-in.

Why

Long ChatGPT/Codex desktop conversations are difficult to scan at two levels: finding a relevant question and navigating a long answer. This userscript provides both while staying out of the native sidebar and input area.

New in v6.5.0

  • Remove the weak “short label ending with a colon” fallback rule; labels such as 主要改动:, 验证结果:, and 部署: are no longer chapters.
  • Fallback chapters now require a numbered title or a standalone bold/emphasis title, with sentence-like punctuation rejected.
  • Keep at most the first two heading levels present in the answer and show no more than eight main chapters.
  • Require at least 1200 characters in the current answer and at least three valid chapters before showing the left outline.
  • Exclude headings inside code, quote, list, and table blocks, and reject overlong heading text.
  • Preserve precise jumps, native virtual-history loading, Chat/Task answer association, streaming rescans, sidebar avoidance, scroll optimization, and hot reload.

Existing capabilities

  • Build the right-side index from Codex's complete native message-navigation rail, even when only part of the virtualized conversation DOM is mounted.
  • Show unloaded entries as “click to load preview”, reuse the native jump control, and replace placeholders after mounting.
  • Cache previews in memory for the current route only; never persist conversation text.
  • Extract visible assistant headings with hierarchy, active-section tracking, and precise heading jumps.
  • Support dynamic/streaming headings, light/dark themes, Codex++ reinjection, native sidebar transitions, and constrained hiding.
  • Do not use network or persistent-storage APIs.

Validation

  • node --check passed for the output and market scripts.
  • Parsed index.json; version, unique ID, raw URL, and SHA-256 match.
  • Chromium regression passed for colon-label false positives, two-level heading filtering, short-answer hiding, long-answer fallback titles, zero redundant scans during ordinary streamed text, precise jumps, virtual history, sidebar transitions, hot reload, and empty state; pageErrors=[].
  • Codex++ live reload passed with registry loaded, version 6.5.0, one host/lock, 21 native question positions while 5 user bubbles were mounted, precise jump error 0px, and no script/page errors. The current 1030-character answer correctly keeps the left outline hidden.
  • Script SHA-256: 097cf0cbeb8cc1f440542e3d752044fc835a7455b36457efb43baa18a14e597d.

Files

  • scripts/chatgpt-long-conversation-navigator.js
  • index.json

@kdazhy kdazhy changed the title 新增 ChatGPT 长对话导航与预览脚本 新增 ChatGPT 长对话双侧导航与预览脚本 Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant