Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: how to use this library with Peuppeteer? #421

Open
zirkelc opened this issue Apr 22, 2024 · 2 comments
Open

Question: how to use this library with Peuppeteer? #421

zirkelc opened this issue Apr 22, 2024 · 2 comments

Comments

@zirkelc
Copy link

zirkelc commented Apr 22, 2024

Hi,

I stumbled upon this library via this post. The post seems to be a bit outdated as the library has changed, for example it doesn't export the @duckduckgo/autoconsent/dist/autoconsent.puppet.js any longer.

Is there an official how-to guide on how to use this library with Puppeteer? Or at least some up-tp-date code example?

@muodov
Copy link
Member

muodov commented Apr 22, 2024

@zirkelc there's no "official" guide, but you basically need to hook into the messaging API.
There's a module in the tracker-radar-collector project, that might be helpful. It's up to date, but I'm guessing you'd need to modify it to your needs.

@zirkelc
Copy link
Author

zirkelc commented Apr 22, 2024

@muodov thank you for the quick response. I was actually hoping it would be easier to get it to work with Puppeteer 😢

I will check out the mentioned project, it looks like a good start point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants