GitHub 加速 (Raw)

通过代理为 GitHub Raw Assets 提供加速

À partir de 2021-05-31. Voir la dernière version.

Auteur
Mogeko
Évaluations
0 0 0
Version
0.1
Créer
2021-05-31
Mis à jour
2021-05-31
Taille
943 octets
Licence
MIT
S'applique à

// ==UserScript== // @name GitHub 加速 (Raw) // @namespace https://mogeko.me // @version 0.1 // @description 通过代理为 GitHub Raw Assets 提供加速 // @author Mogeko // @supportURL https://github.com/Mogeko/user-script-ghproxy/issues // @match https://github.com// // @icon https://github.githubassets.com/pinned-octocat.svg // @updataURL https://cdn.jsdelivr.net/gh/Mogeko/user-script-ghproxy@master/agentRaw/agentRaw.user.js // @run-at document-end // @grant none // @license MIT // ==/UserScript==

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

const agentRaw = proxy => { const rawButton = document.querySelector("#raw-url"); if (rawButton) { rawButton.href = proxy + window.location.href; } }

(function() { 'use strict'; agentRaw(PROXY_URL); document.addEventListener('pjax:success', () => { agentRaw(PROXY_URL); }); })();

长期地址
遇到问题?请前往 GitHub 提 Issues。