GitHub 加速 (Releases)

通过代理为 GitHub Releases 提供加速

目前為 2021-05-30 提交的版本,檢視 最新版本

// ==UserScript==
// @name         GitHub 加速 (Releases)
// @namespace    https://mogeko.me
// @version      0.2
// @description  通过代理为 GitHub Releases 提供加速
// @author       Mogeko
// @match        https://github.com/*/*
// @icon         https://github.githubassets.com/pinned-octocat.svg
// @updataURL    https://github.com/Mogeko/user-script-ghproxy/raw/master/proxy.releases.user.js
// @grant        none
// @license      MIT
// ==/UserScript==

const PROXY_URL = "https://ghproxy.com/";

const agentReleases = proxy =>
    document.querySelectorAll(".octicon-package, .octicon-file-zip")
        .forEach(svg => {
            const link = svg.parentNode;
            link.href = proxy + link.href;
        });

(function() {
    'use strict';
    agentReleases(PROXY_URL);
})();

QingJ © 2025

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