ChatGPT | TOC

Backend navigation with dynamic resizing, distinct icons, and bold-header support.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

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

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
piknockyou
일일 설치 수
0
총 설치 수
12
평점
0 0 0
버전
2.6
생성일
2025-12-01
갱신일
2025-12-01
크기
16.7KB
라이선스
MIT
적용 사이트

ChatGPT Backend TOC

A lightweight Userscript that adds a collapsible Table of Contents sidebar to ChatGPT.

🚀 Why this script?

Most navigation extensions try to read the headers from the current webpage HTML. However, ChatGPT uses "lazy loading" (virtualization), meaning messages scroll off-screen are often removed from the code to save memory. This causes other extensions to "lose" parts of the conversation.

This script is different. It fetches the conversation data directly from ChatGPT's internal Backend API. This means:

  • It loads the entire conversation map instantly.
  • It never misses a header, even in extremely long chats.
  • It forces the browser to jump to the correct message ID, triggering the render on demand.

✨ Features

  • 100% Complete: Navigates the full history, not just what is currently visible.
  • Deep Navigation: Detects Markdown headers (#) and Bold Text as clickable sub-sections.
  • Smart Scrolling: Calculates the correct scroll position so text doesn't hide behind the top header bar.
  • Clean UI:
    • Resizable sidebar (drag the edge).
    • Distinct icons for User (Gray) vs. AI (Green).
    • Expand/Collapse arrows for nested content.
    • Long titles auto-expand when you widen the sidebar.

Credits

Heavily inspired by the Scroll Extension by Asker Kurtelli. This version was ported to a Userscript to utilize direct API fetching and reduce the need for a full browser extension.