mirror of
https://github.com/XIU2/UserScript.git
synced 2026-09-07 11:27:41 +00:00
适配 Github 网页变动(修复 Code 下不显示加速源的问题)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
// @name:zh-CN Github 增强 - 高速下载
|
||||
// @name:zh-TW Github 增強 - 高速下載
|
||||
// @name:ru Улучшение GitHub – быстрое скачивание
|
||||
// @version 2.6.38
|
||||
// @version 2.6.39
|
||||
// @author X.I.U
|
||||
// @description High-speed download of Git Clone/SSH, Release, Raw, Code(ZIP) and other files (Based on public welfare), project list file quick download (☁)
|
||||
// @description:zh-CN 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载 (☁)
|
||||
@@ -189,7 +189,7 @@
|
||||
if (target.tagName === 'DIV' && target.dataset.viewComponent === 'true' && target.classList[0] === 'Box') addRelease();
|
||||
}
|
||||
}
|
||||
} else if (document.querySelector('#repository-container-header:not([hidden])')) { // 项目首页
|
||||
} else if (document.querySelector('#repo-title-component')) { // 项目首页
|
||||
for (const mutation of mutationsList) {
|
||||
for (const target of mutation.addedNodes) {
|
||||
if (target.nodeType !== 1) return
|
||||
|
||||
Reference in New Issue
Block a user