向Github Gist文件添加新按钮 | "URL" - 复制直接文件URL | "UserScript" - 复制格式化的URL(@downloadURL和@updateURL)以供您的UserScripts使用。
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.
The script adds two new buttons to the action bar of each file in a Gist:
URL Button:
raw) of the file.gist.githubusercontent.com domain. This ensures that the copied URL always points to the latest version of the file rather than a specific revision.https://gist.githubusercontent.com/USER/GIST_ID/raw/filename.jsUserScript Button:
// @downloadURL https://gist.githubusercontent.com/USER/GIST_ID/raw/filename.js
// @updateURL https://gist.githubusercontent.com/USER/GIST_ID/raw/filename.js
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.