简体   繁体   English

修改Chrome清单

[英]Edit Chrome manifest

Time ago I did a theme for Chrome using a web engine if I'm not mistaken. 前一段时间,如果我没有弄错的话,我会使用网络引擎为Chrome做主题。

It always worked till Chrome upgraded to version 23. Now when I want to install the theme I get this error: 它一直有效,直到Chrome升级到版本23.现在,当我想安装主题时,我收到此错误:

Could not load extension from '/extension_path/'. 无法从'/ extension_path /'加载扩展名。 The 'manifest_version' key must be present and set to 2 (without quotes). 'manifest_version'键必须存在并设置为2(不带引号)。 See developer.chrome.com/extensions/manifestVersion.html for details. 有关详细信息,请参阅developer.chrome.com/extensions/manifestVersion.html。

I guess I have to open the manifest.json and edit the key value to 2? 我想我必须打开manifest.json并将键值编辑为2? I really don't know, never worked with it. 我真的不知道,从来没有用过它。 How can I open the manifest? 如何打开清单?

If I have the extension installed and update to 23, it keeps working without any problem. 如果我安装了扩展并更新到23,它会继续正常工作。

Check out Chrome's documentation on Manifest Version . 查看Chrome有关清单版本的文档。 Find the manifest.json file in the extension's folder and add 在扩展程序的文件夹中找到manifest.json文件并添加

"manifest_version": 2,

in there. 在那里。

Make sure you test after adding the manifest key to the manifest.json. 确保在将manifest键添加到manifest.json后进行测试。 Your Extension might not work properly. 您的扩展可能无法正常工作。 Mine didn't. 我的没有。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM