the-markup / blacklight-collector

GNU General Public License v3.0
195 stars 36 forks source link

Which browsers are possible to use #78

Closed EvilWatermelon closed 9 months ago

EvilWatermelon commented 9 months ago

I've looked into the doc of puppeteer link and I can't find a list of devices/browsers. When passing Firefox as the user-agent then blacklight opens chromium? Is it possible to use different browsers or just different devices?

simonft commented 9 months ago

The user-agent of a browser identifies what the browser claims to be, but it can be changed by the client without actually changing the software used to browse. The user agent parameter to blacklight just changes that string, it doesn't actually change the browser being used (which isn't currently supported).

You can change the actual user agent string to anything you want though. MDN has some examples. Note that the browser will still behave like Chromium.

EvilWatermelon commented 9 months ago

Oh ok, I see. Thanks.