archetyped / simple-lightbox-extensions

Feedback & Support for Simple Lightbox Extensions
https://archetyped.com/tools/simple-lightbox/
2 stars 3 forks source link

[Video / Request]: add support for youtube-nocookie (aka privacy enhanced mode) #93

Closed donbowman closed 3 years ago

donbowman commented 3 years ago

Description of feature/request

the tldr: using www.youtube-nocookie.com instead of www.youtube.com results in being able to embed w/o having cookies dropped on the user (until they take an action).

https://support.google.com/youtube/answer/171780?hl=en

in this plugin, the match looks like: '#^https?://((www\.)?youtube.com/watch.*|youtu.be/.+)#'

i think it should have (?maybe?) '#^https?:\/\/((www\.)?youtube(-nocookie)?.com\/watch.*|youtu.be\/.+)#'

This feature would be used to

archetyped commented 3 years ago

Hi, SLB displays content from links on the page, while the youtube-nocookie.com domain is only for embedding videos on a page. That domain does not support links.

As such, modifying the link URL matching expression would not apply here.