【问题标题】:How do I manually install extensions on Chrome for OS X?如何在 Chrome for OS X 上手动安装扩展程序?
【发布时间】:2012-12-20 16:06:20
【问题描述】:

我已经创建了一个 chrome 扩展,我想手动将它添加到 mac osx(10.7 和 10.8)上的 chrome

我尝试执行以下步骤

  1. 在以下网址下添加扩展文件夹: /Users/talmutzafi/Library/Application Support/Google/Chrome/Profile 20/Extensions/

  2. 在首选项列表下添加扩展数据。首选项列表位于 /Users/talmutzafi/Library/Application Support/Google/Chrome/Profile 20/preferences

我尝试添加:

- under backup i added the ext. id to the id's list

       "backup": {
  "_signature": "+1Vx9UrMvhjXj4EFWQAf2eMfrRs+ZrFK3ogVnwE/Njs=",
  "_version": 4,
  "extensions": {
     "ids": [ "ahfgeienlihckogmohjhadlkjgocpleb", "akheoamkobfngpbmfmnjnekmciamdknh", "apdfllckaahabafndbhieahigkjlhalf", "blpcfgokakmgnkcojhhkbfbldkacnbeo", "coobgpohoikkiipiblmjeljniedjpjpf", "pjkljhegncpnkpknbcohdijeoejaedia" ]
  }

- under settings i add the following data on the extension

     "akheoamkobfngpbmfmnjnekmciamdknh": {
        "ack_external": true,
        "active_permissions": {
           "api": [ "bookmarks", "contextMenus", "cookies", "geolocation", "history", "idle", "management", "notifications", "plugin", "tabs", "unlimitedStorage", "webNavigation", "webRequest", "webRequestInternal" ],
           "explicit_host": [ "chrome://favicon/*", "http://*/*", "https://*/*" ],
           "scriptable_host": [ "http://*/*", "https://*/*" ]
        },
        "app_launcher_ordinal": "t",
        "events": [ "runtime.onInstalled" ],
        "from_bookmark": false,
        "from_webstore": false,
        "install_time": "13000491448720728",
        "location": 3,
        "manifest": {
           "background": {
              "page": "js/chromeBackStage.html"
           },
           "chrome_url_overrides": {
              "newtab": "Search/NewTabPages/html/new_tab.html"
           },
           "current_locale": "en_US",
           "default_locale": "en_US",
           "description": "mac installer",
           "key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDIl5KlKwL2TSkntkpY3naLLz5jsN0YwjhZyObcTOK6Nda4Ie21KRqZau9lx5SHcLh7pE2/S9OiArb+na2dn7YK5EvH+aRXS1ec3uxVlBhqLdnleVgwgwlg5fH95I52IeHcoeK6pR4hW/Nv39GNlI/Uqk6O6GBCCsAxYrdxww9BiQIDAQAB",
           "manifest_version": 2,
           "name": "mac installer",
           "offline_enabled": true,
           "permissions": [ "storage", "tabs", "http://*/*", "https://*/*", "notifications", "management", "unlimitedStorage", "bookmarks", "contextMenus", "cookies", "geolocation", "history", "idle", "webNavigation", "chrome://favicon/*", "webRequest", "webRequestBlocking" ],
           "version": "1.0"
        },
        "page_ordinal": "n",
        "path": "akheoamkobfngpbmfmnjnekmciamdknh/1.0",
        "state": 1,
        "was_installed_by_default": true
     },

更改后我打开 chrome 并希望看到我的扩展,但扩展没有出现。

我签入了窗口,除了将扩展名添加到首选项之外,我们还需要将扩展​​名写入注册表。

任何想法我还需要做什么才能手动安装 chrome 扩展文件夹

谢谢

【问题讨论】:

    标签: macos google-chrome google-chrome-extension


    【解决方案1】:

    你能试试这条路吗

    对于特定用户: ~USERNAME/Library/Application Support/Google/Chrome/External Extensions/

    所有用户/Library/Application Support/Google/Chrome/External Extensions/

    如果您在 Chrome 启动时没有看到安装外部扩展程序,则外部扩展程序首选项文件可能存在权限问题。

    参考文献

    a) Mac Troubleshooting .

    b)Deployment Options

    如果您需要更多信息,请告诉我。

    【讨论】:

      【解决方案2】:

      目前,无法通过 crx 安装不在 windows 和 mac 机器上的 chrome 商店中托管的扩展程序。从文档中,https://developer.chrome.com/docs/extensions/mv2/external_extensions/ -

      警告 Windows 和 Mac 安装必须来自 Chrome 网上应用店:从 Chrome 33 开始,不允许从 Windows 上本地 .crx 的路径进行外部安装(请参阅保护 Windows 用户免受恶意扩展程序的侵害)。从 Chrome 44 开始,不允许从 Mac 上本地 .crx 的路径进行外部安装(请参阅继续保护 Chrome 用户免受恶意扩展程序的侵害)。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-06-17
        • 1970-01-01
        • 2018-03-23
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多