您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
通过代理为 GitHub Gist 的 Raw Assets 提供加速
当前为
- // ==UserScript==
- // @name GitHub 加速 (Gist)
- // @description 通过代理为 GitHub Gist 的 Raw Assets 提供加速
- // @namespace https://mogeko.me
- // @supportURL https://github.com/mogeko/userscripts/issues
- // @match https://gist.github.com/**
- // @icon https://besticon.herokuapp.com/icon?size=80..120..200&url=github.com
- // @run-at document-end
- // @author Mogeko
- // @license MIT
- // @version 0.1.2
- // @grant none
- // ==/UserScript==
- (function () {
- 'use strict';
- var PROXY_URL = "https://ghproxy.com/";
- function agentGistRaw(proxy) {
- var links = document.querySelectorAll(".file-actions a, .ml-2:nth-last-child(1) a");
- links.forEach(function(link) {
- link.href = proxy + link.href;
- });
- }
- agentGistRaw(PROXY_URL);
- document.addEventListener("pjax:success", function() {
- agentGistRaw(PROXY_URL);
- });
- })();