适配 Github 网页变动(修复 Code 下不显示加速源的问题)

This commit is contained in:
xiu2
2026-07-30 15:12:51 +08:00
parent 8fa9899f11
commit 04386b973a
+2 -2
View File
@@ -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