安装不在网上应用店中都谷歌浏览器插件

常见方式

  1. crx扩展文件更改后缀名为zip进行解压,然后通过开发模式下的加载已解压文件进行安装
  2. 开发模式下直接将crx文件拖入扩展插件页面

其中第二种方式,在我更新到79.0.3945.130版本时,自动禁用掉了我都插件,提示

该扩展程序未列在 Chrome 网上应用店中,并可能是在您不知情的情况下添加的。

解决方案,MacOS下通过添加描述文件允许安装指定扩展插件

描述文件

将如下内容中的dfpecdifpgegimhbebfnkoieoonnbpdl改为自己安装都插件id,然后保存为描述文件(后缀为.mobileconfig)后双击安装即可

<?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>ExtensionSettings</key>
                  <dict>
                    <key>*</key>
                    <dict>
                      <key>installation_mode</key>
                      <string>allowed</string>
                    </dict>
                    <key>dfpecdifpgegimhbebfnkoieoonnbpdl</key>
                    <dict>
                      <key>installation_mode</key>
                      <string>allowed</string>
                      <key>update_url</key>
                      <string>https://clients2.google.com/service/update2/crx</string>
                    </dict>
                  </dict>
                </dict>
              </dict>
            </array>
          </dict>
        </dict>
        <key>PayloadDisplayName</key>
        <string>Chrome ExtensionSettings installation_mode example</string>
        <key>PayloadEnabled</key>
        <true />
        <key>PayloadIdentifier</key>
        <string>com.example.Chrome.example.installation_mode</string>
        <key>PayloadType</key>
        <string>com.apple.ManagedClient.preferences</string>
        <key>PayloadUUID</key>
        <string>a5c53548-65aa-11e7-907b-a6006ad3dba0</string>
        <key>PayloadVersion</key>
        <integer>1</integer>
      </dict>
    </array>
    <key>PayloadDescription</key>
    <string>配置Chrome浏览器扩展插件的安装策略,可用于设置指定非应用商店的三方插件为白名单</string>
    <key>PayloadDisplayName</key>
    <string>Chrome ExtensionSettings installation_mode example</string>
    <key>PayloadIdentifier</key>
    <string>com.example.Chrome.example.installation_mode</string>
    <key>PayloadOrganization</key>
    <string>eoekun</string>
    <key>PayloadRemovalDisallowed</key>
    <true />
    <key>PayloadScope</key>
    <string>System</string>
    <key>PayloadType</key>
    <string>Configuration</string>
    <key>PayloadUUID</key>
    <string>33e27889678746574b5f4882e1d3985764907861895746574f95fa247c6003d0cd</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
  </dict>
</plist>

安装后

可以在chrome://policy/中查看

更多文档

  1. CHROME ENTERPRISE POLICY LIST > EXTENSIONS > EXTENSIONSETTINGS

  2. Documentation for Administrators‎ > ‎Policy Templates