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 = '
', url = '', _html = '', _gitClone = ''; html.nextElementSibling.hidden = true; // 隐藏右侧复制按钮