eleventy-plugin-embed-everything icon indicating copy to clipboard operation
eleventy-plugin-embed-everything copied to clipboard

Support `youtube-nocookie.com` in the URL pattern

Open xplosionmind opened this issue 1 year ago • 2 comments

Since this plugin automatically detects YouTube URLs, it would be great if the link of a video already added from youtube-nocookie.com could be detected!

xplosionmind avatar Jan 06 '25 11:01 xplosionmind

Hm, I'd want to ponder this one a bit. youtube-nocookie.com is generally only used when you're already the context of embedding a video. Can you tell me a little more about your use case? At first glance it feels a bit niche, and my concern is adding another domain check is a risk for RegExp performance.

gfscott avatar Jan 09 '25 00:01 gfscott

Hi @gfscott! I suggested it simply because as YouTube privacy policies and practices worsen every day, I try to always use the most private option by default. Therefore, also when sharing simple YouTube links to people via chat, I always use youtube-noccokie. I think it can be very useful also to click the link from the source code, and have a clean interface.

xplosionmind avatar Feb 13 '25 14:02 xplosionmind