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 για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
piknockyou
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
12
Βαθμολογίες
0 0 0
Έκδοση
2.6
Δημιουργήθηκε την
01/12/2025
Ενημερώθηκε την
01/12/2025
Μέγεθος
20 KB
Άδεια
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.