강화된 개인 정보 보호 모드로 YouTube 동영상 임베드 (youtube-nocookie.com)

At the moment Discourse embed YouTube videos with the standard URL. However, Grav rewrites URLs automatically so that it uses the YouTube privacy enhanced mode. Which doesn’t store tracking cookies when people do not play the video. This feature makes cookie/privacy policies a bit easier to write. Is this something Discourse can introduce as well?

Below is a snippet of what Grav automatically generates when inserting a YouTube video into a page. More info about this Grav plugin here.

<div class="grav-youtube-wrapper ">
  <div class="grav-youtube">
      <iframe src="https://www.youtube-nocookie.com/embed/th5KmL-tTI0?cc_load_policy=1&amp;color=white&amp;modestbranding=1&amp;rel=0" frameborder="0" allowfullscreen></iframe>
  </div>
</div>
3개의 좋아요

This is still an issue with European data protection agencies focusing on everything Google.

Would it be an idea to just change the Youtube oneboxing code to always use youtube-nocookie.com instead of youtube.com ?

Would you be accepting a PR for this? @codinghorror @sam ?

2개의 좋아요

We have considered this in the past, but it will have a negative impact on the UX. youtube-nocookie.com doesn’t link viewing activity to your YouTube account, so things like viewing history, recommendations, etc. will stop working.

Note that our YouTube onebox implementation only loads youtube iframe after the user clicks on the thumbnail, so cookies will not be set unless the user interacts with the embed.

That said, adding support for youtube-nocookie.com behind a site setting (or maybe… via a theme component - I think it should be possible :thinking:) would likely be welcome.

5개의 좋아요

A PR is always welcome! Especially if it is a setting. Thank you! :hugs:

3개의 좋아요

Sorry for reviving this. Has anything been done by someone on this feature?

youtube-nocookie.com doesn’t link viewing activity to your YouTube account, so things like viewing history, recommendations, etc. will stop working.

This is absolutely a much more desired outcome considering that on a forum you may end up watching a video linked by someone else just because you are curious and ends up with good old Youtube inundating your feed with videos of that topic.

If nothing has been done, can someone give some pointers at what should this be? A plugin ( changing how the embed if cooked into the db) or a theme component (would it even work?)

3개의 좋아요

+1 on this.

1개의 좋아요

최근에는 이 문제가 더욱 중요해졌습니다. Google이 임베딩 로직을 변경하면서, Google 계정에 로그인한 사용자는 YouTube 임베드에서 153 에러가 발생하며, 새로운 탭에서 영상을 열기 위해 임베드를 클릭해야 합니다. 예를 들어 이 Reddit 게시글을 참고하세요: Reddit

이 문제는 iframe의 링크를 youtube.com에서 youtube-nocookie.com으로 변경하여 수정할 수 있습니다. 시청 기록에 영상이 포함되지 않는다는 UX상의 단점이 있더라도, 실제로 임베드로 영상을 시청할 수 있다는 이점이 이를 훨씬 상회합니다. 따라서 임베드 링크를 이에 맞게 변환할 수 있는 옵션이 제공되면 좋겠습니다.

2개의 좋아요