Skip to content

Commit 3e2bb3c

Browse files
committed
优化 代码
1 parent f19ad0a commit 3e2bb3c

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
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Github 增强 - 高速下载
3-
// @version 1.6.1
3+
// @version 1.6.2
44
// @author X.I.U
55
// @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁)
66
// @match *://github.com/*
@@ -284,7 +284,7 @@
284284
// 添加 Raw 下载链接(☁)
285285
function addRawDownLink() {
286286
// 如果不是项目文件页面,就返回,如果网页有 Raw 下载链接(☁)就返回
287-
let files = document.querySelectorAll('div.Box-row svg.octicon.octicon-file');if(files.length === 0) return;
287+
let files = document.querySelectorAll('div.Box-row svg.octicon.octicon-file');if(files.length === 0) return;if (location.pathname.indexOf('/tags') > -1) return
288288
let files1 = document.querySelectorAll('a.fileDownLink');if(files1.length > 0) return;
289289

290290
// 鼠标指向则显示

0 commit comments

Comments
 (0)