如何设置Chrome的用户脚本版本号
编辑:导致此问题的错误已得到修复。 @version
标签现在可以在稳定版本中使用。请参阅问题 30760
嘿。
我一直想知道如何在 Chrome 的扩展选项卡中设置为用户脚本显示的版本号
(来源:advefir.com)
到目前为止明显的方法失败了:
// ==UserScript==
// @version 1.1.5
// @uso:version 1.1.5
// ==/UserScript==
我知道 Firefox 的 Greasemonkey 不使用版本值,但由于 Chrome 实际上显示版本号,我认为可能会。
也许这是一个尚未实现的功能?
或者也许它从来没有打算在那里,但它在那里是因为扩展有版本号,并且用户脚本当前作为扩展安装?
(顺便说一下,我正在使用 Linux beta,版本:4.0.249.43)
谢谢。
Edit: The bug that caused this problem has been fixed. The @version
tag now works in the stable release. See Issue 30760
Hey.
I've been wondering how I might set the version number displayed for user-scripts in Chrome's extension tab
(source: advefir.com)
So far the obvious methods have failed:
// ==UserScript==
// @version 1.1.5
// @uso:version 1.1.5
// ==/UserScript==
I know Greasemonkey for Firefox doesn't use a version value, but since Chrome actually displays a version number, I thought it might.
Perhaps this is a feature that has not been implemented?
Or maybe it was never intended to be there, but it is there because extensions have version numbers, and user-scripts are currently installed as extensions?
(I'm using the Linux beta, version: 4.0.249.43, by the way)
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
好的,现在这似乎是一个已确认的错误。 (问题 30760)
似乎是标准
@version
元数据是正确的用法,但尚未实现。编辑:
@version
标签现在可以在Chromium 的稳定释放(以及 Chrome)。Ok, this appears to be a confirmed bug now. (Issue 30760)
Seems the standard
@version
meta-data is the correct usage,but it has not yet been implemented.Edit: The
@version
tag now works in the stable release of Chromium (and, therefore, Chrome).我想是的。
用于更新扩展的版本号。用户脚本当前无法更新。 “立即更新扩展”按钮对他们不起作用。
I think so.
Version number used for updating extensions. User scripts currently can not update. "Update extensions now" button doesn't work for them.
已修复,但显然尚未发布:
http://code.google.com/p/chromium/问题/详细信息?id=30760#c16
Fixed, but apparently not yet released:
http://code.google.com/p/chromium/issues/detail?id=30760#c16