add js script "Notify" (#802)

This commit is contained in:
Zhicheng Zhang
2025-05-13 16:42:12 +08:00
committed by GitHub
parent 070898a6f5
commit 503b2bd134
3 changed files with 19 additions and 0 deletions

3
repo/js/Notify/main.js Normal file
View File

@@ -0,0 +1,3 @@
(async function () {
notification.Send(settings.content);
})();

View File

@@ -0,0 +1,8 @@
{
"manifest_version": 1,
"name": "发送通知",
"version": "1.0",
"description": "发送通知,可以在调度器中使用。",
"settings_ui": "settings.json",
"main": "main.js"
}

View File

@@ -0,0 +1,8 @@
[
{
"name": "content",
"type": "input-text",
"label": "通知内容",
"default": "请前往 JS脚本自定义设置 中修改内容。"
}
]