|
|
@ -4,8 +4,8 @@
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @name Github 增强 - 高速下载(Github油猴脚本)
|
|
|
|
* @name Github 增强 - 高速下载(Github油猴脚本)
|
|
|
|
* @name:en Github Enhancement - High Speed Download(Github Greasemonkey Script)
|
|
|
|
* @name:en Github Enhancement - High Speed Download(Github Greasemonkey Script)
|
|
|
|
* @version 2.6.4_1
|
|
|
|
* @version 2.6.4_2
|
|
|
|
* @since 2024-09-14 23:44
|
|
|
|
* @since 2024-09-27 14:14
|
|
|
|
* @author X.I.U
|
|
|
|
* @author X.I.U
|
|
|
|
* @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载 (☁)、添加 git clone 命令
|
|
|
|
* @description 高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载 (☁)、添加 git clone 命令
|
|
|
|
* @description:en High-speed download of Git Clone/SSH, Release, Raw, Code(ZIP) and other files (Based on public welfare), project list file quick download (☁)
|
|
|
|
* @description:en High-speed download of Git Clone/SSH, Release, Raw, Code(ZIP) and other files (Based on public welfare), project list file quick download (☁)
|
|
|
@ -15,7 +15,7 @@
|
|
|
|
* @homepageURL https://github.com/XIU2/UserScript
|
|
|
|
* @homepageURL https://github.com/XIU2/UserScript
|
|
|
|
* @sourceURL https://github.com/XIU2/UserScript/blob/master/GithubEnhanced-High-Speed-Download.user.js
|
|
|
|
* @sourceURL https://github.com/XIU2/UserScript/blob/master/GithubEnhanced-High-Speed-Download.user.js
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
const ds_github_monkey_version = "2.6.4_1";
|
|
|
|
const ds_github_monkey_version = "2.6.4_2";
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
|
|
const DS_init = (window.__ds_global__ || {})['DS_init']
|
|
|
|
const DS_init = (window.__ds_global__ || {})['DS_init']
|
|
|
|
if (typeof DS_init === 'function') {
|
|
|
|
if (typeof DS_init === 'function') {
|
|
|
@ -154,6 +154,8 @@ document.addEventListener("DOMContentLoaded", () => {
|
|
|
|
if (GM_getValue('menu_rawDownLink')) menu_rawFast_ID = GM_registerMenuCommand(` ${['0️⃣','1️⃣','2️⃣','3️⃣','4️⃣','5️⃣','6️⃣','7️⃣','8️⃣','9️⃣','🔟'][menu_rawFast]} [ ${raw_url[menu_rawFast][1]} ] 加速源 (☁) - 点击切换`, menu_toggle_raw_fast, {title: "点击切换「项目列表单文件快捷下载 (☁)」功能的加速源"});
|
|
|
|
if (GM_getValue('menu_rawDownLink')) menu_rawFast_ID = GM_registerMenuCommand(` ${['0️⃣','1️⃣','2️⃣','3️⃣','4️⃣','5️⃣','6️⃣','7️⃣','8️⃣','9️⃣','🔟'][menu_rawFast]} [ ${raw_url[menu_rawFast][1]} ] 加速源 (☁) - 点击切换`, menu_toggle_raw_fast, {title: "点击切换「项目列表单文件快捷下载 (☁)」功能的加速源"});
|
|
|
|
menu_gitClone_ID = GM_registerMenuCommand(`${GM_getValue('menu_gitClone')?'✅':'❌'} 添加 git clone 命令`, function(){if (GM_getValue('menu_gitClone') == true) {GM_setValue('menu_gitClone', false); GM_notification({text: `已关闭「添加 git clone 命令」功能`, timeout: 3500});} else {GM_setValue('menu_gitClone', true); GM_notification({text: `已开启「添加 git clone 命令」功能`, timeout: 3500});}registerMenuCommand();}, {title: "点击开关「添加 git clone 命令」功能"});
|
|
|
|
menu_gitClone_ID = GM_registerMenuCommand(`${GM_getValue('menu_gitClone')?'✅':'❌'} 添加 git clone 命令`, function(){if (GM_getValue('menu_gitClone') == true) {GM_setValue('menu_gitClone', false); GM_notification({text: `已关闭「添加 git clone 命令」功能`, timeout: 3500});} else {GM_setValue('menu_gitClone', true); GM_notification({text: `已开启「添加 git clone 命令」功能`, timeout: 3500});}registerMenuCommand();}, {title: "点击开关「添加 git clone 命令」功能"});
|
|
|
|
menu_feedBack_ID = GM_registerMenuCommand('💬 反馈问题 & 功能建议', function () {GM_openInTab('https://github.com/XIU2/UserScript', {active: true,insert: true,setParent: true});GM_openInTab('https://greasyfork.org/zh-CN/scripts/412245/feedback', {active: true,insert: true,setParent: true});}, {title: "点击前往反馈问题或提出建议"});
|
|
|
|
menu_feedBack_ID = GM_registerMenuCommand('💬 反馈问题 & 功能建议', function () {GM_openInTab('https://github.com/XIU2/UserScript', {active: true,insert: true,setParent: true});GM_openInTab('https://greasyfork.org/zh-CN/scripts/412245/feedback', {active: true,insert: true,setParent: true});}, {title: "点击前往反馈问题或提出建议"});
|
|
|
|
|
|
|
|
menu_feedBack_ID = GM_registerMenuCommand('🛠️ 隐藏图标快捷键:Ctrl+Alt+H', function () {window.__ds_global__.hidePlugin()});
|
|
|
|
|
|
|
|
menu_feedBack_ID = GM_registerMenuCommand('🛠️ 显示图标快捷键:Ctrl+Alt+S');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 切换加速源
|
|
|
|
// 切换加速源
|
|
|
|