GitHub Useful Forks

Adds a button to GitHub repositories to see useful forks of the repo.

Author
bethro
Daily installs
0
Total installs
44
Ratings
1 0 0
Version
1.1
Created
2024-05-29
Updated
2024-05-29
Size
3.8 KB
License
MIT
Applies to

GitHub Useful Forks Button

Description: This user script adds a button to GitHub repository pages, allowing users to quickly check useful forks of the repository using the Useful Forks service. The button appears next to the forks counter on the repository page and opens a new tab with the Useful Forks website showing detailed information about the forks.

This is a fork of useful-forks chrome extension.

Features:

  • Adds a "Useful" button to GitHub repository pages.
  • The button uses the Useful Forks service to provide detailed information about forks.
  • Automatically adapts to GitHub's dynamic content loading (e.g., PJax) to ensure the button is always available.

Usage:

  1. Install a user script manager like Tampermonkey or Greasemonkey.
  2. Install this script from Greasy Fork.
  3. Navigate to any GitHub repository page.
  4. Click the "Useful" button next to the forks counter to see detailed information about useful forks.

extension_btn

Installation:

  1. Install Tampermonkey or Greasemonkey extension in your browser.
  2. Click the "Install" button on this page to add the script to your script manager.
  3. Navigate to any GitHub repository to see the new button in action.

Technical Details:

  • The script identifies the current repository's user and repo name from the URL.
  • It constructs a URL to the Useful Forks service and assigns it to the button.
  • Uses a MutationObserver to handle GitHub's dynamic content changes without requiring a full page reload.

example