Guide on Packaging and Import Baidu Exporter to Chrome


It’s been a loooooong time since the last update. Just cause I’m too lazy. X P

Chrome removed Baidu Exporter 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 Baidu Exporter with the latest build using Windows Group Policy. This solution inspired by [email protected], thanks.

Download the extension

Clone or download the latest copy of Baidu Exporter from here.

Package the extension

  1. Launch Chrome, open chrome://extensions, Pack extension.
  2. Browse the code you just downloaded, 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 load it. But \the extension will be disabled if Chrome relaunched. Also, copy the extension id to somewhere like a notepad. You will need it later. Extension ID

Apply Chrome policy using Group Policy Editor

For Mac users, scroll down to the last section. There is a better solution for you.

  1. Download the zip file of Chrome templates from here.
  2. Extract the ./Windows/adm/en-US/chrome.adm.
  3. Navigate to Start > Run: gpedit.msc. For those why running a Windows 10 or any starter or home edition, the group policy editor is not embeded by default. Follow this guide to enable it first. (Thanks @metafaniel for refering this issue.)
  4. Navigate to Local Computer Policy > Computer Configuration > Administrative Templates.
  5. Right-click Administrative Templates, and select Add/Remove Templates.
  6. Add the chrome.adm template via the dialog.
  7. Once complete, a Google / Google Chrome folder will appear under Administrative Templates if it’s not already there. If you added the ADM template on Windows 7 or 8.1, it will appear under Classic Administrative Templates / Google / Google Chrome.

Add it to whitelist

Add the extension by the following steps:

  1. Navigate to Classic Administrative Templates / Google / Google Chrome / Extensions secition. Classic Administrative Templates / Google / Google Chrome / Extensions
  2. Double click to open Configure extension installation whitelist on the right side. Configure extension installation whitelist
  3. Enable the policy and add the extenison id to the whitelist. First Second

The extension will be enabled by default after Chrome relaunched.

For Mac users

The solution for MacOS comes from [email protected], thanks.

  1. Download the following policy template.
  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. Reboot.