otsmr / cookie-banner-blocker

A cookie banner blocker that removes most cookie and newsletter popups without a blocklist.
https://addons.mozilla.org/de/firefox/addon/cookie-banner-blocker/
MIT License
13 stars 3 forks source link

Exclude invalid css names from selector #11

Closed xtnw closed 1 year ago

xtnw commented 1 year ago

Some sites like stackoverflow.com include invalid CSS identifiers in their class names, thus making Firefox not recognise the selector, and, thus, not hide the popup.

This patch fixes it by only including valid CSS identifiers