From 16b0b5ca40e3e35acd6b352ef456213a7a89f12e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Wed, 24 Apr 2024 15:06:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GithubEnhanced-High-Speed-Download.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index fe7a75e..8a76009 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -5,7 +5,7 @@ * @name Github 增强 - 高速下载(Github油猴脚本) * @name:en Github Enhancement - High Speed Download(Github Greasemonkey Script) * @version 2.5.20 - * @since 2024-04-24 14:49 + * @since 2024-04-24 15:06 * @author X.I.U * @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载 (☁)、添加 git clone 命令 * @description:en High-speed download of Git Clone/SSH, Release, Raw, Code(ZIP) and other files (Based on public welfare), project list file quick download (☁) @@ -293,7 +293,7 @@ document.addEventListener("DOMContentLoaded", () => { let html = target.querySelector('input[value^="https:"]'); if (!html) return; if (!html.nextElementSibling) return false; - let href_split = html.value.split(location.host)[1], + let href_split = html.value.replace(/https:\/\/\w+.\w+\//g, ''), html_parent = '