GitHub Ingest Button

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

作者
Nighthawk42
日安装量
0
总安装量
3
评分
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!

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址