How to set up smartphones and PCs. Informational portal

Crx installation. Manual installation of Google Chrome extensions

To begin with, a little about what an extension is: an extension is a small add-on for the browser that expands its functionality. A wide variety of functions can perform extensions: they make it possible to download music or video where you simply cannot download it, for example, VKontakte or on Youtube. They simplify the work with documents, images, make it possible to choose which search engine to use in a particular situation without going to the search engine's website, change the appearance of the website.

Extensions in Google Chrome are installed from the official app store, don't be confused by the name - you don't have to buy anything. To get to the extension store, follow the link

Or go to the store using the browser menu: in the upper right corner of the browser, click on the button with three dots. The browser menu will open, in it you need to select "Additional tools". Another window will appear in which you need to find the item "Extensions" and click on it:

You are now in a tab with extensions installed in your browser. If no extensions have been installed before, then nothing will be here, or the pre-installed Google Chrome extensions - documents, presentations, spreadsheets - will be displayed. Depends on the browser version. Click on the top left on the menu item "Extensions", then down to Open the Chrome Web Store:

after which you will be taken to the extension store. Here you can view all the available ones, sort them by categories, opportunities, ratings. The only drawback is the language, not all extensions have a description and interface in Russian.

If you know which extension you need, then just enter its name in "Shop Search" and press Enter. Please note that not only extensions, but also applications may be present in the search results. In order not to be mistaken, select in the search results "Extensions"... From the results found, select the extension you need and click the button "Install":

After installation, an icon should appear in the upper right corner, with the help of which the extension is managed, configured, enabled or disabled any functions:

The settings are activated by right-clicking on the icon. In some cases, the icon may not be there, it all depends on the installed extension and its capabilities.

How to install a third-party extension in Google Chrome

If you have a third-party extension or user script from a source you trust, but for some reason this extension is not available in the Google Chrome store, you will not be able to install it in the usual way. For security reasons, the installation of third-party extensions, i.e. extensions not from the store, is prohibited in chrome. Here are some ways you can work around this limitation.

Installing the downloaded extension in .crx format

  1. First, you need to open the extensions page in the browser, as described above: Browser menu in the upper right corner> Additional tools> Extensions. Or copy chrome: // extensions / paste into the address bar of your browser and press Enter.
  2. At the top of the page there is a "Developer Mode" switch, activate it. 3 additional buttons will appear below: "Package extension" and "Update extensions":

  1. Extension file ending in .crx, rename so that it ends in .zip and open it with an archiver like a regular archive. Unpack it into a folder prepared for this (for example, create a folder on the "C" drive with the name Extensions, or any other name).
  2. In the browser, on the page with extensions, click on the button "Load unpacked extension" and in the window that appears, select the created folder, then click OK.

The extension will be installed in the browser, now all that remains is to activate it by moving the switch next to the extension to the "Enabled" position.

Installing a user script - a .user.js file in Google Chrome

Method one, simpler, but requiring the installation of an additional extension. The extension is called tampermonkey and needs to be installed from the Google Chrome store. After installation, it will be available in the upper right corner of the browser. When you press left mouse button the following window will appear on the extension icon:

in which you need to select an item "Create new script"... Please note opposite the paragraph "Included" there should be a green check mark.

A window for creating a new script will open. Now you need to open the downloaded user script using a text editor, copy and paste the code from it into this window in the browser. Then click on "File -> Save":

The script is ready to go.

The second way to install a user script- without using extensions. To do this, the script will have to be slightly modified, create a manifest.json file for it, thanks to which the script can be installed as an unpacked extension.

  1. First you need to download the script file itself with the name * .user.js.
  2. Now create a folder and put the script in it (for example, create a folder on the "C" drive with the name Extensions, or any other name).
  3. Open the script with a text editor. Note! Regular Windows Notepad may not work - it is advisable to use a text editor with the ability to change the encoding, such as Notepad ++. The text of these two files must be in UTF-8 encoding, otherwise the installation will fail. In the script file, at the very beginning, find the following lines:

// @name ... // @version ... // @description ... // @include ... (there may be several) // @exclude ... (there may be several)

  1. In the same folder, create a manifest.json file and paste this template into it (or download a ready-made file):

("content_scripts": [("exclude_globs": ["all_domains_and_paths_from_exclude_directives"], "exclude_matches":, "include_globs": ["all_domains_and_paths_from_include_directives"], "js": ["script_file_name" js http: // * / * "," https: // * / * "]," run_at ":" document_idle ")]," converted_from_user_script ": true," description ":" your_user_script_description "," name ":" your_user_script_name "," version ":" version_number_user script "," manifest_version ": 2)

"content_scripts": [(

"exclude_globs": [ "all_domains_and_paths_from_exclude_directives"] ,

"exclude_matches":.

"include_globs": [ "all_domains_and_paths_from_include_directives"] ,

: "your_user_script_description",

"name": "your_user_script_name",

"version": "version_number_user script",

"manifest_version": 2

Fill it in with the user script data that you were looking for in paragraph 3.

userscript_version_number- up to 4 numbers separated by dots. For example, 2.1.3

userscript_file_name.js- the name of the script file next to the manifest.json file

all_domains_and_paths_from_include_directives- each in quotes, separated by commas, with all metacharacters like "*" - all paths from @include directives that are written at the beginning of the user script file (for example, ["http://site1.ru/*", "http: // site2.ru/* "]);

all_domains_and_paths_from_exclude_directives- the same for @exclude directives

After everything is ready, the user script is installed as a third-party extension. Browser menu in the upper right corner> More tools> Extensions. Check the box "Developer mode", then select "Load unpacked extension ..." and in the window that opens, select the folder with the newly created files. If everything is done correctly, the user script will be added to the browser and activated. The only drawback of this method is that every time the browser is launched, it will display the following window:

notifying that a third-party extension is installed in it, which may be unsafe. It is enough to click "Cancel" and everything will work.

Unfortunately, since May 2014 extensions (skins) of the popular web browser Chrome can only be installed from Chrome Web Store... And those that you installed, bypassing the online store, are automatically disabled as "illegitimate". For example, the helpful video downloader from SaveFrom.net, which is currently only available from the official website, can be installed with a simple drag and drop CRX-file per page chrome: // extensions , however, when restarting the browser, it is blocked without the possibility of activation. Alternatively, you need to transfer extensions from one computer to another without using synchronization. To do this, you will have to pack the extension files into one CRX-archive (see the second part of the review). Two simple ways to solve all the problems will be discussed.

Turn on the extension (theme) in Chrome

So, you've downloaded a third-party extension file and want to integrate it into Chrome (or you need to reinstall a blocked extension). As you know, the option to install extensions from a folder is still saved for developers, which we will use.

  • First, unpack CRX-file by any available archiver, the best choice here is a free 7-zip (screenshot).

  • Let's run Chrome and go to the extensions section chrome: // extensions ("Menu" → "Settings" → "Extensions") → next, mark the checkbox (checkbox)" Developer Mode"→ via the appeared button" Load unpacked extension"(screenshot) specify the path to the desired folder →" OK".
  • Enjoy the work of the "forbidden" extension or the new browser theme.

How to pack a chrome extension folder into a CRX archive (file)

In principle, everything is clear: after activating the voiced mode for developers, press the button " Package extension"(second screenshot). Therefore, in the light of the next article about the Clover utility, which makes Windows Explorer usable and multi-tabbed, I suggest that you familiarize yourself with a useful example from personal practice (I hope it will work for you, reader). The task is this: download from the online store Chrome Web Store theme - find it in the Chrome extensions folder - pack in CRX-file for further use as a cover (skin) or for transfer to another device (PC). The author's solution, point by point and in "pictures" from the "face" of Windows 7, see below.

  • Follow the link to go to the "Themes" section of the Store and select the one you like, say, "Wooden chrome".

  • On the addon page (eng. add-on), noting the generated ID (identifier) ​​of the add-on in the address bar, in our case , click on the button " Install"(screenshot) → at the end of the process, the button will change color and text, becoming green" Added to Chrome ".
  • Without closing the browser, insert into the address bar of Explorer C: \ Users \ [Your Account Name] \ AppData \ Local \ Google \ Chrome \ User Data \ Default \ Extensions → "Enter".

  • In the directory with the Chrome extensions folders, find the "Wooden Chrome" theme with the same name with the theme ID and go into it (screenshot) → there will be a subfolder with a name like "1.0.4_0" (extension version), visit it → ignoring the new folders and files using the keyboard shortcut " Ctrl + C"copy the path to the folder" 1.0.4_0 "in Explorer.

  • By switching to the browser (" Alt + Tab"), open the extensions section in a familiar way ( chrome: // extension s and " Enter") → by activating" Developer Mode", click on" Package extension"(see the second screenshot) → in the window of the same name, insert the path to the addon, C: \ Users \[Your Account Name] \ AppData \ Local \ Google \ Chrome \ User Data \ Default \ Extensions \ \ 1.0.4_0→ again " Package extension " (screenshot).

  • Closing the button " OK"message indicating the path to the created files, return to Windows Explorer and through the arrow next to the address bar" roll back "to the directory back (screenshot) → detected files .crx and the key file .pem move to a safer and more visited place (for example, to the root of the disk D: \), remembering to rename to something more understandable (I merged "Clover" and "Wooden chrome" in " clover_derevo", see the first" picture "). Final!

Note: Novice computer users who have independently passed the "fire, water and copper pipes" of the above algorithms for unpacking-packing CRX-archive from Google Chrome, can safely rank themselves among the chosen community experienced users Windows OS.

This type of file can store .JS, .JSON files, in addition, there is the ability to contain executable files, the format can also carry images. It is noteworthy that in the CRX format, ZIP compression is used, but due to the presence of non-standard headers, ordinary archivers cannot always open the CRX file. In some cases, the 7-Zip, WinRAR or WinZip utilities will be able to open CRX. If you enter the following in the address bar of the Chrome browser, the following: "chrome: // extensions /", you can go to the browser window called "Extensions", where you will be able to manually install extensions by dragging and dropping .crx files.

If a user wishes to open the .crx file in an easier way, the Chrome Web Store can download, unzip, and install the file with the CRX extension. It should be noted that this Internet resource automatically deletes downloaded files. Within Chrome, a similar file extension is used as a container containing the installers necessary for the full and multifunctional operation of the browser. The Chrome database contains a large number of applications with the .crx file extension, their correct launch is recommended to be made exclusively through the browser itself.

Announcement

The CRX Archive file format

The themes of the Google Chrome web browser can be supplemented with specific functions. Such files, containing all the necessary information and data on such functions, are saved in a file with the CRX extension. These files can be used to save, install and open ad blockers, e-books, games, and other applications. The file itself can be used to manually set a specific feature by dragging and dropping it into the Google Chrome Extensions window. To open the specified window, at the command prompt in Chrome, enter the following command: chrome: // chrome / extensions /

Technical details of CRX files

Technically speaking, CRX files are plug-in files used by Google Chrome. Files inside CRX are compressed and can contain JavaScript, JSON files, and other executable programs or images. The ZIP compression method is used to compress CRX files. However, standard ZIP unzipping programs cannot open CRX files, since such files contain a special header section. Chrome plugins can be installed either by using the Add to Chrome button on the extensions page, or by dragging and dropping the manually downloaded CRX file into the extensions window. In the first case, the user does not encounter the CRX file, since the web browser automatically downloads, unpacks and installs it.

More information about the CRX file format

10 replies

I searched for it on Google and I found this:

The Google Chrome extension file type is CRX. It is a compression format. So if you want to see what is behind the extension, scripts and code, just change the file type from "CRX" to "ZIP".

Unzip the file and you will have all the information you need. This way you can see the guts, learn how to write an extension yourself, or modify it to suit your needs.

You can then package it up using the built-in Chromes tools that will automatically create the file back to CRX. It requires a click to install.

Installed Chrome Extension Directories are listed below:

    Copy the folder of the extension you want to change. (Named according to the extension ID, to find the extension ID go to chrome: // extensions /). After copying, you must delete the _metadata folder.

  • chrome: // extensions in developer mode choose Download the unpacked extension ... and select your copied extension folder, if it contains subfolder, version, select this folder with manifest file, this file is needed for chrome.
  • Make your changes, then select reload and refresh your extension page to see your changes.

Chrome extension directories

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

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

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

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

The signed CRX file has a header that will cause most / all unpackers to be blocked. This is not the easiest way to do it, but here's how to do it from the bash command line.

The basic idea is to find the original unsigned zip file and then copy the CRX file to the zip file, but exclude the CRX header.

  • hexdump -C the_extension.crx | more
  • Look at the output for the start of the zip file, which is ASCII "PK" bytes. In the example I tried, PK was at offset 0x132. (From reading the CRX spec, I think this number will vary from file to file due to different signature lengths.) This number is what we will use in the next step.
  • dd if = the_extension.crx of = the_extension.zip bs = 1 skip = 0x132 (For the skip parameter, replace the offset you found in the previous step.)
  • Now unzip the zip you just created.
  • Download the files in the unzipped directory, then install the unsigned / unzipped extension to your Chrome installation, or repackage it just like any other Chrome extension.

I'm sure there is a more concise way to do this. bash experts please improve my answer.

(Already said) I found this by creating some Chrome themes (which are long gone ...: -P)

Themes, extensions, etc. Chrome are just compressed files. Get 7-zip or WinRar to unzip it. Each extension / theme has a manifest.json file. Open the manifest.json file in notepad. Then, if you know the encoding, change the code. There will be other files as well. If you look in the manifest file, you can figure out what this is for. Then you can change everything ...

I've read other answers and found it important to note a few other things:

1.) For Mac users: when you click "Download Unpacked Extension ..." the Library folder is hidden by default and (even if the "Show Hidden Files" option is toggled on your Mac) it may not appear in the Chrome Search Window ...

2.) The subfolder containing the extension is a random alphanumeric string with a name after the extension ID, which can be found on the Chrome extension page if Developer is set to True. (Top-right checkbox on extensions page)

Chrome is now multi-user so Extensions must be nested in OS user profile and then Chrome user profile, my first Chrome user was called Profile 1, my Extensions path was C: \ Users \ username \ AppData \ Local \ Google \ Chrome \ User Data \ Profile 1 \ Extensions \.

To find your Go to chrome: // version / (I use about: out of laziness).

Take note of the Profile Path and just add \ Extensions \ and you have it.

Hopefully this information on this matter will be updated up to now.

You can change the .CRX extension code because it is a simple .zip archive. You can download the extension, extract its source code, modify it (test and debug it as on your side), and also put it back in the .CRX file.

I searched for this tool to just download the .CRX extension and extract the source and it worked for me: http://crxextractor.com

All he does is parsing. The file format is .CRX and extracts the actual .zip containing the source code.

Top related articles

File extension .crx