Github油猴脚本升级:添加快捷键提示

scripts
王良 2 months ago
parent 6067b5014b
commit 5c5d88333a

@ -4,8 +4,8 @@
* *
* @name Github 增强 - 高速下载Github油猴脚本 * @name Github 增强 - 高速下载Github油猴脚本
* @name:en Github Enhancement - High Speed DownloadGithub Greasemonkey Script * @name:en Github Enhancement - High Speed DownloadGithub 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/SSHReleaseRawCode(ZIP) 等文件 (公益加速)项目列表单文件快捷下载 ()添加 git clone 命令 * @description 高速下载 Git Clone/SSHReleaseRawCode(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');
} }
// 切换加速源 // 切换加速源

@ -1,8 +1,8 @@
/** /**
* 篡改猴Tampermonkey| 油猴Greasemonkey浏览器脚本扩展 * 篡改猴Tampermonkey| 油猴Greasemonkey浏览器脚本扩展
* *
* @version 0.1.7 * @version 0.1.8
* @since 2024-09-05 15:27 * @since 2024-09-27 14:24
* @author 王良 * @author 王良
* @authorHomePage https://wangliang1024.cn * @authorHomePage https://wangliang1024.cn
* @remark 当前脚本为仿照的版本并非篡改猴插件的源码仅供学习参考 * @remark 当前脚本为仿照的版本并非篡改猴插件的源码仅供学习参考
@ -16,7 +16,7 @@
*/ */
'use strict'; 'use strict';
(function () { (function () {
const version = "0.1.7"; const version = "0.1.8";
const PRE = "DS-Tampermonkey:"; // 前缀 const PRE = "DS-Tampermonkey:"; // 前缀
const MENU_ID_PRE = PRE + "menu-"; const MENU_ID_PRE = PRE + "menu-";
const icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwEAQAAACtm+1PAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAACqjSMyAAAACXBIWXMAAABIAAAASABGyWs+AAAL+UlEQVRo3tWaeXRUdZbHP7+qkI1ABIQJryoJEAkYaAJECBEEGhAIgiw2DAfBAUEE9MjixtjSKNotyICI4CggckCddsSWRZYASqvIIltQo0ADQdaEfctGSH3nj9/L0ggIkjPY95yqd+q9V/fe77339373e6vgX1zMtS4+2CRuzo+fDOl4IbfDY4H2DR7P3xjWMXAS8AKhV/lSDhC4htIwIOgq1y6BJwJCU/NWeb7PmBEem9a0wZ/fjX7/ob1DbgjA042jeq8YNtGcm/vQhqIkc8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9yZWwvaW1hZ2VzL2luY2x1ZGVzL3RhbXBlcm1vbmtleS5zdmf3en/XAAAAAElFTkSuQmCC";
@ -119,6 +119,9 @@
cursor: pointer; cursor: pointer;
margin-left: 26px; margin-left: 26px;
} }
.___ds-menu___.no-click{
cursor: default;
}
.___ds-menu___:hover{ .___ds-menu___:hover{
background-color: #855F16; background-color: #855F16;
} }
@ -418,6 +421,8 @@
} }
if (callback) { if (callback) {
menuElement.onclick = callback; menuElement.onclick = callback;
} else {
menuElement.className += " no-click"
} }
if (options.accessKey) { if (options.accessKey) {
// TODO: 快捷键功能待开发篡改猴官方文档https://www.tampermonkey.net/documentation.php#api:GM_registerMenuCommand // TODO: 快捷键功能待开发篡改猴官方文档https://www.tampermonkey.net/documentation.php#api:GM_registerMenuCommand

Loading…
Cancel
Save