-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问这个是订阅错误吗? #24
Comments
检查更新错误,可以看看这个安装链接还有没有效 |
我配置是这样的,链接可以访问 // @connect hsqoo.github.io |
可以贴上全部的内容和链接看看吗? |
UserSubscribe 这个没有写上去是吗 |
https://docs.scriptcat.org/dev/subscribe.html 开头和结尾使用 |
谢谢大佬 |
后台脚本可以看这个文档:https://docs.scriptcat.org/dev/background.html 看起来是想写一个定时的,类似这样就好 // ==UserScript==
// @name 每天运行一次的定时脚本
// @namespace wyz
// @version 1.0.0
// @author wyz
// @crontab * * once * *
// ==/UserScript==
return new Promise((resolve, reject) => {
if (GM_openInTab('www.baidu.com')) {
resolve("ok");// 执行成功
} else {
reject("error");// 执行失败,并返回错误原因
}
}); |
我想实现的功能是 自动订阅 一个后台脚本 |
订阅是为多脚本服务的,如果是单个脚本,直接写好一个后台脚本安装就行,更新的话,会自动检查更新的,默认设置为1天。 如果你有多个脚本,就可以用订阅功能,现在也是默认一天检查更新一次 |
检查更新还需要一个 .meta.js 后缀的文件,或者指定更新链接为脚本链接本身:https://docs.scriptcat.org/dev/meta.html#updateurl 另外也可以去脚本市场发布,会自动配置一个更新的:https://scriptcat.org/search |
The text was updated successfully, but these errors were encountered: