Chrome Extension Manifest权限被阻止

时间:2018-10-20 17:46:06

标签: google-chrome-extension google-chrome-devtools

在尝试在Chrome Store上升级扩展程序时,我迷上了这个问题。我尝试了所有推荐的解决方案,但均未成功。有人可以帮忙吗?This is what I got from Chrome Store

这是我的清单文件:

  {
    "name": "__MSG_appName__",
    "version": "{{version}}",
    "manifest_version": 2,
    "description": "__MSG_appDescription__",
    "icons": {
      "16": "images/icon-16.png",
      "19": "images/icon-19.png",
      "32": "images/icon-32.png",
      "38": "images/icon-38.png",
      "48": "images/icon-48.png",
      "64": "images/icon-64.png",
      "128": "images/icon-128.png"
    },
    "default_locale": "en",
    "background": {
      "scripts": [ ]
    },
    "browser_action": {
      "default_icon": {
        "16": "images/icon-16.png",
        "19": "images/icon-19.png",
        "32": "images/icon-32.png",
        "38": "images/icon-38.png",
        "48": "images/icon-48.png",
        "64": "images/icon-64.png",
        "128": "images/icon-128.png"
      },
      "default_title": "..."
    },
    "content_scripts": [
      {
        "name": "main_scripts",
        "matches": [
          "http://*/*",
          "https://*/*"
        ],
        "css": []
        "run_at": "document_start",
        "all_frames": false
      }
    ],
    "permissions": [
      "activeTab",
      "contextMenus",
      "history",
      "storage",
      "management",
      "webRequest",
      "webRequestBlocking"
    ]
  }

我不知道这是否有帮助。这是我在开发环境中得到的: Error from chrome://extension 1,  Error from chrome://extension 2

0 个答案:

没有答案