carbonyl
carbonyl copied to clipboard
Script inject to web page ?
Hi, I try to using Carbonyl to replace PhantomJS as headless browser run in terminal. It's there anyway to access Carbonyl Chromium Developer Console from terminal or anyway to inject JS to webpage ?
Thanks in advance,
Sure can! Carbonyl is based on Chrome headless, so you can use the --remote-debugging-port
command line argument to enable the remote DevTools:
docker run -ti -p 9222:9222 fathyb/carbonyl https://youtube.com \
--remote-debugging-port=9222 \
--remote-debugging-address=0.0.0.0
On Chrome, go to chrome://inspect
, you should see the webpage opened in Carbonyl, click Inspect
to open the devtools.