Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

It is possible to directly modify the html, js, json of a Chrome Extension (or whatever language they use)?

like image 675
alexchenco Avatar asked Feb 12 '10 07:02

alexchenco


People also ask

What is .CRX file?

A CRX file is an extension that adds extra features or themes to the Google Chrome web browser. It is saved in a compressed format and may contain . JS, . JSON, and other files, such as images and executable programs. CRX files are used for installing browser addons such as games, ad blockers, and news readers.


1 Answers

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/ 
like image 52
JDavis Avatar answered Sep 19 '22 11:09

JDavis