Greasy Fork

来自缓存

Greasy Fork is available in English.

GitHub 镜像加速下载-码酷博客

加速GitHub克隆和下载

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @icon            https://github.githubassets.com/favicon.ico
// @name            GitHub 镜像加速下载-码酷博客
// @namespace       [url=mailto:[email protected]][email protected][/url]
// @author          码酷博客
// @description     加速GitHub克隆和下载
// @match           *://github.com/*
// @require         http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js
// @version         1.0.0
// @grant           GM_addStyle
// ==/UserScript==

(function () {
 'use strict';
 var yuan =  window.location.href+'.git';
 var a = yuan.split("/");
 var str1 = 'https://'+'i.codeku.me/'+a[3]+'/'+a[4]; 
 var str3 = 'https://'+'v2.github.codeku.me/'+a[3]+'/'+a[4]; 
 var qc = a[4].split(".")
 var str2 = 'https://'+'ws.codeku.me/'+a[3]+'/'+qc[0]+'/zip/master'; 
  //$('.mt-2').append('快速克隆通道:<input value="'+str1+'">')
 
  var info = `
<div style="height:200px;border:2px dashed ;">
            <center><h3>这是一条国内快速通道</h3></center>
            <center>  
             <ul style="left:150px">
                    <li>博客:www.codeku.me <a href="https://www.codeku.me">点我进入作者博客</a></li>          
            </ul>
        </center>
        <br>
       <center><div>快速克隆通道A1:<input style="width:300px;height:30px" value="${str1}"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;快速下载通道:<a href="${str2}" id="down">点我下载</div></a>
      快速克隆通道A2:<input style="width:300px;height:30px" value="${str3}"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;快速下载通道:<a href="${str2}" id="down">点我下载</div></a></div>
</div>
      </center>
    </div>
 `;
  
  $('.repository-content').prepend(info);
})();