macos - 在 Mac 上哪里可以找到 Google Chrome 的扩展程序安装文件夹?

标签 macos google-chrome google-chrome-extension

我在 ~/Library/Application Support/Google/Chrome/下找不到它们;他们在哪里?

  • Mac Pro 10.8.4
  • Chrome 版本 26.0.1410.65

最佳答案

Chrome 配置文件目录的默认位置记录在 User Data Directory article 中在 Googlesource.com 上。 (当这篇文章于 2013 年撰写时,用户数据目录文章位于 chromium.org 。)它说,

To determine the user data directory for a running Chrome instance:

  1. Navigate to chrome://version
  2. Look for the Profile Path field. This gives the path to the profile directory.
  3. The user data directory is the parent of the profile directory.

对于 Mac 上的 Chrome,它是

~/Library/Application\ Support/Google/Chrome/Default

实际位置可能有所不同,按setting --user-data-dir=path/to/directory旗帜。
如果 Chrome 中只有一名用户注册,请查看 Default/Extensions子目录。否则,请查看 <profile user name>/Extensions目录。

如果这没有帮助,您可以随时进行自定义搜索。

  1. 转到chrome://extensions/ ,并找出扩展程序的 ID(32 个小写字母)(如果尚未完成,请先激活“开发者模式”)。

    Chrome UI showing extension ID with 32 letters

  2. 打开终端,cd 到最有可能是您的 Chrome 配置文件的父目录的目录(如果不确定,请尝试 ~,然后尝试 /)。

  3. 运行find . -type d -iname "<EXTENSION ID HERE>" ,例如:

    find . -type d -iname jifpbeccnghkjeaalbbjmodiffmgedin
    

结果:

./Library/Application Support/Google/Chrome/Default/Extensions/jifpbeccnghkjeaalbbjmodiffmgedin

关于macos - 在 Mac 上哪里可以找到 Google Chrome 的扩展程序安装文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17377337/

相关文章:

css - Leaflet全屏与Chrome中CSS位置冲突

css - Z-index 适用于 FF,不适用于 Chrome

javascript - 删除事件监听器时遇到问题

tabs - 通过 chrome.tabs.create 打开多个选项卡时出现问题

google-chrome-extension - 为 Chrome 扩展程序制作唯一的扩展程序 ID 和 key ?

c++ - Mac/iOS收不到UDP广播包,但可以发送UDP广播包

macos - 如何在Mac上使用Docker进行调试

javascript - 如何使用 API 关闭 Google Chrome 窗口中的所有选项卡

macos - 我正在尝试从 OSX Sierra 中的扩展坞隐藏事件应用程序,但我所做的只是使应用程序崩溃

cocoa - 获取打开的windows cocoa列表