From a5dc7723f4c427213e9b6e9158b0aba7ea9551dd Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 6 Oct 2020 14:00:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20Raw=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=8A=A0=E9=80=9F=EF=BC=8C=E6=96=B0=E5=A2=9E=20Git=20Clone=20?= =?UTF-8?q?=E5=9B=BD=E5=86=85=E5=8A=A0=E9=80=9F=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GithubEnhanced-High-Speed-Download.user.js | 31 +++++++++++++++++----- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index eccfecd..bb18b78 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -1,8 +1,8 @@ // ==UserScript== // @name Github 增强 - 高速下载 -// @version 1.0.7 +// @version 1.0.8 // @author X.I.U -// @description 为 Github 的 Clone、Release、Code(ZIP) 添加高速下载 +// @description 为 Github 的 Clone、Release、Raw、Code(ZIP) 添加高速下载 // @match https://github.com/*/* // @match https://github.com/*/*/releases // @match https://github.com/*/*/releases/* @@ -16,6 +16,7 @@ (function() { var source_code = true; // Source code 加速,false=关闭,true=开启 var git_clone = true; // Git Clone 加速,false=关闭,true=开启 + var raw_file = true; // Raw 加速,false=关闭,true=开启 var download_url1 = "https://download.fastgit.org"; var download_url1_name = "日本东京"; var download_url2 = "https://gh.con.sh"; @@ -27,7 +28,9 @@ var download_url5 = "https://git.yumenaka.net"; var download_url5_name = "美国洛杉矶"; var clone_url1 = "https://hub.fastgit.org"; // 中国香港 - var clone_url2 = "https://github.com.cnpmjs.org"; // 新加坡 + var clone_url2 = "https://gitclone.com"; // 中国浙江杭州 + var clone_url3 = "https://github.com.cnpmjs.org"; // 新加坡 + var raw_url1 = "https://cdn.jsdelivr.net"; // 中国国内CDN var download_zip_svg = ``; var download_clone_svg = `` var download_release_style = `padding:0 4px;margin-right: -1px;border-radius: 2px;background-color: #ffffff;border-color: rgba(27, 31, 35, 0.1);font-size: 12px;` @@ -82,7 +85,8 @@ var url3 = download_url3 + "/github.com" + href; var url4 = download_url4 + "/github.com" + href; var url5 = download_url5 + "/github.com" + href; - var html1 = `