Allow youtube-nocookie.com for embedded youtube videos #422

Closed
opened 2026-01-29 14:36:20 +00:00 by claunia · 2 comments
Owner

Originally created by @peterdongan on GitHub (Jan 17, 2021).

This is a great project.

I was wondering if you might add support for youtube-nocookie.com for embedded videos?

Embedded YouTube videos set a number of tracking cookies when the page is opened when the default URI. However if you use youtube-nocookie then it doesn't set these tracking cookies. This is to facilitate compliance with GDPR regulations in the EU.

Originally created by @peterdongan on GitHub (Jan 17, 2021). This is a great project. I was wondering if you might add support for youtube-nocookie.com for embedded videos? Embedded YouTube videos set a number of tracking cookies when the page is opened when the default URI. However if you use youtube-nocookie then it doesn't set these tracking cookies. This is to facilitate compliance with GDPR regulations in the EU.
claunia added the question label 2026-01-29 14:36:20 +00:00
Author
Owner

@xoofx commented on GitHub (Jan 17, 2021):

This is what I get when accessing github-nocookie.com on https, doesn't look like mainstream:

image

You can do that on your own in your project by implementing a IHostProvider with the medialink extension, so there is no need to add a specific handling for this provider.

@xoofx commented on GitHub (Jan 17, 2021): This is what I get when accessing github-nocookie.com on https, doesn't look like mainstream: ![image](https://user-images.githubusercontent.com/715038/104853355-90d9d880-5900-11eb-8e6a-7fde1beb5f45.png) You can do that on your own in your project by implementing a [`IHostProvider`](https://github.com/xoofx/markdig/blob/master/src/Markdig/Extensions/MediaLinks/IHostProvider.cs) with the medialink extension, so there is no need to add a specific handling for this provider.
Author
Owner

@peterdongan commented on GitHub (Jan 17, 2021):

Thanks. I'll do that.

Yeah I was confused by that too. It's official though - it's just only provided for the purpose I suggested here. You can access it on youtube by selecting Share -> Embed and selecting Enable enhanced-privacy mode.

image

@peterdongan commented on GitHub (Jan 17, 2021): Thanks. I'll do that. Yeah I was confused by that too. It's official though - it's just only provided for the purpose I suggested here. You can access it on youtube by selecting Share -> Embed and selecting Enable enhanced-privacy mode. ![image](https://user-images.githubusercontent.com/32374349/104853522-53be1800-58f9-11eb-87f6-9c2b82a13cc2.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#422