Guide on Packaging and Import 3rd party plugins to Chrome

It’s been a loooooong time since the last update. Just cause I’m too lazy. XP.And now,I will use English as much as I can.

TL;DR

Chrome removed many 3rd party plugins from Chrome App Store due to some unknown Python transaction recently. Due to security reason Chrome will disable extensions import locally with unknown source. You will get annoying popups every time launching Chrome if unpacked extensions are loaded.

So in this thread I’ll provide a better solution to load 3rd party plugins with the latest build using Windows Group Policy or using configuration profiles for macOS.

Package the extension

This step is unnecessary if you have the complied version.

  1. Launch Chrome, open chrome://extensions, click Pack extension on top-left.
  2. Browse the code you just downloaded, click Pack Extension.
  3. The newly built extension will be found in the source folder with a *.pem file, keep them all, you will need that .pem file if you want to update the extension in the furture.
  4. Drag the *.crx file to the chrome://extension page to install it. Select the Developer Modecheckbox to show the hidden extension ID, save it somewhere.

Apply Chrome policy using Group Policy Editor

See For MacOS Users if you are using MacOS.

  1. Download the zip file of Chrome templates from here.
  2. Extract the following files or folders into %SystemRoot%\PolicyDefinitions:
    • ./Windows/admx/chrome.admx;
    • ./Windows/admx/google.admx;
    • ./Windows/admx/en-US/;
    • ./Windows/admx/zh-CN.
  1. Press Win+R and run: gpedit.msc. A sub-folder named Google / Google Chrome can be found under Local Computer Policy > Computer Configuration > Administrative Templates. (Ps. The group policy editor is not embeded with starter and home editions. Follow this guide to install it first. (Thanks @metafaniel for refering this issue.))

Add the extension ID to whitelist

Add the extension ID by the following steps:

  1. Navigate to Administrative Templates / Google / Google Chrome / Extensions section.
  2. Double click to open Configure extension installation whitelist on the right side.
  3. Enable the policy and click Show... to add the extension ID.

The extension will be enabled by default after Chrome relaunched.

For MacOS Users

This solution inspired by free1x, thanks.

  1. Download the following policy template.

    Download configuration profiles Now

    OR copy this

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>com.google.Chrome</key>
<dict>
<key>Forced</key>
<array>
<dict>
<key>mcx_preference_settings</key>
<dict>
<key>ExtensionInstallWhitelist</key>
<array>
<string>value01</string>
<string>value02</string>
<string>value03</string>
</array>
</dict>
</dict>
</array>
</dict>
</dict>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
<string>MCXToProfile.7e2bec75-299e-44ff-b405-628007abffff.alacarte.customsettings.bdac4880-d25f-4cdd-8472-05473f005e7e</string>
<key>PayloadType</key>
<string>com.apple.ManagedClient.preferences</string>
<key>PayloadUUID</key>
<string>bdac4880-d25f-4cdd-8472-05473f005e7e</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</array>
<key>PayloadDescription</key>
<string>Included custom settings:
com.google.Chrome
</string>
<key>PayloadDisplayName</key>
<string>MCXToProfile: com.google.Chrome</string>
<key>PayloadIdentifier</key>
<string>com.google.Chrome</string>
<key>PayloadOrganization</key>
<string></string>
<key>PayloadRemovalDisallowed</key>
<true/>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>7e2bec75-299e-44ff-b405-628007abffff</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>
view rawcom.google.Chrome.mobileconfig hosted with ❤ by GitHub
  1. Add the extension ID to line 19, delete line 20 and 21 if you don’t need it. Save.
  2. Double click to import this policy.
  3. REBOOT

References

https://steemit.com/chrome/@free1x/chrome

http://xclient.info/a/1ddd2a3a-d34b-b568-c0d0-c31a95f0b309.html?_=c15d0db4b6cd8c32262ffbacc7695d50

https://gist.github.com/Explorare/be3dd598289252698cd37bca04abd0fe#file-com-google-chrome-mobileconfig

Title: Guide on Packaging and Import 3rd party plugins to Chrome

Author: Tuski

Published: 03/02/2018 - 10:58:40

Updated: 03/03/2018 - 00:23:13

Link: http://www.perphet.com/2018/03/Guide-on-Packaging-and-Import-3rd-party-plugins-to-Chrome/

Protocol: Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) Reprinted please keep the original link and author

Thx F Sup