From 7161f0c054a41e8eeb7f610c3a42237576e2b4ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Wed, 24 Apr 2024 14:54:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E8=B0=83=E6=95=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tampermonkey.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tampermonkey.js b/tampermonkey.js index 36938363..c325a46f 100644 --- a/tampermonkey.js +++ b/tampermonkey.js @@ -2,7 +2,7 @@ * 篡改猴(Tampermonkey)| 油猴(Greasemonkey)浏览器脚本扩展 * * @version 0.1.2 - * @since 2024-04-24 14:49 + * @since 2024-04-24 14:54 * @author 王良 * @authorHomePage https://wangliang1024.cn * @remark 当前脚本为仿照的版本,并非篡改猴插件的源码,仅供学习参考。 @@ -216,6 +216,7 @@ switchMenuElement.title = `点击${enabled ? "关闭" : "开启"}此脚本功能`; api.GM_setValue("ds_enabled", enabled) api.GM_notification({ + title: "脚本状态变更通知", text: `已${enabled ? "开启" : "关闭"} 「${options.name}」 功能\n(点击刷新网页后生效)`, timeout: 3500, onclick: () => location.reload()