From d2c45991386de2fb96d2ae0e777da2d8b84cc1e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Fri, 26 Apr 2024 10:33:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96github=E6=B2=B9=E7=8C=B4?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GithubEnhanced-High-Speed-Download.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index da4ae9c..4338782 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -295,7 +295,7 @@ document.addEventListener("DOMContentLoaded", () => { let html = target.querySelector('input[value^="https:"]'); if (!html) return; if (!html.nextElementSibling) return false; - let href_split = html.value.replace(/https:\/\/\w+.\w+/g, ''), + let href_split = html.value.replace(/https:\/\/[^/]+/, ''), html_parent = '