mirror of
https://github.com/XIU2/UserScript.git
synced 2026-09-22 15:06:57 +00:00
修复 Github Download Code(ZIP) 改版导致不显示加速选项的问题
This commit is contained in:
@@ -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<new_download_url.length;i++) {
|
||||
|
||||
Reference in New Issue
Block a user