diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index da74c2a..7a32672 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -1,8 +1,8 @@ // ==UserScript== // @name Github 增强 - 高速下载 -// @version 1.2.7 +// @version 1.2.8 // @author X.I.U -// @description 高速下载 Clone、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁) +// @description 高速下载 Clone、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁) // @match *://github.com/* // @icon https://github.githubassets.com/favicon.ico // @require https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js @@ -18,11 +18,11 @@ // ==/UserScript== (function() { - var backColor='#ffffff'; - var fontColor='#888888'; - if('dark'==$('html').attr('data-color-mode')){ - backColor='#0D1117'; - fontColor='#58A6FF'; + var backColor = '#ffffff'; + var fontColor = '#888888'; + if('dark' == $('html').attr('data-color-mode')){ // 黑暗模式判断 + backColor = '#0D1117'; + fontColor = '#58A6FF'; } var download_url = [ ['https://gh.con.sh','美国'], @@ -30,7 +30,7 @@ ['https://download.fastgit.org','日本东京'], ['https://pd.zwc365.com/seturl','中国香港'], ['https://g.ioiox.com','中国香港'], - ['https://git.yumenaka.net','美国洛杉矶'] + ['https://git.yumenaka1.net','美国洛杉矶[x]'] ], clone_url = [ 'https://hub.fastgit.org', @@ -41,7 +41,7 @@ ['https://raw.githubusercontent.com','Github 原生',''], ['https://cdn.jsdelivr.net','中国国内','注意:该加速源存在缓存机制(24小时),所以文件可能不是最新。 注意:当前分支所有文件总文件大小超过 50MB 时,该加速源不可用。 注意:当前分支名为版本号格式时(如 v1.2.3),该高速下载链接因格式限制不可用。 '], ['https://raw.fastgit.org','中国香港','注意:单个文件太大时可能会提示超时(实时获取中),请重试。 '], - ['https://git.yumenaka.net','美国洛杉矶','注意:经过测试,该加速源存在文件格式限制,如果无法下载说明不支持该文件格式。 '] + ['https://git.yumenaka1.net','美国洛杉矶[x]','注意:经过测试,该加速源存在文件格式限制,如果无法下载说明不支持该文件格式。 '] ], svg = [ '', @@ -201,7 +201,7 @@ url = [ raw_url[1][0] + "/gh" + href.replace('/blob/','@'), raw_url[2][0] + href2, - download_url[5] + "/" + raw_url[0][0] + href2 + raw_url[3][0] + "/" + raw_url[0][0] + href2 ], html = ` ${raw_url[1][1]}