Skip to content
Projects

houyanchao/chatgpt-gemini-timeline

View on GitHub

About

Add folders, a prompt library, and a timeline to ChatGPT and Gemini.

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+3
in 15 days
+6
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original
Timeline Logo

Timeline

A super productivity extension built for ChatGPT, Gemini, DeepSeek, and other AI platforms

Timeline navigation · Starred folders · Prompt library · Conversation export · Formula copy · Pet animation · Data backup

Chrome Web Store Microsoft Edge Add-ons Firefox Add-ons

Manifest V3 GPL-3.0 License GitHub

简体中文 | English

Install Now

Chrome Web Store  |  Microsoft Edge Add-ons  |  Firefox Add-ons

Timeline preview

DeepSeek Harness

Timeline now supports DeepSeek Harness. If you use DeepSeek Harness, install the native dsh-timeline plugin — timeline, starred folders, prompt library, conversation export, and formula copy are all there, with theme syncing and zero setup.

Repository: https://github.com/houyanchao/dsh-timeline

What is Timeline?

Timeline is a productivity extension for ChatGPT, Gemini, DeepSeek, and other AI chat pages. It leaves each platform's native UI intact and adds what long conversations actually need: timeline navigation, starred folders, a prompt library, conversation export, formula copy, and data backup.

The longer a chat gets, the harder it is to work with:

  • Jumping back to an earlier question means endless scrolling.
  • Valuable answers are scattered across sessions and hard to find later.
  • Formulas, code, and diagrams are awkward to copy and take away.
  • Input habits differ by platform, so prompts and follow-ups get repeated.
  • Extension data is stuck in one browser, making it hard to switch devices.

Installation

Install from the official browser extension stores:

Browser Install
Chrome Install for Chrome
Microsoft Edge Install for Edge
Firefox Install for Firefox
DeepSeek Harness Install dsh-timeline on GitHub

After installation, open a supported AI chat page. Most features are enabled by default and can be adjusted per platform or per feature in the settings panel.

Features

Category Description
Conversation navigation Adds a timeline on the right side of the page. Each node maps to a user question and supports click-to-jump, keyboard navigation, scroll-to-bottom, and question time labels.
Question list Displays all questions in the current conversation with jump, bookmark, and pin support.
Bookmarks and archives Saves individual Q&A entries or entire conversations, with folders, notes, search, and optional native-sidebar access on supported platforms.
Input enhancements Provides a prompt library, quick follow-up actions, Smart Enter behavior, input animations, and common settings.
Message screenshots Reply export and screenshot entries share individual-message selection and a bottom action bar on ChatGPT, Gemini, Claude, DeepSeek, Kimi and Doubao. Screenshots support 1×–4× resolution and output one PNG, scaling long content down when it exceeds the size limit.
Reading and copying Supports text highlighting, LaTeX / MathML formula copy, Mermaid diagram preview, and code block helpers.
Code running Runs or previews common code blocks including JavaScript, TypeScript, SQL, HTML, JSON, and Markdown.
Data management Supports JSON import/export and Google Drive backup/restore for migration and multi-device use.
Personalization Supports timeline theme colors, chat width adjustment, multi-language UI, and fine-grained feature switches.

Supported Platforms

Platform Timeline Highlight Smart Input Animations Quick Quote Question Time Sidebar Bookmarks Scroll to Bottom
ChatGPT ✅ ✅ ✅ ✅ ✅ ✅ ✅ -
Gemini ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
DeepSeek ✅ ✅ ✅ ✅ ✅ ✅ ✅ -
Claude ✅ ✅ ✅ - ✅ - ✅ -
Kimi ✅ ✅ ✅ ✅ ✅ ✅ ✅ -
Doubao ✅ ✅ ✅ ✅ ✅ ✅ ✅ -
Tongyi Qianwen ✅ ✅ ✅ ✅ ✅ ✅ ✅ -
Qwen International ✅ ✅ ✅ ✅ ✅ ✅ ✅ -
Grok ✅ ✅ ✅ ✅ ✅ - - -
Perplexity ✅ ✅ ✅ - ✅ - - -
Tencent Yuanbao ✅ ✅ ✅ ✅ ✅ - - -
Wenxin Yiyan ✅ ✅ - - ✅ - - -
NotebookLM - ✅ ✅ - ✅ - - -

Formula copy, code running, and Mermaid diagram features are not tied to a specific AI platform. When matching content is detected on a page, Timeline attempts to provide the corresponding action.

Data and Privacy

Timeline stores core data locally in the browser by default, including bookmarks, folders, prompts, settings, time labels, and notes.

Optional Google Drive sync is used only after the user grants authorization, and only for backing up and restoring extension data. The extension does not collect, upload, or share conversation content or personal information.

This project is open source, and the data handling logic can be reviewed in the repository.

Permissions

Permission Purpose
storage Stores bookmarks, folders, prompts, feature settings, and local data.
unlimitedStorage Prevents long conversations, notes, and backup data from hitting default browser storage limits.
identity Enables Google Drive authorization for backup and restore.
activeTab Enables extension functionality on the user's active AI chat page.

Languages

Timeline currently includes 19 language packs:

Language Code
English en
English (US) en_US
English (GB) en_GB
Simplified Chinese zh_CN
Traditional Chinese zh_TW
Traditional Chinese (Hong Kong) zh_HK
Japanese ja
Korean ko
German de
French fr
Spanish es
Italian it
Portuguese pt_PT
Russian ru
Polish pl
Hindi hi
Thai th
Vietnamese vi
Bahasa Indonesia id

Local Development

This browser extension uses a dependency-free build script. Start watch mode from the project root when developing:

node scripts/build-content.js --watch

It builds once on startup, then regenerates deferred content resources when JavaScript sources listed in the config or the config itself change. Keep the terminal running and press Ctrl+C to stop. Build errors are reported without stopping the watcher; save your fixes to retry.

The resource list lives in scripts/content-bundles.config.json. Edit the original sources rather than the generated js/content/bundles/ or js/content/config.js files. For a single build, run node scripts/build-content.js. Both Chrome and Firefox packaging commands also generate these resources automatically.

Then load the source directory:

  1. Open the Chrome or Edge extensions page.
  2. Enable Developer Mode.
  3. Choose "Load unpacked".
  4. Select the repository root directory.
  5. Save your changes, wait for the successful build message, reload the extension, and refresh the target AI platform page. Watch mode does not reload the extension or refresh pages automatically. CSS is loaded directly from the sources and needs no regeneration.

For Firefox, use about:debugging to temporarily load the extension.

Deferred loading and adding modules

manifest.json retains GPT and Claude's early MAIN-world, document_start scripts for API capture and scroll protection. Every page starts with the lightweight entry. Built-in platforms, saved mirrors, and enabled custom sites then load core. Explicit requests to open settings or configure a site also load the required features.

Ordinary pages keep lightweight formula discovery and text-selection entry points. A formula, a text selection, or existing annotations on the same origin can load common independently to provide formula copying, highlighting, and annotation restoration without initializing AI platform features. Checking the annotated origin also covers later SPA navigation. Formula discovery queries only added subtrees and relevant attribute changes. These lightweight entry points are removed after the shared bundle loads successfully.

Code loading and platform activation have separate lifecycles. AITContentLoader.load() loads only code and styles; activate() verifies that the current site is supported, loads core, and starts its platform features. Register each platform entry with AITPlatformFeatures.register('feature-name', initialize, { delay: 500 }); the delay is optional. Repeated or concurrent activation shares each feature's task, and failed entries can retry later. Opening generic settings before a page is identified as a mirror therefore does not prevent its timeline or prompt tools from starting afterward.

Unknown domains are checked against built-in platforms' user-message DOM selectors. A unique platform match saves the domain mapping and triggers core loading on the current page. The initial observation lasts 30 seconds, checks changed DOM at most once per second, and performs a final check before disconnecting. Returning to the page or interacting with an editor can start another 10-second observation. Detection pauses in background tabs and removes its listeners after a match. Selectors are generated from platform adapters; observation scheduling lives in js/mirrorSiteDetector/mirror-site-detector.js.

Bundle Loading trigger and responsibility
common Shared dependency of AI features; also loads independently when an ordinary page needs formula or highlight tools
core Loads on supported sites; provides automatic features such as the timeline, prompt button, and shared components
panel Loads when settings or a related settings dialog first opens
runner-ui Loads on the first code-run action
message-actions-ui Loads on first use of message selection for export or screenshots, providing shared selection and action-specific controls
export-ui Loads on confirmed ChatGPT export; on other platforms, when the existing export dialog first opens
message-screenshot-renderer Loads when a message screenshot is requested

With constructed stylesheets, each bundle reads its CSS concurrently, applies it in the order listed in styles, then executes its JavaScript after all styles are ready. If the API exists but accessing or applying sheets fails, loading switches to the sequential <link> fallback. Concurrent requests share a loading task, and subsequent calls reuse the successful result within the same page. Shared UI styles must load with their consumers. For example, the input's prompt menu works before settings opens, so its stylesheet belongs in core, not only in panel. Generated configuration and custom-site configuration are read consistently from globalThis, supporting Firefox content scripts where window and globalThis differ.

When adding modules, update scripts/content-bundles.config.json:

  1. Add supporting files to the relevant bundle's scripts. Array order is execution order; place base classes and dependencies before their consumers. New files are not included automatically.
  2. Put automatic AI-page features in core, registering their startup functions with AITPlatformFeatures.register() instead of starting them during code loading. Put cross-site shared tools in common. For an independent feature used on demand, add a bundle and await window.AITContentLoader.load('bundle-name') in its entry point before opening its UI. core depends on common; other bundles default to depending on core. An explicit dependencies array overrides that default; common uses an empty array so it can load independently.
  3. Bundles have separate scopes. Add top-level classes, constants, or functions needed by other bundles to their owner's exports; the build exposes these in the extension's isolated environment.
  4. Add CSS to the owner's styles, and check that manifest.json's web_accessible_resources covers new CSS, images, and other resources. Bundle JavaScript is already covered by js/content/bundles/*.js.
  5. Saving the config refreshes the watched source list and rebuilds the resources. Verify first-use behavior after a page refresh, especially that shared buttons and dialogs have their styles before settings has opened.

Ordinary features belong in bundles; fixed entry scripts and early hooks remain in manifest.json. Run node scripts/build-content.js --check to verify that generated resources match the sources and config.

Feedback

Feedback and feature requests are welcome:

When reporting an issue, include the browser version, extension version, target AI platform, reproduction steps, expected behavior, actual behavior, and screenshots if possible.

Credits

This project builds on chatgpt-conversation-timeline. Thanks to the original author for the open source contribution.

The Gemini image watermark removal engine (js/watermark/engine/) is ported from GargantuaX/gemini-watermark-remover (MIT), whose reverse alpha blending algorithm and calibrated masks originate from allenk/GeminiWatermarkTool (MIT, © 2024 AllenK / Kwyshell). See js/watermark/engine/LICENSE for the full license text.

License

This project is open source under the GPL-3.0 license.


If Timeline is useful to you, please consider giving it a Star.

Explore related projects

Loading…