GitHub Ingest Button

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

Maker
Nighthawk42
Dagelijks aantal installaties
0
Totaal aantal installaties
3
Beoordelingen
0 0 0
Versie
1.3
Gemaakt op
17-01-2025
Bijgewerkt op
17-01-2025
Grootte
3,43 KB
Licentie
MIT
Wordt toegepast op

**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!

长期地址
遇到问题?请前往 GitHub 提 Issues。