TL;DR
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 ungrown@Github, thanks.
Download the extension
Clone or download the latest copy of Baidu Exporter from here.
Package the extension
This step is unnecessary if you have the complied version.
Launch Chrome, open
chrome://extensions, clickPack extensionon top-left.Browse the code you just downloaded, click
Pack Extension.The newly built extension will be found in the source folder with a
*.pemfile, keep them all, you will need that.pemfile if you want to update the extension in the furture.Drag the
*.crxfile to thechrome://extensionpage to install it. Select theDeveloper 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.
Download the zip file of Chrome templates from here.
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/.
- Press
Win+Rand run:gpedit.msc. A sub-folder namedGoogle / Google Chromecan be found underLocal 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:
Navigate to
Administrative Templates / Google / Google Chrome / Extensionssection.Double click to open
Configure extension installation whiteliston the right side.Enable the policy and click
Show...to add the extension ID.
The extension will be enabled by default after Chrome relaunched.
For MacOS Users
The solution for MacOS came from tofuliang@Github, thanks.
- Download the following policy template.
Add the extension ID to line 19, delete line 20 and 21 if you don’t need it. Save.
Double click to import this policy.
Reboot.