From f34443acc441e10b20a6f1e9b7618ce9d3a700a4 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 11 Nov 2022 10:30:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Github=20Download=20Code(Z?= =?UTF-8?q?IP)=20=E6=94=B9=E7=89=88=E5=AF=BC=E8=87=B4=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=8A=A0=E9=80=9F=E9=80=89=E9=A1=B9=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GithubEnhanced-High-Speed-Download.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index 3247b2b..324e59d 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -3,7 +3,7 @@ // @name:zh-CN Github 增强 - 高速下载 // @name:zh-TW Github 增強 - 高速下載 // @name:en Github Enhancement - High Speed Download -// @version 2.1.11 +// @version 2.2.0 // @author X.I.U // @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁) // @description:zh-CN 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁) @@ -80,7 +80,7 @@ //['https://raw.cithub.icu', '美国', '[美国 洛杉矶] - 缓存:无(或时间很短)'], //['https://git.yumenaka.net/https://raw.githubusercontent.com', '美国', '[美国 圣何塞] - 缓存:无(或时间很短)'], ['https://gcore.jsdelivr.net/gh', '其他 1', '[移动走香港、电信走日本] - 该公益加速源由 [JSDelivr CDN] 提供 - 缓存:有 - 不支持大小超过 50 MB 的文件 - 不支持版本号格式的分支名(如 v1.2.3)'], - //['https://raw.githubusercontents.com', '其他 2', '[香港、新加坡、美国等](CDN 不固定) - 缓存:有 - 该加速源不支持大小超过 1 MB 的文件'], + ['https://raw.githubusercontents.com', '其他 2', '[香港、新加坡、美国等](CDN 不固定) - 缓存:有 - 该加速源不支持大小超过 1 MB 的文件'], ['https://github.moeyy.xyz/https://raw.githubusercontent.com', '其他 3', '[新加坡、香港、日本等](CDN 不固定) - 缓存:无(或时间很短)'] //['https://raw-gh.gcdn.mirr.one', '俄罗斯', '[俄罗斯 G-Core Labs CDN] - 缓存:有'] ], svg = [ @@ -199,7 +199,7 @@ // Download ZIP function addDownloadZIP() { if (document.querySelector('.XIU2-DZ')) return - let html = document.querySelector('.dropdown-menu.dropdown-menu-sw.p-0 ul li:last-child');if (!html) return + let html = document.querySelector('#local-panel ul li:last-child');if (!html) return let href = html.getElementsByTagName('a')[0].href, url = '', _html = '', new_download_url = get_New_download_url(); for (let i=0;i