You've already forked dev-sidecar
mirror of
https://github.com/docmirror/dev-sidecar.git
synced 2025-11-26 14:10:40 +08:00
小调整。
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* 篡改猴(Tampermonkey)| 油猴(Greasemonkey)浏览器脚本扩展
|
||||
*
|
||||
* @version 0.1.2
|
||||
* @since 2024-04-24 14:43
|
||||
* @since 2024-04-24 14:49
|
||||
* @author 王良
|
||||
* @authorHomePage https://wangliang1024.cn
|
||||
* @remark 当前脚本为仿照的版本,并非篡改猴插件的源码,仅供学习参考。
|
||||
@@ -216,8 +216,9 @@
|
||||
switchMenuElement.title = `点击${enabled ? "关闭" : "开启"}此脚本功能`;
|
||||
api.GM_setValue("ds_enabled", enabled)
|
||||
api.GM_notification({
|
||||
text: `已${enabled ? "开启" : "关闭"} 「${options.name}」 功能\n(刷新网页后生效)`,
|
||||
timeout: 3500
|
||||
text: `已${enabled ? "开启" : "关闭"} 「${options.name}」 功能\n(点击刷新网页后生效)`,
|
||||
timeout: 3500,
|
||||
onclick: () => location.reload()
|
||||
});
|
||||
};
|
||||
// 将开关菜单添加到菜单列表div中
|
||||
|
||||
Reference in New Issue
Block a user