如何在清单文件中指定扩展的作者
我希望问题本身传达了我想要的东西。我写了一个扩展,想在清单文件中指定作者的姓名。这可能吗?如果是的话..我该怎么做。
I Hope Question itself conveys what I want. I wrote a an Extension and want to specify name of the author in Manifest file. Is this possible? If yes.. How can I do that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以按照 https://developer.chrome.com/extensions/manifest 中所述指定作者。
You can specify an author as described at https://developer.chrome.com/extensions/manifest.
Manifest 文件中没有字段来指定作者。但是,您可以在文件中添加注释,您可以在其中编写任何您想要的内容。
另请注意,当您将扩展程序发布到 Chrome 网上应用店时,您可以编辑您的
开发者显示名称
,这是人们在网上应用店中查看扩展程序时可以看到的名称。There is no field in the Manifest file to specify the author. You can, however, add a comment in the file where you can write whatever you want.
Also note that when you publish your Extension to the Chrome Webstore you can edit your
Developer display name
this is the name that will be visible to people when they check out the Extension in the Webstore.没有可用于指定作者的字段。尽管我之前见过一些使用“authors”字段的扩展(他们正在使用清单 v1),
但如果你现在创建一个新的扩展,清单 v2 不再允许它并会抛出错误。您可以检查此页面是否有更改或 chrome 开发新闻 http://developer.chrome.com/extensions /manifest.html
目前您能做的最好的事情就是将签名作为 html 注释添加到您的 html 文件中,您也可以将其添加到您的 js 文件中。
也许创建一些编译器工具,在部署时自动将这些注释附加到这些文件中。
There isn't a field you can use to specify author/authors. Even though I've seen some extensions before that used "authors" field, (they are using manifest v1)
but if you make a new extension now, manifest v2 doesn't allow it anymore and will throw an error. you can check this page for changes or the chrome dev news http://developer.chrome.com/extensions/manifest.html
The best that you can do at the moment is add a signature to your html files as html comments and you can also add it on your js files.
maybe create some compiler tool that will auto append those comments to those files upon deployment.
所以,这就是我发现的现在似乎有效的方法。
So, heres what i found seems to be working now.