Gist URL Copier

向Github Gist文件添加新按钮 | "URL" - 复制直接文件URL | "UserScript" - 复制格式化的URL(@downloadURL和@updateURL)以供您的UserScripts使用。

当前为 2025-09-19 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
OHAS
评分
0 0 0
版本
1.0
创建于
2025-09-19
更新于
2025-09-19
大小
7.6 KB
许可证
MIT
适用于

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.