修复 未登录情况下会把 Git Clone SSH 加速源添加到 GitHub CLI 列表中的问题

This commit is contained in:
xiu2
2021-05-19 20:26:04 +08:00
parent d9a9548a24
commit e6d20a5bce
+3 -1
View File
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Github 增强 - 高速下载
// @version 1.4.9
// @version 1.5.0
// @author X.I.U
// @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁)
// @match *://github.com/*
@@ -223,6 +223,8 @@
url = [],
_html = ``;
if (href_split[0] != 'git@github.com') return
for (let i=0;i<clone_ssh_url.length;i++){
url[i] = clone_ssh_url[i][0] + ':' + href_split[1]
}