Skip to content

Commit 5f33811

Browse files
committed
修复 部分情况下动态加载页面后没有正常添加高速下载按钮的问题。
1 parent a31d1c4 commit 5f33811

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

GithubEnhanced-High-Speed-Download.user.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// ==UserScript==
22
// @name Github 增强 - 高速下载
3-
// @version 1.1.3
3+
// @version 1.1.4
44
// @author X.I.U
5-
// @description 高速下载 Clone、Release、Raw、Code(ZIP)
5+
// @description 为 Github 的 Clone、Release、Raw、Code(ZIP) 添加高速下载
66
// @match https://github.com/*/*
77
// @match https://github.com/*/*/releases
88
// @match https://github.com/*/*/releases/*
@@ -54,6 +54,9 @@
5454
setTimeout(addDownLink, 2000); // 添加 Raw 下载链接(添加到项目页文件名称后面),延迟 2 秒执行,避免被 pjax 刷掉
5555

5656
$(document).on('pjax:success',function(evt){
57+
addRelease(); // Release 加速
58+
addDownloadZIP(); // Source Code 加速
59+
addGitClone(); // Download ZIP/Code(ZIP) 加速
5760
addRawFile(); // pjax 事件发生后,添加 Raw 加速按钮 及 Raw 下载链接
5861
setTimeout(addDownLink, 2000); // 延迟 2 秒执行,避免被 pjax 刷掉
5962
});

0 commit comments

Comments
 (0)