0

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

我尝试执行以下步骤

  1. 在以下 url 下添加扩展文件夹:/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 扩展文件夹

谢谢

4

2 回答 2

0

你能试试这条路吗

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

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

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

参考

a) Mac 故障排除

b)部署选项

如果您需要更多信息,请与我们联系。

于 2012-12-20T17:44:35.750 回答
0

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

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

于 2020-12-16T08:17:20.640 回答