From 94429c10f9e317ef0c863de30ad5ddeea38935bd Mon Sep 17 00:00:00 2001 From: Maulana Kevin Pradana Date: Tue, 13 Oct 2020 11:59:14 +0700 Subject: [PATCH] fixing youtube --- dist/jquery.fancybox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/jquery.fancybox.js b/dist/jquery.fancybox.js index 806b2703..0756f5d0 100644 --- a/dist/jquery.fancybox.js +++ b/dist/jquery.fancybox.js @@ -3445,7 +3445,7 @@ // Object containing properties for each media type var defaults = { youtube: { - matcher: /(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i, + matcher: /(youtube\.com|youtu\.be)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i, params: { autoplay: 1, autohide: 1, @@ -3458,7 +3458,7 @@ }, paramPlace: 8, type: "iframe", - url: "https://www.youtube-nocookie.com/embed/$4", + url: "https://www.youtube.com/embed/$4", thumb: "https://img.youtube.com/vi/$4/hqdefault.jpg" },