ghostery / adblocker

Efficient embeddable adblocker library
https://www.ghostery.com
Mozilla Public License 2.0
794 stars 101 forks source link

[adblocker-webextension] youtube.com is broken #3563

Closed romkaC closed 2 months ago

romkaC commented 11 months ago

Hello, I tried adding ublock's quick-fixes filterlist to the adblocker-webextension-example to bypass new Youtube anti-adblock detection, but it seems that it breaks youtube instead. I'm seeing the following errors in the console:

image
chrmod commented 11 months ago

Thank you for the report. We are aware of the problem - in a gist, the scriplets arguments include escape sequences like \( which should be considered raw strings but are evaluated during scriptlet injection.

On the Ghostery side we've encoded the those escape sequences to unicode characters which by-pass the issue. We are working on a proper fix in the adblocker library. Realistically it should go live next week.

chrmod commented 2 months ago

All problems with scriptlet injections should be gone by now.