如何从私有域/github中进行用户cript自动更新?
我正在为TampermonKey开发一个用户订阅,并将其存储在属于我公司的Private Github上。我无法将代码上传到公共服务器上。脚本的自动更新功能似乎不起作用。
-
TampermonKey使用自己的服务器检查更新吗?
-
是否可以从私有域中使用户cript自动更新?
我在用户文字中使用这些属性:
// @downloadURL https://github02.private.domain/raw/github-username/repo-name/master/userscript.js
// @updateURL https://github02.private.domain/raw/github-username/repo-name/master/userscript.js
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
看起来自动更新实际上在一个私人域上工作,但是有2个问题:
不正确的URL: https:> https://github.com/raw/raw/username /Your-repo/main/script.user.js
正确的URL:
It looks like the auto update actually works on a private domain, but there were 2 problems:
Incorrect URL: https://github.com/raw/username/your-repo/main/script.user.js
Correct URL: https://github.com/username/your-repo/raw/main/script.user.js
更好的是:您可以删除UpdateUrl并在存储库浏览器视图中打开
RAW
文件。 TampermonKey将检测到文件,并提供(重新)安装它。确保计算版本!这是一个整洁的工作流程:
raw
文件,并在存储库Tampermonkey中使用浏览器自动检查更新。
Even better: You can remove the updateURL and open the
raw
file in the repository browser view. Tampermonkey will detect the file and offers to (re)install it. Make sure the version is counted up!Here is a neat workflow:
raw
file with your browser in the repositoryTampermonkey will check for updates there automatically.
您可以在 github page 上提交您的USERSCRIPT。在您可以使用公共GitHub页面链接进行更新之后。
You can submit your userscript on Github Page. After you can use your public github page link for make update.