Skip to content

eupthere/scroller-for-chatgpt

Repository files navigation

scroller-for-chatgpt-demo.mp4

Scroller for ChatGPT

A browser extension that adds a compact timeline navigator to chatgpt.com, making long conversations easier to scan and jump through.

Features

  • Adds a floating timeline of dots next to the ChatGPT thread.
  • Uses metaball shape distinguish turns:
    • Left circle: user message
    • Right circle: assistant message
    • Green dot: currently active message
  • Click any dot to jump directly to that turn.
  • Keyboard navigation:
    • j or ArrowDown: next turn
    • k or ArrowUp: previous turn
  • Automatically tracks new messages and layout changes.

Tech Stack

  • WXT for extension tooling
  • React + TypeScript for UI logic
  • Tailwind CSS for styling
  • Storybook for component previews

Project Structure

  • src/entrypoints/chatgpt.content/index.tsx: content script entrypoint for *://chatgpt.com/*
  • src/components/ScrollerApp.tsx: DOM observation, scroll sync, keyboard controls
  • src/components/Timeline.tsx: floating timeline container and positioning logic
  • src/components/TimelineDot.tsx: turn dot rendering and role styling
  • wxt.config.ts: extension and Vite/WXT configuration

Prerequisites

  • Node.js 18+
  • pnpm

Install

pnpm install

Development

Run the extension in development mode:

pnpm dev

Firefox development mode:

pnpm dev:firefox

WXT will build and watch changes while providing instructions to load the extension in your browser.

Build

Build production extension bundles:

pnpm build

Firefox build:

pnpm build:firefox

Create distributable zip packages:

pnpm zip
pnpm zip:firefox

Storybook

Start Storybook:

pnpm storybook

Build static Storybook:

pnpm build-storybook

Type Checking

pnpm compile

Notes

  • The extension currently targets chatgpt.com pages.
  • UI placement is dynamic and follows the conversation thread position.
  • Scroll behavior is designed for ChatGPT's nested scroll containers.

License

MIT

About

A browser extension that adds an easy scroll bar to the ChatGPT interface, allowing users to easily navigate through long conversations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors