解决Chrome安装BaiduExporter每次开启都提示禁用

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.

  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.
 
原文:https://hencolle.com/2016/10/16/baidu_exporter/

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注