【问题标题】:Chrome Extension installation "Invalid manifest"Chrome 扩展安装“无效的清单”
【发布时间】:2016-09-19 05:37:09
【问题描述】:

我有一个 Chrome 扩展程序,可以很好地上传到 Chrome 商店。我当前的清单文件发布在下面。它以 ANSI 格式保存,如以前有关此问题的帖子中所建议的那样。这是第三种变体,当我尝试安装时它们都会产生相同的错误消息:“无效清单”。没有真实信息。我已尝试等待 24 小时以使其按照之前帖子中的建议正确传播,但没有效果。

以前有人遇到过这个问题吗?

扩展在这里:https://chrome.google.com/webstore/detail/bamboo-dialog-fixer/oelecpkhobhmbbdmehaoonkbkdodhdio?hl=en-US

{
  "manifest_version": 2,
  "name": "Bamboo dialog fixer",
  "version": "1.3",
  "description": "This extension makes bamboo popup dialogs such a the performance dialogs fit the width of the screen.",
  "icons": {"128": "BambooHR_FullSize.png"},
  "content_scripts":
  {
    "css": "styles.css",
    "matches": "https://*.bamboohr.co.uk/*"
  }
}

【问题讨论】:

  • “content_scripts”、“css”、“matches”键是数组,所以添加[]the docs所示。
  • 我以为在我的 1.2 迭代中会这样,但我已经重写并再次上传,所以祈祷。

标签: google-chrome google-chrome-extension


【解决方案1】:

感谢 wOxxOm。我一定搞砸了,即使我认为我在以前的场合做得对。我重写了如下文件并上传,现在可以使用了。

{
  "manifest_version": 2,
  "name": "Bamboo dialog fixer",
  "version": "1.4",
  "description": "This extension makes bamboo popup dialogs such a the performance dialogs fit the width of the screen.",
  "icons": {"128": "BambooHR_FullSize.png"},
  "content_scripts": [
  {
    "css": ["styles.css"],
    "matches": ["https://*.bamboohr.co.uk/*"]
  }
  ]
}

【讨论】:

    猜你喜欢
    • 2012-04-01
    • 1970-01-01
    • 2021-03-17
    • 1970-01-01
    • 1970-01-01
    • 2021-07-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多