Location of CRX in chrome after installation?

ⅰ亾dé卋堺 提交于 2020-02-17 07:39:33

问题


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.

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.


回答1:


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.

Installed Chrome extension directories:

Mac

/Users/USERNAME/Library/Application Support/Google/Chrome/Default/Extensions

Windows 7

C:\Users\USERNAME\AppData\Local\Google\Chrome\User Data\Default\Extensions

Windows XP

C:\Documents and Settings\USERNAME\Local Settings\Application Data\Google\Chrome\User Data\Default

Linux

~/.config/google-chrome/Default/Extensions/

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.




回答2:


On Windows that's:

%Chrome Install Path%\User Data\Default\Extensions\%ID%

I suppose it's something similar on Mac.



来源:https://stackoverflow.com/questions/2134420/location-of-crx-in-chrome-after-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!