Floating Table of Contents sidebar for ChatGPT conversations. Uses backend API for 100% accuracy (no lazy-loading gaps). Draggable toggle button, expandable message headers, click-to-navigate, persistent state.
See screenshots at the bottom
Adds a floating Table of Contents sidebar for navigating long ChatGPT conversations. Built on the backend API for 100% accuracy—no lazy-loading gaps.
Long ChatGPT conversations become difficult to navigate:
This script fetches the full conversation tree directly from ChatGPT's internal API, ensuring every message appears in the TOC.
backend-api instead of DOM scraping—no missing messages from virtualization.# H1, ## H2, etc.) or bold text (**Header**) show nested sub-navigation.| Action | Result |
|---|---|
| Left-click toggle button | Open/close the TOC sidebar |
| Right-drag toggle button | Move button anywhere (only when TOC is closed) |
| Click TOC entry | Scroll to that message |
| Click arrow on entry | Expand/collapse sub-headers |
| Click sub-header | Scroll directly to that heading within the message |
Unlike DOM-scraping approaches, this script:
/backend-api/conversation/{uuid}current_node back to rootThis bypasses ChatGPT's virtualization entirely—messages that aren't rendered in the DOM still appear in the TOC.
Works immediately. A toggle button (☰) appears in the top-right corner.