Skip to content

The ad-block feature stopped working with Chrome / chromedriver 133 #3504

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

Closed
mdmintz opened this issue Feb 11, 2025 · 2 comments · Fixed by #3508
Closed

The ad-block feature stopped working with Chrome / chromedriver 133 #3504

mdmintz opened this issue Feb 11, 2025 · 2 comments · Fixed by #3508
Assignees
Labels
bug Uh oh... Something needs to be fixed workaround exists You can reach your destination if you do this...

Comments

@mdmintz
Copy link
Member

mdmintz commented Feb 11, 2025

The ad-block feature stopped working with Chrome / chromedriver 133


This is a feature activated via: ad_block=True / --ad-block. It stopped working recently because Chrome / chromedriver 133 has dropped support for Manifest-V2 extensions. (People have to use Manifest-V3 extensions now.)

The temporary workaround is to set driver_version=132 / --driver-version=132.

The permanent workaround likely involves implementing something like https://www.youtube.com/watch?v=H3vFL_O_0Lo ("Build an AD BLOCKER Chrome Extension in Less Than 10 Minutes")

Even Google can agree that clicking on ads via automation is not good (click-fraud), so it's in everyone's best interests to get a new ad-blocker working in Manifest V3 for SeleniumBase so that automated scripts don't accidentally click on ads. (It's not likely that automation would click those deliberately, unless people specify the wrong selectors or too-broad ones such as "iframe".)

@mdmintz mdmintz added bug Uh oh... Something needs to be fixed workaround exists You can reach your destination if you do this... labels Feb 11, 2025
@mdmintz mdmintz self-assigned this Feb 11, 2025
@mdmintz
Copy link
Member Author

mdmintz commented Feb 12, 2025

@mdmintz
Copy link
Member Author

mdmintz commented Feb 12, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Uh oh... Something needs to be fixed workaround exists You can reach your destination if you do this...
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant