Skip to content

Commit c6fc323

Browse files
committed
修复 因网页再次变动导致 [Download ZIP] 加速源按钮失效的问题
1 parent 3a25801 commit c6fc323

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

GithubEnhanced-High-Speed-Download.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @name:zh-CN Github 增强 - 高速下载
44
// @name:zh-TW Github 增強 - 高速下載
55
// @name:ru Улучшение GitHub – быстрое скачивание
6-
// @version 2.6.17
6+
// @version 2.6.18
77
// @author X.I.U
88
// @description High-speed download of Git Clone/SSH, Release, Raw, Code(ZIP) and other files (Based on public welfare), project list file quick download (☁)
99
// @description:zh-CN 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载 (☁)
@@ -249,7 +249,7 @@
249249

250250
// Download ZIP
251251
function addDownloadZIP(target) {
252-
let html = target.querySelector('ul[class^=List__ListBox-sc-]>li:last-child');if (!html) return
252+
let html = target.querySelector('ul[class^=prc-ActionList-ActionList-]>li:last-child');if (!html) return
253253
let href_script = document.querySelector('react-partial[partial-name=repos-overview]>script[data-target="react-partial.embeddedData"]'),
254254
href_slice = href_script.textContent.slice(href_script.textContent.indexOf('"zipballUrl":"')+14),
255255
href = href_slice.slice(0, href_slice.indexOf('"')),

0 commit comments

Comments
 (0)