优化github油猴脚本。

scripts
王良 2024-04-26 10:33:30 +08:00
parent e8613eaf45
commit d2c4599138
1 changed files with 1 additions and 1 deletions

View File

@ -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 = '<div style="margin-top: 4px;" class="XIU2-GC ' + html.parentElement.className + '">',
url = '', _html = '', _gitClone = '';
html.nextElementSibling.hidden = true; // 隐藏右侧复制按钮