christopherwk210 / site-scan

CLI for capturing website screenshots, powered by puppeteer.
MIT License
136 stars 13 forks source link

Inject Puppeteer Code? #7

Open hubertron opened 6 years ago

hubertron commented 6 years ago

Is there a way to inject puppeteer code through the CLI? For example I would like to use this:

waitUntil: 'domcontentloaded'

as some of my dev sites I use this on time out and I would rather wait till its fully loaded before assuming timeout.

Thanks!

christopherwk210 commented 6 years ago

hmm well a flag could definitely be added for that specifically! Code injection might be a little beyond the scope of this project. I'm open to ideas though, do you have anything specific in mind for how that would work?