4

我在这里发帖看看你是否知道这个错误可能是什么,昨晚遇到了对我的 Chrome 扩展进行更改。由于图标扩展的背景是橙色的并且不会改变:

http://img15.hostingpics.net/pics/388737bug.png

第一个图标是本地扩展,第二个来自 Chrome Web Store

以下是图标的视图,启用时和未启用时。此错误 (?) 仅在 Google Chrome 上可见,在 Chromium 或 Canary 上不可见。

Link extension activated : http://img15.hostingpics.net/pics/791653icon19.png

Link extension disabled : http://img15.hostingpics.net/pics/751957icon19deactivate.png

我正在使用 Windows 7,但我还没有尝试卸载 Chrome 以查看是否解决了问题。

清单.json:

{
    "manifest_version": 2,
    "name": "YouTube Dark Theme : Black and Red",
    "short_name": "Black & Red",
    "description": "Youtube theme : Specially for night or prevent the flash effect overnight.",
    "version": "1.29",
    "permissions": [
        "http://www.youtube.com/"
    ],
    "content_scripts": [
    {
      "matches": ["http://www.youtube.com/*", "https://www.youtube.com/*"],
      "js": ["youtube_theme_b_r.js"],
      "run_at": "document_start"
    },
    {
      "matches": ["*://apis.google.com/*/widget/render/comments*", "*://plus.googleapis.com/*/widget/render/comments*"],
      "js": ["youtube_theme_b_r_comments.js"],
      "run_at": "document_start",
      "all_frames": true
    }
  ],
    "background": {
        "page": "background.html",
        "persistent": false
    },
      "browser_action": {
        "default_icon": "images/icon_19.png",
        "default_title": "Youtube Dark Theme : Black and Red"
    },
    "icons": {
        "19": "images/icon_19.png",
        "48": "images/icon_48.png",
        "96": "images/icon_96.png"
    },
    "web_accessible_resources": [
        "youtube_dark_theme_min.css",
        "youtube_dark_theme_comments_min.css"
    ]
}

谢谢你。

4

1 回答 1

1

Chrome 33 是​​ Chromium 加强安全性并且只允许来自网络商店的扩展(或作为开发人员或使用企业策略)。

http://www.chromium.org/developers/extensions-deployment-faq

我找不到任何关于背景为橙色的信息,但它也发生在我未打包的扩展程序上(但不是在我发布的扩展程序上。)

所以它只是让扩展不是来自网络商店的更加明显(对于普通用户来说更安全,并让开发人员与他们发布的扩展区分开来。)

于 2014-02-25T20:00:59.307 回答