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

[Bug] Stealth Plugin Maximizing Ads #395

Closed
NicTron1 opened this issue Dec 14, 2020 · 2 comments
Closed

[Bug] Stealth Plugin Maximizing Ads #395

NicTron1 opened this issue Dec 14, 2020 · 2 comments
Labels
issue: bug report A bug has been reported needs triage

Comments

@NicTron1
Copy link

NicTron1 commented Dec 14, 2020

The other day I decided to migrate over to the stealth plugin because my script was being detected. However, every time my script would go to various electronics websites, it would maximize advertisements. I thought it was my code at first, but after creating a new script that just goes to the URL, the same behavior is observed. I could just be missing something as I am new to stealth, and puppeteer plugins in general. Using the AdBlock plugin fixes this, but then clashes with block-resources plugin.

@NicTron1 NicTron1 added issue: bug report A bug has been reported needs triage labels Dec 14, 2020
@Niek
Copy link
Collaborator

Niek commented Dec 14, 2020

Can you try to disable the iFrame content window evasion?

const pluginStealth = require('puppeteer-extra-plugin-stealth')()
pluginStealth.enabledEvasions.delete('iframe.contentWindow')
puppeteer.use(pluginStealth)

This evasion is known to cause issues with ad systems. See also: #137

@NicTron1
Copy link
Author

That fixed it, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug report A bug has been reported needs triage
Projects
None yet
Development

No branches or pull requests

2 participants