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.

目前為 2025-09-19 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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.