CRX在安装后在铬中的位置? [英] Location of CRX in chrome after installation?
问题描述
我正在做一个涉及浏览器扩展的项目。在Firefox中,我确实知道下载这些扩展后的位置(位于您的配置文件文件夹下),我想知道Chrome在安装后隐藏了crx的位置?特别是在mac。
Im doing a project that involves browser extension. In firefox i do know the location of where the extensions will be after you download them (under your profile folder) and I was wondering where does Chrome hides the crx after you install them? Especially in mac.
我正在这样做因为我发现通过看看其他人如何解决这个问题特别是XPCOM并且现在碰到一些问题扩展。
I'm doing this coz i find it easier to build extension by look how other people tackles the problem especially XPCOM and now bumping into some issue with chrome extensions.
推荐答案
CRX文件基本上是ZIP文件。安装扩展后,所有文件都位于根据扩展名指定的文件夹中。要获得扩展ID,请转至 chrome:// extensions /
并确保已选中开发者模式。
CRX files are basically ZIP files. After you install an extension, all the files are in a folder named according to the extension ID. To get the extension ID, go to chrome://extensions/
and make sure Developer mode is checked.
已安装的Chrome扩展程序目录:
Mac
Installed Chrome extension directories:
/Users/USERNAME/Library/Application Support/Google/Chrome/Default/Extensions
Windows 7
Windows 7
C:\Users\USERNAME\AppData\Local\Google\Chrome\User Data\Default\Extensions
Windows XP
Windows XP
C:\Documents and Settings\USERNAME\Local Settings\Application Data\Google\Chrome\User Data\Default
Linux
Linux
~/.config/google-chrome/Default/Extensions/
注意:在Chrome中有多个配置文件时,会创建其他目录。要获得为第二个配置文件安装的扩展程序,请将 / Default
替换为 / Profile 1
。
Note: Additional directories are created when you have multiple profiles in Chrome. To get to an extension installed for the second profile, replace /Default
with /Profile 1
.
这篇关于CRX在安装后在铬中的位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!