优化github油猴脚本。

scripts
王良 7 months ago
parent e8613eaf45
commit d2c4599138

@ -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; // 隐藏右侧复制按钮

Loading…
Cancel
Save