旧 Chrome 插件清单:无法识别的清单密钥 'plugins'

Old Chrome plugin manifest: Unrecognized manifest key 'plugins'

我有一个 Chrome 插件,我想在当前 Chrome 版本上使用,但不幸的是,在安装时,我收到以下错误:

Unrecognized manifest key 'plugins'.

清单看起来像

{
  ...
  "plugins": [
    { "path": "myLib.dll", "public": true }
  ]  
}

我假设 Chrome 插件的构建方式或允许和不允许的方式发生了变化。如何将使用 plugins 作为清单中的键的旧格式调用 *.dll 文件转换为新的正确方式?

您不能再使用 NPAPI 插件了。您必须将其替换为 JavaScript 或 WebAssembly。

https://developer.chrome.com/extensions/npapi:

In September 2014, all existing NPAPI-based Apps and Extensions will be unpublished

https://www.chromium.org/developers/npapi-deprecation:

In September 2015 (Chrome 45) … NPAPI support will be permanently removed from Chrome. Installed extensions that require NPAPI plugins will no longer be able to load those plugins.