How do I directly modify a Google Chrome Extension File? (.CRX)

后端 未结 10 1234
挽巷
挽巷 2020-12-04 05:17

I\'m not sure in which languages those extensions are, I think the are written in Html, Javascript or JSON. As far as I know they are \"compressed\" in a .CRX file.

10条回答
  •  时光取名叫无心
    2020-12-04 05:29

    Installed Chrome extension directories are listed below:

    1. Copy the folder of the extension you wish to modify. ( Named according to the extension ID, to find the ID of the extension, go to chrome://extensions/). Once copied, you have to remove the _metadata folder.

    2. From chrome://extensions in Developer mode select Load unpacked extension... and select your copied extension folder, if it contains a subfolder this is named by the version, select this version folder where there is a manifest file, this file is necessary for Chrome.

    3. Make your changes, then select reload and refresh the page for your extension to see your changes.


    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\YourUserName\Local Settings\Application Data\Google\Chrome\User Data\Default
    

    Ubuntu 14.04:

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

提交回复
热议问题