Blocking 3rd party before consent: allow styling of the iframe
christophe lestienne
When blocking e.g. an iframe from a YouTube embedding, we can use the alt or data-alt-img attributes to let the user know that this functionality requires his consent
However this content is not styled at all
Would it be possible to inject the same custom styles as in the main page inside this iframe, and give the body an id or a class to ease the styling.
Thx!
Jānis Elmeris
We're using a custom code modification for blocking iframes, and in case of blocked video iframes we're displaying static video thumbnails as links to the actual video (optional for each video; for example, using some "data-alt-img" and "data-alt-url" attributes).
So, if Cookie Script is developing/improving iframe blocking functionality, this kind of alternative image/link option could be considered as well.