Gist URL Copier

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

作者
OHAS
日安装量
0
总安装量
0
评分
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.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址