justinribeiro / lite-youtube

The fastest little YouTube web component on this side of the internet. The shadow dom web component version of Paul's lite-youtube-embed.
https://www.npmjs.com/package/@justinribeiro/lite-youtube
MIT License
966 stars 70 forks source link

Use of youtube-nocookie for videos #21

Closed thetwopct closed 3 years ago

thetwopct commented 4 years ago

Hey, this is a nice little component, thanks very much.

I noticed that on Paul's original, he used youtube-nocookie.com to embed the videos, but couldn't see that in this code. Are there issues using the nocookie.com domain maybe (we've experienced a few oddities with it), or what was the reasoning?

Thanks!

MaluNoPeleke commented 3 years ago

I wonder the same.

abdonrd commented 3 years ago

What is the difference? Thank you!

justinribeiro commented 3 years ago

The attr nocookie enables the ability to use the youtube-nocookie domain; the domain itself doesn't set tracking cookies for youtube or doubleclick (at least it doesn't seem to in my brief testing of it, called "Enable privacy-enhanced mode." on YouTube).

https://github.com/justinribeiro/lite-youtube/commit/e23de5b0a70fb92ec933b0fd8d3e109e1fdef090#diff-c2f0c4bb74f062c99d3589cb43e6820a4cfb7f8cad9432505b663c06132fb384R272

The current default behavior is unchanged.