简体   繁体   English

Chrome扩展Manifest.json无效

[英]Chrome Extension Manifest.json invalid

Now why in the world is this invalid. 现在为什么这在世界上是无效的。

Manifest.json: Manifest.json:

{
     "name": “mything",
     "version": "1",
     "manifest_version": 2,
     "content_scripts": [{
         "js": [“engine.js”],
         "matches": ["http://www.agar.io/*”]
      }]
}

Error: 错误:

Failed to load extension from: ~/Desktop/AgarExpress
Manifest is not valid JSON. Line: 2, column: 15, Unexpected token.

Line that is invalid is 无效的行是

"name": “mything",

If to believe JsonLint “ != " . They dont have the same encoding, i remember i stumbled upon it as an issue with greek keyboard if I am not mistaken. This one is valid, also according to the text coloring of Stack Overflow: 如果相信JsonLint “!=”。他们没有相同的编码,我记得如果我没记错的话,我偶然发现它是希腊键盘的一个问题。根据Stack Overflow的文本颜色,这是有效的:

{
    "name": "mything ",
    "version": "1",
    "manifest_version": 2,
    "content_scripts": [{
        "js": ["engine.js"],
        "matches": ["http://www.agar.io/*"]
    }]
}

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

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