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.43 KB
License
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!