From a93bd48a3e21ec2240892d0c544460dfd5a2be55 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Thu, 29 Apr 2021 18:10:16 +0200 Subject: [PATCH 01/13] Add allowfullscreen param to youtube service. Default value is allowed. --- tarteaucitron.services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 6174d79..a3e9f43 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -3282,6 +3282,7 @@ tarteaucitron.services.youtube = { video_height = x.getAttribute("height"), frame_height = 'height=', video_frame, + allowfullscreen = x.getAttribute("allowfullscreen"), attrs = ["theme", "rel", "controls", "showinfo", "autoplay", "mute", "start"], params = attrs.filter(function (a) { return x.getAttribute(a) !== null; @@ -3302,7 +3303,7 @@ tarteaucitron.services.youtube = { } else { frame_height += '"" '; } - video_frame = ''; + video_frame = ''; return video_frame; }); }, From e52df90a875c182b5925b681fb6329889054ed9a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Thu, 29 Apr 2021 18:28:34 +0200 Subject: [PATCH 02/13] Add allowfullscreen param to youtube playlist service. Default value is allowed. --- tarteaucitron.services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index a3e9f43..2e7573a 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -3336,6 +3336,7 @@ tarteaucitron.services.youtubeplaylist = { video_height = x.getAttribute("height"), frame_height = 'height=', video_frame, + allowfullscreen = x.getAttribute("allowfullscreen"), params = 'theme=' + x.getAttribute("theme") + '&rel=' + x.getAttribute("rel") + '&controls=' + x.getAttribute("controls") + '&showinfo=' + x.getAttribute("showinfo") + '&autoplay=' + x.getAttribute("autoplay") + '&mute=' + x.getAttribute("mute"); if (playlist_id === undefined) { @@ -3351,7 +3352,7 @@ tarteaucitron.services.youtubeplaylist = { } else { frame_height += '"" '; } - video_frame = ''; + video_frame = ''; return video_frame; }); }, From 8dd80450b2e582ebe3994b534eba72382cde91d9 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Thu, 29 Apr 2021 18:40:23 +0200 Subject: [PATCH 03/13] Add allowfullscreen param to vimeo service. Default value is allowed. --- tarteaucitron.services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 2e7573a..38d2ad0 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -2889,6 +2889,7 @@ tarteaucitron.services.vimeo = { frame_height = 'height=', video_id = x.getAttribute("data-videoID") || x.getAttribute("videoID"), + video_allowfullscreen = x.getAttribute("data-allowfullscreen"), video_autopause = x.getAttribute("data-autopause") || '', video_autoplay = x.getAttribute("data-autoplay") || x.getAttribute("autoplay") || '', video_background = x.getAttribute("data-background") || '', @@ -3030,7 +3031,7 @@ tarteaucitron.services.vimeo = { video_qs = ""; } - video_frame = ''; + video_frame = ''; return video_frame; }); From 3eb5a250d85e0f6e1cced7b808f0fe2e45101b57 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Thu, 29 Apr 2021 19:22:46 +0200 Subject: [PATCH 04/13] Add allowfullscreen param to matterport service. Default value is allowed. --- tarteaucitron.services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 38d2ad0..52f55a7 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -3816,6 +3816,7 @@ tarteaucitron.services.matterport = { matterport_height = x.getAttribute("height"), frame_height = 'height=', matterport_parameters = x.getAttribute("parameters"), + matterport_allowfullscreen = x.getAttribute('allowfullscreen'), matterport_frame; if (matterport_id === undefined) { @@ -3835,7 +3836,7 @@ tarteaucitron.services.matterport = { return ""; } - matterport_frame = ''; + matterport_frame = ''; return matterport_frame; }); }, From 1c943e413de43bc09aae432f68ddf5eea7d9bba4 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Thu, 29 Apr 2021 19:37:33 +0200 Subject: [PATCH 05/13] Add allowfullscreen param to web iframe service. Default value is allowed. --- tarteaucitron.services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 52f55a7..fb47e24 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -15,9 +15,10 @@ tarteaucitron.services.iframe = { var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title")), width = x.getAttribute("width"), height = x.getAttribute("height"), + allowfullscreen = x.getAttribute("allowfullscreen"), url = x.getAttribute("data-url"); - return ''; + return ''; }); }, "fallback": function () { From f8f2795d24b8e7ff098a284544c0da624545980e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Thu, 29 Apr 2021 19:48:20 +0200 Subject: [PATCH 06/13] Add allowfullscreen param to web helloasso service. Default value is allowed. --- tarteaucitron.services.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index fb47e24..d31026a 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -234,9 +234,10 @@ tarteaucitron.services.helloasso = { var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'HelloAsso iframe'), width = x.getAttribute("width"), height = x.getAttribute("height"), - url = x.getAttribute("data-url"); + url = x.getAttribute("data-url"), + allowfullscreen = x.getAttribute("allowfullscreen"); - return ''; + return ''; }); }, "fallback": function () { From 3b61ed17c883ed2d668baaa61e87cbf04c973d36 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Thu, 29 Apr 2021 19:57:40 +0200 Subject: [PATCH 07/13] Add allowfullscreen param to web podcloud service. Default value is allowed. --- tarteaucitron.services.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index d31026a..d5ec9cc 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -265,9 +265,10 @@ tarteaucitron.services.podcloud = { var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'podCloud iframe'), width = x.getAttribute("width"), height = x.getAttribute("height"), - url = x.getAttribute("data-url"); + url = x.getAttribute("data-url"), + allowfullscreen= x.getAttribute("allowfullscreen"); - return ''; + return ''; }); }, "fallback": function () { From 1202052eaeba3acc4607549e2d81713cf7833bdd Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Fri, 30 Apr 2021 10:12:22 +0200 Subject: [PATCH 08/13] Add allowfullscreen param to web facebookpost service. Default value is allowed. --- tarteaucitron.services.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index d5ec9cc..89d0114 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -293,13 +293,14 @@ tarteaucitron.services.facebookpost = { "js": function () { "use strict"; tarteaucitron.fallback(['tac_facebookpost'], function (x) { - var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Facebook iframe'), + var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Michel'), width = x.getAttribute("width"), height = x.getAttribute("height"), url = x.getAttribute("data-url"), - appId = x.getAttribute("data-appid"); + appId = x.getAttribute("data-appid"), + allowfullscreen = x.getAttribute("allowfullscreen"); - return ''; + return ''; }); }, "fallback": function () { From 2452c5b924f287febc8ebaaa117336832e4faa08 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Fri, 30 Apr 2021 10:22:03 +0200 Subject: [PATCH 09/13] Add allowfullscreen param to web calameo service. Default value is allowed. --- tarteaucitron.services.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 89d0114..c42137f 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -733,9 +733,10 @@ tarteaucitron.services.calameo = { id = x.getAttribute("data-id"), width = x.getAttribute("width"), height = x.getAttribute("height"), - url = '//v.calameo.com/?bkcode=' + id; + url = '//v.calameo.com/?bkcode=' + id, + allowfullscreen = x.getAttribute("allowfullscreen"); - return ''; + return ''; }); }, "fallback": function () { From 93ac6b3289b9e85dd681190800c719fc4d725ea9 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Fri, 30 Apr 2021 12:16:55 +0200 Subject: [PATCH 10/13] Add allowfullscreen param to web arte.tv service. Default value is allowed. --- tarteaucitron.services.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index c42137f..94c19b8 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -939,13 +939,14 @@ tarteaucitron.services.artetv = { video_json = x.getAttribute("json"), video_width = x.getAttribute("width"), video_height = x.getAttribute("height"), - video_frame; + video_frame, + video_allowfullscreen = x.getAttribute("allowfullscreen"); if (video_json === undefined) { return ""; } - video_frame = ''; + video_frame = ''; return video_frame; }); }, From cd43d9fd91715c0687b15c244568d3ac8aa90c47 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Fri, 30 Apr 2021 12:21:35 +0200 Subject: [PATCH 11/13] Add allowfullscreen param to web dailymotion service. Default value is allowed. --- tarteaucitron.services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 94c19b8..9677c37 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -980,6 +980,7 @@ tarteaucitron.services.dailymotion = { frame_height = 'height=', video_frame, embed_type = x.getAttribute("embedType"), + allowfullscreen = x.getAttribute("allowfullscreen"), params = 'info=' + x.getAttribute("showinfo") + '&autoPlay=' + x.getAttribute("autoplay"); if (video_id === undefined) { @@ -998,7 +999,7 @@ tarteaucitron.services.dailymotion = { if (embed_type === undefined || !['video', 'playlist'].includes(embed_type) ) { embed_type = "video"; } - video_frame = ''; + video_frame = ''; return video_frame; }); }, From fbcb6574966c9e6256e15407dbb9a93bbe1e757a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Fri, 30 Apr 2021 14:13:33 +0200 Subject: [PATCH 12/13] Add allowfullscreen param to deezer service. Default value is allowed. --- tarteaucitron.services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 9677c37..73d0118 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1127,6 +1127,7 @@ tarteaucitron.services.deezer = { embed_type = x.getAttribute("embedType"), radius = x.getAttribute("radius"), tracklist = x.getAttribute("tracklist"), + allowfullscreen = x.getAttribute("allowfullscreen"), params; if (deezer_id === undefined) { @@ -1155,7 +1156,7 @@ tarteaucitron.services.deezer = { tracklist = "true"; } params = 'tracklist=' + tracklist + '&radius=' + radius; - deezer_frame = ''; + deezer_frame = ''; return deezer_frame; }); }, From a43e2725f8510a8d5e7c241860e424bf9e37d7f4 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Motto Date: Fri, 30 Apr 2021 16:38:45 +0200 Subject: [PATCH 13/13] Add webkit and moz allowfullscreen compatibility for youtube and youtube playlist services. --- tarteaucitron.services.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 73d0118..6948875 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -3312,7 +3312,7 @@ tarteaucitron.services.youtube = { } else { frame_height += '"" '; } - video_frame = ''; + video_frame = ''; return video_frame; }); }, @@ -3361,7 +3361,7 @@ tarteaucitron.services.youtubeplaylist = { } else { frame_height += '"" '; } - video_frame = ''; + video_frame = ''; return video_frame; }); },