From 1647b3e5494589d96fc9eca8a6b352e45f636ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Fri, 27 Sep 2024 14:39:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GithubEnhanced-High-Speed-Download.user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index 54f577f..ff7c95d 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -42,6 +42,7 @@ document.addEventListener("DOMContentLoaded", () => { const GM_setValue = (window.__ds_global__ || {})['GM_setValue'] || (() => {}) const GM_notification = (window.__ds_global__ || {})['GM_notification'] || (() => {}); const GM_setClipboard = (window.__ds_global__ || {})['GM_setClipboard'] || (() => {}); + const DS_hidePlugin = (window.__ds_global__ || {})['hidePlugin'] || (() => {}); (function() { 'use strict'; @@ -154,7 +155,7 @@ 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: "点击切换「项目列表单文件快捷下载 (☁)」功能的加速源"}); 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('🐍 隐藏图标快捷键:Ctrl+Alt+H', function () {window.__ds_global__.hidePlugin()}); + menu_feedBack_ID = GM_registerMenuCommand('🐍 隐藏图标快捷键:Ctrl+Alt+H', function () {DS_hidePlugin()}); menu_feedBack_ID = GM_registerMenuCommand('🐢 显示图标快捷键:Ctrl+Alt+S'); }