Gist URL Copier

Adds new buttons to Github Gist files | "URL" - Copies the direct file URL | "UserScript" - Copies the formatted URL (@downloadURL and @updateURL) for use in your UserScripts.

Från och med 2025-09-19. Se den senaste versionen.

Upphovsman
OHAS
Betyg
0 0 0
Version
1.0
Skapad
2025-09-19
Uppdaterad
2025-09-19
Size
7,63 KB
Licens
MIT
Gäller för

Gist URL Copier enhances the GitHub Gist interface by adding two utility buttons to each file, making it easier for developers and users to copy important URLs.

Main Features

The script adds two new buttons to the action bar of each file in a Gist:

  1. URL Button:

    • Action: Copies the direct and permanent URL to the raw content (raw) of the file.
    • Technical Detail: The script intelligently grabs the "Raw" link of the Gist, removes the specific commit hash from the URL, and replaces it with the gist.githubusercontent.com domain. This ensures that the copied URL always points to the latest version of the file rather than a specific revision.
    • Example of copied URL: https://gist.githubusercontent.com/USER/GIST_ID/raw/filename.js
  2. UserScript Button:


In short, this script is a productivity tool that saves time and simplifies workflow for anyone using GitHub Gists, especially for coding and sharing UserScripts.

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