How to preinstall a chrome extension on a linux headless server

前端 未结 2 1626
没有蜡笔的小新
没有蜡笔的小新 2021-01-06 14:06

I need to install a chrome extension on a headless Server. One way is using group policy. I am looking for some other way of doing this.

For Firefox I would just pl

相关标签:
2条回答
  • 2021-01-06 14:26
    • If you are installing from a file, make the .crx extension file available to the machine you want to install the extension on.
    • Create a file with the following name in one of the folders listed below: aaaaaaaaaabbbbbbbbbbcccccccccc.json where the file name (without the extension) corresponds to your extension's ID. The location depends on the operating system.

    Linux:

    /opt/google/chrome/extensions/ /usr/share/google-chrome/extensions/

    Note: Use chmod if necessary to make sure that the aaaaaaaaaabbbbbbbbbbcccccccccc.json files are world-readable.

    • Save the JSON file.
    • Launch Google Chrome and go to chrome://extensions; you should see the extension listed.

    Reference

    • Hosting
    0 讨论(0)
  • 2021-01-06 14:27

    This is exactly what I was looking for. Found the answer here.

    http://developer.chrome.com/extensions/external_extensions.html

    0 讨论(0)
提交回复
热议问题