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 transactionrecently. 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 extension
on top-left. - Browse the code you just downloaded, click
Pack Extension
. - 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. - Drag the
*.crx
file to thechrome://extension
page to install it. Select theDeveloper Mode
checkbox 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+R
and run:gpedit.msc
. A sub-folder namedGoogle / Google Chrome
can 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 / Extensions
section. - Double click to open
Configure extension installation whitelist
on the right side. - Enable the policy and click
Show...
to add the extension ID.
The extension will be enabled by default after Chrome relaunched.
原文:https://hencolle.com/2016/10/16/baidu_exporter/