cavi-au / Consent-O-Matic

Browser extension that automatically fills out cookie popups based on your preferences
Other
2.53k stars 123 forks source link

Add ability for parent element to be a shadow DOM and create rule for DPG Media #435

Closed guus-frenken closed 4 months ago

guus-frenken commented 4 months ago

This PR adds support for the parent element to be a shadow DOM/ShadowRoot.

This PR also adds a rule for a number of brands owned by DPG Media that use the consent popup variant that lives in a shadow DOM.

This rule is confirmed to work on at least the following websites:

https://www.gaspedaal.nl https://www.autotrack.nl

svnhub commented 4 months ago

Simple and elegant way to support shadow DOM. It will be up to the rule writers to split queries that enter into shadow into the two halves.

Will accept this as-is for now - have some additions to it that should arrive later today too (docs, handling the case where Tools.js base is set).