I cannot use my currently installed extensions in Google Chrome using headless mode. Is there any way to enable them?
An easy way to check if the extensions work is by adding, for example, the "Comic Sans Everything" extension.
So Google looks like that:
However, if I take a screenshot of the page using the headless mode (google-chrome --headless --disable-gpu --screenshot https://www.google.com
), the result is:
EDIT: This answer is no longer correct, see https://stackoverflow.com/a/73079789/934239
No, it's not possible, and Chrome developers decided against implementing it in any near future due to complexity of the task.
If you look at that issue you may get the idea that they are still considering it due to ChromeDriver requirements - but instead they decided to make ChromeDriver work without extensions (through DevTools).