Load unpacked Chrome extension programmatically

前端 未结 4 2215
广开言路
广开言路 2021-02-14 00:31

Is it possible to load and unload unpacked Chrome extensions from the Command Line?

4条回答
  •  醉酒成梦
    2021-02-14 00:53

    Yes, although only temporarily *:

    chromium --load-extension=path/to/extension
    

    If you want to load multiple extensions, just separate the path by a comma:

    chromium --load-extension=path/to/extension,path/to/another/extension
    

    Replace chromium with chrome.exe (or whatever is used to start your Chrome/Chromium browser).

    * When you close the browser, and starts it again without the command line argument, then the extension will disappear from the list of installed extensions.

提交回复
热议问题