Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load unpacked Chrome extension programmatically

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

like image 781
wildeyes Avatar asked Dec 26 '13 09:12

wildeyes


People also ask

How do I fix error loading unpacked extensions is disabled by the administrator?

The fix would be to talk to your IT team and find out why they have blacklisted chrome extensions, you will need them to delete them, restart your machine and run the test case again. It should be able to launch the chrome browser successfully this time.

How do I install an extension without chrome Web Store?

There's however an easy workaround to this problem. First download the CRX file of any Chrome extension /web-app to your computer. Then click the Settings icon in Chrome (previously a Wrench icon) and go to Tools -> Extensions. Drag and drop the CRX file on this page and Chrome will gladly install the add-on.


1 Answers

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.

like image 140
Rob W Avatar answered Sep 17 '22 12:09

Rob W