|
3 | 3 | // @name:zh-CN Github 增强 - 高速下载 |
4 | 4 | // @name:zh-TW Github 增強 - 高速下載 |
5 | 5 | // @name:ru Улучшение GitHub – быстрое скачивание |
6 | | -// @version 2.6.35 |
| 6 | +// @version 2.6.36 |
7 | 7 | // @author X.I.U |
8 | 8 | // @description High-speed download of Git Clone/SSH, Release, Raw, Code(ZIP) and other files (Based on public welfare), project list file quick download (☁) |
9 | 9 | // @description:zh-CN 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载 (☁) |
|
267 | 267 | addDownloadZIP(target); |
268 | 268 | addGitClone(target); |
269 | 269 | addGitCloneSSH(target); |
270 | | - } else if (target.tagName === 'DIV' && target.className.indexOf('Box-sc-') != -1) { |
| 270 | + } else if (target.tagName === 'DIV' && target.className.indexOf('LocalTab-module__') != -1) { |
271 | 271 | if (target.querySelector('input[value^="https:"]')) { |
272 | 272 | addGitCloneClear('.XIU2-GCS'); addGitClone(target); |
273 | 273 | } else if (target.querySelector('input[value^="git@"]')) { |
|
366 | 366 | html_parent = '<div style="margin-top: 4px;" class="XIU2-GC ' + html.parentElement.className + '">', |
367 | 367 | url = '', _html = '', _gitClone = ''; |
368 | 368 | if (html.nextElementSibling) html.nextElementSibling.hidden = true; // 隐藏右侧复制按钮(考虑到能直接点击复制,就不再重复实现复制按钮事件了) |
369 | | - if (html.parentElement.nextElementSibling.tagName === 'SPAN'){ |
370 | | - html.parentElement.nextElementSibling.textContent += ' (↑点击上面文字可复制)' |
| 369 | + if (html.parentElement.nextElementSibling.tagName === 'P'){ |
| 370 | + html.parentElement.nextElementSibling.textContent += ' (↑点击文字自动复制)' |
371 | 371 | } |
372 | 372 | if (GM_getValue('menu_gitClone')) {_gitClone='git clone '; html.value = _gitClone + html.value; html.setAttribute('value', html.value);} |
373 | 373 | // 克隆原 Git Clone 元素 |
|
397 | 397 | html_parent = '<div style="margin-top: 4px;" class="XIU2-GCS ' + html.parentElement.className + '">', |
398 | 398 | url = '', _html = '', _gitClone = ''; |
399 | 399 | html.nextElementSibling.hidden = true; // 隐藏右侧复制按钮(考虑到能直接点击复制,就不再重复实现复制按钮事件了) |
400 | | - if (html.parentElement.nextElementSibling.tagName === 'SPAN'){ |
401 | | - html.parentElement.nextElementSibling.textContent += ' (↑点击文字可复制)' |
| 400 | + if (html.parentElement.nextElementSibling.tagName === 'P'){ |
| 401 | + html.parentElement.nextElementSibling.textContent += ' (↑点击自动复制)' |
402 | 402 | } |
403 | 403 | if (GM_getValue('menu_gitClone')) {_gitClone='git clone '; html.value = _gitClone + html.value; html.setAttribute('value', html.value);} |
404 | 404 | // 克隆原 Git Clone SSH 元素 |
|
0 commit comments