GitHub Ingest Button

Add an "Ingest" button to GitHub repo pages with improved visual alignment.

当前为 2025-01-17 提交的版本,查看 最新版本

作者
Nighthawk42
评分
0 0 0
版本
1.3
创建于
2025-01-17
更新于
2025-01-17
大小
3.4 KB
许可证
MIT
适用于

**GitHub Ingest Button Userscript**

This userscript adds an **Ingest** button to GitHub repository pages. The button is styled to match GitHub's native action buttons (like Watch, Fork, and Star) and, when clicked, takes you to GitIngest—a tool that provides LLM-friendly prompts based on the current repository.

Key features include:
- **Dynamic UI Injection:** The button is inserted into the GitHub header actions area and re-inserted if GitHub's dynamic navigation (e.g., PJAX) replaces parts of the page.
- **SVG Icon:** A custom SVG icon is used for visual consistency.
- **URL Parsing:** The script extracts the repository information from the current URL to correctly construct the GitIngest URL.
- **Retry Mechanism:** If the GitHub header actions area is not immediately available, the script retries until it can insert the button.

Enjoy a seamless integration with GitHub and streamlined access to GitIngest!