ScrollToPrompt README

项目的 README,来自 github.com/AhmadHassan-BTed/ScrollToPrompt。合并为一个 markdown 文件:README.md。

ScrollToPrompt

CI License: MIT TypeScript Vite

ScrollToPrompt is a production-grade browser extension designed to enhance the navigation experience in modern AI chat interfaces. By injecting high-performance, visual markers into the scrollbar area, it allows users to instantly locate and jump back to their previous prompts.


Vision & Purpose

In the era of long-form AI interactions, navigating through hundreds of messages can be cumbersome. ScrollToPrompt aims to provide a "Minimap-like" experience for chat history, ensuring that your context is always just one click away.

Features


Architecture & System Design

The project follows a Modular Adapter Pattern, ensuring high cohesion and zero coupling between platform-specific logic and the core engine.

Core Modules:

Folder Structure:

src/
├── adapters/          # Site-specific logic (Adapter Pattern)
├── assets/            # Static assets & icons
├── components/        # Isolated UI components (Shadow DOM)
├── core/              # Business logic & Engine
├── background/        # Service worker logic
├── content/           # Content script entry points
├── types/             # Global TypeScript definitions
└── utils/             # Shared utility functions

Tech Stack


Getting Started

Prerequisites

Installation

  1. Clone the repository:
    git clone https://github.com/AhmadHassan-BTed/ScrollToPrompt.git
    
  2. Install dependencies:
    npm install
    
  3. Start the development server:
    npm run dev
    

Loading into Browser

  1. Open Chrome/Brave/Edge and navigate to chrome://extensions.
  2. Enable Developer Mode.
  3. Click Load Unpacked.
  4. Select the dist folder generated by the build.

Development Workflow


Contributing

We welcome contributions! Please see CONTRIBUTING.md for our contribution guidelines and CODE_OF_CONDUCT.md for our community standards.

Security

Security is a top priority. Please refer to our SECURITY.md for reporting vulnerabilities.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Roadmap

Maintainers

ScrollToPrompt (AhmadHassan-BTed/ScrollToPrompt)

正在搜索数据库…

这是什么?ScrollToPrompt 是一款浏览器扩展,它会在 AI 聊天界面(ChatGPT、Claude、Gemini)的滚动条上添加类似小地图的标记系统,让你在长对话中即时跳回之前的提问。
如何安装并加载到浏览器中?克隆仓库,安装依赖,构建项目,然后在 chrome://extensions 中开启“开发者模式”,点击“加载已解压的扩展程序”,并选择生成的 dist 文件夹。
构建它需要安装什么?Node.js v18 或更高版本,以及一个包管理器(npm、pnpm 或 yarn)。
目前它实际支持哪些 AI 聊天网站?目前只有 ChatGPT、Claude 和 Gemini 有专用适配器;Perplexity 和 Poe 的支持、可自定义的标记颜色以及搜索提示词功能仍在路线图中。
它会把我的聊天数据发送到别处吗?不会——项目声明不收集任何数据,所有逻辑都在你的浏览器本地运行。
它如何知道我之前的提问在页面中的位置?每个网站适配器都使用经过优化的 MutationObserver,并配合防抖渲染,在聊天 DOM 中检测提问并将其绘制为标记。
为什么它的界面要使用 Shadow DOM?标记界面通过 Shadow DOM 组件系统渲染,因此其样式完全隔离,绝不会与宿主聊天网站的 CSS 冲突。
项目接下来有什么计划?路线图包括支持 Perplexity 和 Poe、可自定义的标记颜色、搜索提示词功能,以及本地化的提示词检测。
大小
0.1 MB
星标
2.8K
更新
提交Nov 09
时长
6个月
提交 · 90 天