Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's a fork in the sense that it patches Chromium. More accurately difference is in this case the rendering happens by hooking a new capture device to the graphics library utilized by Chrome whereas browsh utilizes a webext which communicates with a background process (thus theoretically* could be browser-independent but currently only supports Firefox).

*Issue is Chrome doesn't support extensions in headless mode.



There is a workaround to headless mode with extensions - run Chrome in Xvfb and make screenshots using Chrome DevTools Protocol:

`xvfb-run --server-args="-screen 0 1920x1080x24" google-chrome --remote-debugging-port=9222 --disable-gpu http://example.org`




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: