Consent to youtube videos

Any recommendation how to make youtube videos GDPR conform? Is there any best practise for modx?

Found so far:

Hello @spica8,
take a look at ConsentFriend ( You can replace iFrame autoloading like this:


thanks jens for the suggestion.
Consentfriend seems good but for me a bit overhead.
Now have tried the script posted earlier and that fits quite good.