From 789e7ae3c939fa140858e7ccbddfb1358c10b41c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Thu, 5 Sep 2024 18:01:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=89=AA=E5=88=87=E6=9D=BF?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=90=8E=E7=9A=84=E6=8F=90=E7=A4=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E8=87=AA=E5=AE=9A=E4=B9=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GithubEnhanced-High-Speed-Download.user.js | 4 ++-- tampermonkey.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index 7ac7cbf..8b3cdf5 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -325,7 +325,7 @@ document.addEventListener("DOMContentLoaded", () => { html.parentElement.insertAdjacentHTML('afterend', _html); if (html.parentElement.parentElement.className.indexOf('XIU2-GCP') === -1){ html.parentElement.parentElement.classList.add('XIU2-GCP') - html.parentElement.parentElement.addEventListener('click', (e)=>{if (e.target.tagName === 'INPUT') {GM_setClipboard(e.target.value);}}) + html.parentElement.parentElement.addEventListener('click', (e)=>{if (e.target.tagName === 'INPUT') {GM_setClipboard(e.target.value, {notification:'clone命令已复制成功'});}}) } } @@ -353,7 +353,7 @@ document.addEventListener("DOMContentLoaded", () => { html.parentElement.insertAdjacentHTML('afterend', _html); if (html.parentElement.parentElement.className.indexOf('XIU2-GCP') === -1){ html.parentElement.parentElement.classList.add('XIU2-GCP') - html.parentElement.parentElement.addEventListener('click', (e)=>{if (e.target.tagName === 'INPUT') {GM_setClipboard(e.target.value);}}) + html.parentElement.parentElement.addEventListener('click', (e)=>{if (e.target.tagName === 'INPUT') {GM_setClipboard(e.target.value, {notification:'clone命令已复制成功'});}}) } } diff --git a/tampermonkey.js b/tampermonkey.js index 89f1a81..050411d 100644 --- a/tampermonkey.js +++ b/tampermonkey.js @@ -647,7 +647,7 @@ // 提示设置成功 if (info.notification !== false) { api.GM_notification({ - text: "内容复制成功,请使用 Ctrl+V 粘贴内容吧!", + text: info.notification || "内容复制成功,请使用 Ctrl+V 粘贴内容吧!", timeout: 3500 }); }