|
@@ -12,11 +12,12 @@ tarteaucitron.services.iframe = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['tac_iframe'], function (x) {
|
|
|
- var width = x.getAttribute("width"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title")),
|
|
|
+ width = x.getAttribute("width"),
|
|
|
height = x.getAttribute("height"),
|
|
|
url = x.getAttribute("data-url");
|
|
|
|
|
|
- return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
|
|
|
+ return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
|
|
|
});
|
|
|
},
|
|
|
"fallback": function () {
|
|
@@ -30,6 +31,28 @@ tarteaucitron.services.iframe = {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+// pardot
|
|
|
+tarteaucitron.services.pardot = {
|
|
|
+ "key": "pardot",
|
|
|
+ "type": "analytic",
|
|
|
+ "name": "Pardot",
|
|
|
+ "uri": "https://www.salesforce.com/company/privacy/full_privacy/",
|
|
|
+ "needConsent": true,
|
|
|
+ "cookies": ['visitor_id'],
|
|
|
+ "js": function () {
|
|
|
+ "use strict";
|
|
|
+ if (tarteaucitron.user.piAId === undefined || tarteaucitron.user.piCId === undefined) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ window.piAId = tarteaucitron.user.piAId;
|
|
|
+ window.piCId = tarteaucitron.user.piCId;
|
|
|
+ window.piHostname = 'pi.pardot.com';
|
|
|
+
|
|
|
+ tarteaucitron.addScript('https://pi.pardot.com/pd.js');
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
// xandr universal pixel
|
|
|
// https://docs.xandr.com/bundle/invest_invest-standard/page/topics/universal-pixel-overview.html
|
|
|
tarteaucitron.services.xandr = {
|
|
@@ -156,11 +179,12 @@ tarteaucitron.services.helloasso = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['tac_helloasso'], function (x) {
|
|
|
- var width = x.getAttribute("width"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'HelloAsso iframe'),
|
|
|
+ width = x.getAttribute("width"),
|
|
|
height = x.getAttribute("height"),
|
|
|
url = x.getAttribute("data-url");
|
|
|
|
|
|
- return '<iframe title="HelloAsso iframe" id="haWidget" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency allowfullscreen></iframe>';
|
|
|
+ return '<iframe title="' + frame_title + '" id="haWidget" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency allowfullscreen></iframe>';
|
|
|
});
|
|
|
},
|
|
|
"fallback": function () {
|
|
@@ -185,11 +209,12 @@ tarteaucitron.services.podcloud = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['tac_podcloud'], function (x) {
|
|
|
- var width = x.getAttribute("width"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'podCloud iframe'),
|
|
|
+ width = x.getAttribute("width"),
|
|
|
height = x.getAttribute("height"),
|
|
|
url = x.getAttribute("data-url");
|
|
|
|
|
|
- return '<iframe title="podCloud iframe" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency allowfullscreen></iframe>';
|
|
|
+ return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency allowfullscreen></iframe>';
|
|
|
});
|
|
|
},
|
|
|
"fallback": function () {
|
|
@@ -214,12 +239,13 @@ tarteaucitron.services.facebookpost = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['tac_facebookpost'], function (x) {
|
|
|
- var width = x.getAttribute("width"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Facebook iframe'),
|
|
|
+ width = x.getAttribute("width"),
|
|
|
height = x.getAttribute("height"),
|
|
|
url = x.getAttribute("data-url"),
|
|
|
appId = x.getAttribute("data-appid");
|
|
|
|
|
|
- return '<iframe title="Facebook iframe" src="https://www.facebook.com/plugins/post.php?href=' + encodeURIComponent(url) + '&width=' + width + '&show_text=false&appId=' + appId + '&height=' + height + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency allowfullscreen></iframe>';
|
|
|
+ return '<iframe title="' + frame_title + '" src="https://www.facebook.com/plugins/post.php?href=' + encodeURIComponent(url) + '&width=' + width + '&show_text=false&appId=' + appId + '&height=' + height + '" width="' + width + '" height="' + height + '" scrolling="auto" allowtransparency allowfullscreen></iframe>';
|
|
|
});
|
|
|
},
|
|
|
"fallback": function () {
|
|
@@ -341,13 +367,13 @@ tarteaucitron.services.addthis = {
|
|
|
window._atr = null;
|
|
|
window._atw = null;
|
|
|
}
|
|
|
- tarteaucitron.fallback(['addthis_sharing_toolbox'], '');
|
|
|
+ tarteaucitron.fallback(['addthis_inline_share_toolbox'], '');
|
|
|
tarteaucitron.addScript('//s7.addthis.com/js/300/addthis_widget.js#pubid=' + tarteaucitron.user.addthisPubId);
|
|
|
},
|
|
|
"fallback": function () {
|
|
|
"use strict";
|
|
|
var id = 'addthis';
|
|
|
- tarteaucitron.fallback(['addthis_sharing_toolbox'], tarteaucitron.engage(id));
|
|
|
+ tarteaucitron.fallback(['addthis_inline_share_toolbox'], tarteaucitron.engage(id));
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -621,10 +647,11 @@ tarteaucitron.services.amazon = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['amazon_product'], function (x) {
|
|
|
- var amazonId = x.getAttribute("amazonid"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Amazon iframe'),
|
|
|
+ amazonId = x.getAttribute("amazonid"),
|
|
|
productId = x.getAttribute("productid"),
|
|
|
url = '//ws-eu.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=' + tarteaucitron.getLanguage().toUpperCase() + '&source=ss&ref=ss_til&ad_type=product_link&tracking_id=' + amazonId + '&marketplace=amazon®ion=' + tarteaucitron.getLanguage().toUpperCase() + '&placement=' + productId + '&asins=' + productId + '&show_border=true&link_opens_in_new_window=true',
|
|
|
- iframe = '<iframe title="Amazon iframe" style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" src="' + url + '"></iframe>';
|
|
|
+ iframe = '<iframe title="' + frame_title + '" style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" src="' + url + '"></iframe>';
|
|
|
|
|
|
return iframe;
|
|
|
});
|
|
@@ -647,12 +674,13 @@ tarteaucitron.services.calameo = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['calameo-canvas'], function (x) {
|
|
|
- var id = x.getAttribute("data-id"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Calameo iframe'),
|
|
|
+ id = x.getAttribute("data-id"),
|
|
|
width = x.getAttribute("width"),
|
|
|
height = x.getAttribute("height"),
|
|
|
url = '//v.calameo.com/?bkcode=' + id;
|
|
|
|
|
|
- return '<iframe title="Calameo iframe" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
|
|
|
+ return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
|
|
|
});
|
|
|
},
|
|
|
"fallback": function () {
|
|
@@ -851,7 +879,8 @@ tarteaucitron.services.artetv = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['artetv_player'], function (x) {
|
|
|
- var video_json = x.getAttribute("json"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Arte.tv iframe'),
|
|
|
+ video_json = x.getAttribute("json"),
|
|
|
video_width = x.getAttribute("width"),
|
|
|
video_height = x.getAttribute("height"),
|
|
|
video_frame;
|
|
@@ -860,7 +889,7 @@ tarteaucitron.services.artetv = {
|
|
|
return "";
|
|
|
}
|
|
|
|
|
|
- video_frame = '<iframe title="Arte.tv iframe" style="transition-duration: 0; transition-property: no; margin: 0 auto; position: relative; display: block; background-color: #000000;" src="https://www.arte.tv/player/v5/index.php?json_url=' + video_json + '" width="' + video_width + '" height="' + video_height + '" scrolling="no" allowfullscreen="allowfullscreen"></iframe>';
|
|
|
+ video_frame = '<iframe title="' + frame_title + '" style="transition-duration: 0; transition-property: no; margin: 0 auto; position: relative; display: block; background-color: #000000;" src="https://www.arte.tv/player/v5/index.php?json_url=' + video_json + '" width="' + video_width + '" height="' + video_height + '" scrolling="no" allowfullscreen="allowfullscreen"></iframe>';
|
|
|
return video_frame;
|
|
|
});
|
|
|
},
|
|
@@ -886,7 +915,8 @@ tarteaucitron.services.dailymotion = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['dailymotion_player'], function (x) {
|
|
|
- var video_id = x.getAttribute("videoID"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Dailymotion iframe'),
|
|
|
+ video_id = x.getAttribute("videoID"),
|
|
|
video_width = x.getAttribute("width"),
|
|
|
frame_width = 'width=',
|
|
|
video_height = x.getAttribute("height"),
|
|
@@ -911,7 +941,7 @@ tarteaucitron.services.dailymotion = {
|
|
|
if (embed_type === undefined || !['video', 'playlist'].includes(embed_type) ) {
|
|
|
embed_type = "video";
|
|
|
}
|
|
|
- video_frame = '<iframe title="Dailymotion iframe" src="//www.dailymotion.com/embed/' + embed_type + '/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' allowfullscreen></iframe>';
|
|
|
+ video_frame = '<iframe title="' + frame_title + '" src="//www.dailymotion.com/embed/' + embed_type + '/' + video_id + '?' + params + '" ' + frame_width + frame_height + ' allowfullscreen></iframe>';
|
|
|
return video_frame;
|
|
|
});
|
|
|
},
|
|
@@ -937,7 +967,8 @@ tarteaucitron.services.datingaffiliation = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['datingaffiliation-canvas'], function (x) {
|
|
|
- var comfrom = x.getAttribute("data-comfrom"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Dating Affiliation iframe'),
|
|
|
+ comfrom = x.getAttribute("data-comfrom"),
|
|
|
r = x.getAttribute("data-r"),
|
|
|
p = x.getAttribute("data-p"),
|
|
|
cf0 = x.getAttribute("data-cf0"),
|
|
@@ -949,7 +980,7 @@ tarteaucitron.services.datingaffiliation = {
|
|
|
height = x.getAttribute("height"),
|
|
|
url = 'http://www.tools-affil2.com/rotaban/ban.php?' + comfrom;
|
|
|
|
|
|
- return '<iframe title="Dating Affiliation iframe" src="' + url + '&r=' + r + '&p=' + p + '&cf0=' + cf0 + '&langue=' + langue + '&forward_affiliate=' + forward_affiliate + '&cf2=' + cf2 + '&cfsa2=' + cfsa2 + '" width="' + width + '" height="' + height + '" marginheight="0" marginwidth="0" scrolling="no"></iframe>';
|
|
|
+ return '<iframe title="' + frame_title + '" src="' + url + '&r=' + r + '&p=' + p + '&cf0=' + cf0 + '&langue=' + langue + '&forward_affiliate=' + forward_affiliate + '&cf2=' + cf2 + '&cfsa2=' + cfsa2 + '" width="' + width + '" height="' + height + '" marginheight="0" marginwidth="0" scrolling="no"></iframe>';
|
|
|
});
|
|
|
},
|
|
|
"fallback": function () {
|
|
@@ -1027,7 +1058,8 @@ tarteaucitron.services.deezer = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['deezer_player'], function (x) {
|
|
|
- var deezer_id = x.getAttribute("deezerID"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Deezer iframe'),
|
|
|
+ deezer_id = x.getAttribute("deezerID"),
|
|
|
deezer_width = x.getAttribute("width"),
|
|
|
frame_width = 'width=',
|
|
|
deezer_height = x.getAttribute("height"),
|
|
@@ -1065,7 +1097,7 @@ tarteaucitron.services.deezer = {
|
|
|
tracklist = "true";
|
|
|
}
|
|
|
params = 'tracklist=' + tracklist + '&radius=' + radius;
|
|
|
- deezer_frame = '<iframe title="Deezer iframe" src="//widget.deezer.com/widget/' + embed_theme + '/' + embed_type + '/' + deezer_id + '?' + params + '" ' + frame_width + frame_height + ' allowfullscreen></iframe>';
|
|
|
+ deezer_frame = '<iframe title="' + frame_title + '" src="//widget.deezer.com/widget/' + embed_theme + '/' + embed_type + '/' + deezer_id + '?' + params + '" ' + frame_width + frame_height + ' allowfullscreen></iframe>';
|
|
|
return deezer_frame;
|
|
|
});
|
|
|
},
|
|
@@ -1318,7 +1350,7 @@ tarteaucitron.services.stonly = {
|
|
|
window.StonlyWidget || ((window.w = window.StonlyWidget = function() {
|
|
|
window.w._api ? window.w._api.apply(window.w, arguments) : window.w.queue.push(arguments)
|
|
|
}).queue = []);
|
|
|
-
|
|
|
+
|
|
|
tarteaucitron.addScript('https://stonly.com/js/widget/v2/stonly-widget.js?v=' + Date.now());
|
|
|
}
|
|
|
};
|
|
@@ -1665,7 +1697,7 @@ tarteaucitron.services.gtag = {
|
|
|
tarteaucitron.addScript('https://www.googletagmanager.com/gtag/js?id=' + tarteaucitron.user.gtagUa, '', function () {
|
|
|
window.gtag = function gtag(){dataLayer.push(arguments);}
|
|
|
gtag('js', new Date());
|
|
|
- gtag('config', tarteaucitron.user.gtagUa);
|
|
|
+ gtag('config', tarteaucitron.user.gtagUa, { 'anonymize_ip': true });
|
|
|
|
|
|
if (typeof tarteaucitron.user.gtagMore === 'function') {
|
|
|
tarteaucitron.user.gtagMore();
|
|
@@ -1736,13 +1768,14 @@ tarteaucitron.services.googlemapssearch = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['googlemapssearch'], function (x) {
|
|
|
- var width = x.getAttribute("width"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Google search iframe'),
|
|
|
+ width = x.getAttribute("width"),
|
|
|
height = x.getAttribute("height"),
|
|
|
// url = x.getAttribute("data-url");
|
|
|
query = escape(x.getAttribute("data-search")),
|
|
|
key = x.getAttribute("data-api-key");
|
|
|
|
|
|
- return '<iframe title="Google search iframe" width="' + width +'" height="' + height + '" style="border:0" src="https://www.google.com/maps/embed/v1/place?q='+query+'&key='+key+'" allowfullscreen></iframe> '
|
|
|
+ return '<iframe title="' + frame_title + '" width="' + width +'" height="' + height + '" style="border:0" src="https://www.google.com/maps/embed/v1/place?q='+query+'&key='+key+'" allowfullscreen></iframe> '
|
|
|
});
|
|
|
},
|
|
|
"fallback": function () {
|
|
@@ -1767,11 +1800,12 @@ tarteaucitron.services.googlemapsembed = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['googlemapsembed'], function (x) {
|
|
|
- var width = tarteaucitron.getElemWidth(x),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Google maps iframe'),
|
|
|
+ width = tarteaucitron.getElemWidth(x),
|
|
|
height = tarteaucitron.getElemHeight(x),
|
|
|
url = x.getAttribute("data-url");
|
|
|
|
|
|
- return '<iframe title="Google maps iframe" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
|
|
|
+ return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
|
|
|
});
|
|
|
},
|
|
|
"fallback": function () {
|
|
@@ -1881,27 +1915,38 @@ tarteaucitron.services.instagram = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['instagram_post'], function (x) {
|
|
|
- var post_id = x.getAttribute("postId"),
|
|
|
- embed_width = x.getAttribute("width"),
|
|
|
- frame_width = 'width=',
|
|
|
- embed_height = x.getAttribute("height"),
|
|
|
- frame_height = 'height=',
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Instagram iframe'),
|
|
|
+ post_id = x.getAttribute('postId'),
|
|
|
+ post_permalink = x.getAttribute('data-instgrm-permalink'),
|
|
|
+ embed_width = x.getAttribute('width'),
|
|
|
+ embed_height = x.getAttribute('height'),
|
|
|
+ frame_width,
|
|
|
+ frame_height,
|
|
|
post_frame;
|
|
|
|
|
|
+ if (post_permalink != null) {
|
|
|
+ tarteaucitron.addScript('//www.instagram.com/embed.js', 'instagram-embed');
|
|
|
+
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+
|
|
|
if (post_id === undefined) {
|
|
|
return "";
|
|
|
}
|
|
|
+
|
|
|
if (embed_width !== undefined) {
|
|
|
- frame_width += '"' + embed_width + '" ';
|
|
|
+ frame_width = 'width="' + embed_width + '" ';
|
|
|
} else {
|
|
|
- frame_width += '"" ';
|
|
|
+ frame_width = '"" ';
|
|
|
}
|
|
|
if (embed_height !== undefined) {
|
|
|
- frame_height += '"' + embed_height + '" ';
|
|
|
+ frame_height = 'height="' + embed_height + '" ';
|
|
|
} else {
|
|
|
- frame_height += '"" ';
|
|
|
+ frame_height = '"" ';
|
|
|
}
|
|
|
- post_frame = '<iframe title="Instagram iframe" src="//www.instagram.com/' + post_id + '/embed" ' + frame_width + frame_height + '></iframe>';
|
|
|
+
|
|
|
+ post_frame = '<iframe title="' + frame_title + '" src="//www.instagram.com/' + post_id + '/embed" ' + frame_width + frame_height + '></iframe>';
|
|
|
+
|
|
|
return post_frame;
|
|
|
});
|
|
|
},
|
|
@@ -1968,7 +2013,7 @@ tarteaucitron.services.recaptcha = {
|
|
|
} else {
|
|
|
tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad&render=' + tarteaucitron.user.recaptchaapi);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
"fallback": function () {
|
|
|
"use strict";
|
|
@@ -2142,12 +2187,13 @@ tarteaucitron.services.prezi = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['prezi-canvas'], function (x) {
|
|
|
- var id = x.getAttribute("data-id"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Prezi iframe'),
|
|
|
+ id = x.getAttribute("data-id"),
|
|
|
width = x.getAttribute("width"),
|
|
|
height = x.getAttribute("height"),
|
|
|
url = 'https://prezi.com/embed/' + id + '/?bgcolor=ffffff&lock_to_path=0&autoplay=0&autohide_ctrls=0';
|
|
|
|
|
|
- return '<iframe title="Prezi iframe" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
|
|
|
+ return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
|
|
|
});
|
|
|
},
|
|
|
"fallback": function () {
|
|
@@ -2366,12 +2412,13 @@ tarteaucitron.services.slideshare = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['slideshare-canvas'], function (x) {
|
|
|
- var id = x.getAttribute("data-id"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Slideshare iframe'),
|
|
|
+ id = x.getAttribute("data-id"),
|
|
|
width = x.getAttribute("width"),
|
|
|
height = x.getAttribute("height"),
|
|
|
url = '//www.slideshare.net/slideshow/embed_code/' + id;
|
|
|
|
|
|
- return '<iframe title="Slideshare iframe" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
|
|
|
+ return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" scrolling="no" allowtransparency allowfullscreen></iframe>';
|
|
|
});
|
|
|
},
|
|
|
"fallback": function () {
|
|
@@ -2395,7 +2442,8 @@ tarteaucitron.services.soundcloud = {
|
|
|
js: function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['soundcloud_player'], function (x) {
|
|
|
- var player_height = x.getAttribute('data-height'),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Soundcloud iframe'),
|
|
|
+ player_height = x.getAttribute('data-height'),
|
|
|
frame_height = 'height="' + player_height + '" ',
|
|
|
playable_id = x.getAttribute('data-playable-id'),
|
|
|
playable_type = x.getAttribute('data-playable-type'),
|
|
@@ -2427,7 +2475,7 @@ tarteaucitron.services.soundcloud = {
|
|
|
if (visual && visual.length > 0) qs += '&visual=' + visual;
|
|
|
if (artwork && artwork.length > 0) qs += '&show_artwork=' + artwork;
|
|
|
|
|
|
- return '<iframe title="Soundcloud iframe" width="100%" ' + frame_height + ' scrolling="no" ' + allowAutoplay + ' src="https://w.soundcloud.com/player/' + qs + '"></iframe>';
|
|
|
+ return '<iframe title="' + frame_title + '" width="100%" ' + frame_height + ' scrolling="no" ' + allowAutoplay + ' src="https://w.soundcloud.com/player/' + qs + '"></iframe>';
|
|
|
});
|
|
|
},
|
|
|
fallback: function () {
|
|
@@ -2450,7 +2498,8 @@ tarteaucitron.services.spotify = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['spotify_player'], function (x) {
|
|
|
- var spotify_id = x.getAttribute("spotifyID"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Spotify iframe'),
|
|
|
+ spotify_id = x.getAttribute("spotifyID"),
|
|
|
spotify_width = x.getAttribute("width"),
|
|
|
frame_width = 'width=',
|
|
|
spotify_height = x.getAttribute("height"),
|
|
@@ -2470,7 +2519,7 @@ tarteaucitron.services.spotify = {
|
|
|
} else {
|
|
|
frame_height += '"" ';
|
|
|
}
|
|
|
- spotify_frame = '<iframe title="Spotify iframe" src="//open.spotify.com/embed/' + spotify_id + '" ' + frame_width + frame_height + ' allowfullscreen></iframe>';
|
|
|
+ spotify_frame = '<iframe title="' + frame_title + '" src="//open.spotify.com/embed/' + spotify_id + '" ' + frame_width + frame_height + ' allowfullscreen></iframe>';
|
|
|
return spotify_frame;
|
|
|
});
|
|
|
},
|
|
@@ -2527,7 +2576,8 @@ tarteaucitron.services.timelinejs = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['timelinejs-canvas'], function (x) {
|
|
|
- var spreadsheet_id = x.getAttribute("spreadsheet_id"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Twitter iframe'),
|
|
|
+ spreadsheet_id = x.getAttribute("spreadsheet_id"),
|
|
|
width = x.getAttribute("width"),
|
|
|
height = x.getAttribute("height"),
|
|
|
lang = x.getAttribute("lang_2_letter"),
|
|
@@ -2539,7 +2589,7 @@ tarteaucitron.services.timelinejs = {
|
|
|
start_zoom = x.getAttribute("start_zoom"),
|
|
|
url = '//cdn.knightlab.com/libs/timeline/latest/embed/index.html?source=' + spreadsheet_id + '&font=' + font + '&maptype=' + map + '&lang=' + lang + '&start_at_end=' + start_at_end + '&hash_bookmark=' + hash_bookmark + '&start_at_slide=' + start_at_slide + '&start_zoom_adjust=' + start_zoom + '&height=' + height;
|
|
|
|
|
|
- return '<iframe title="Twitter iframe" src="' + url + '" width="' + width + '" height="' + height + '" allowtransparency allowfullscreen></iframe>';
|
|
|
+ return '<iframe title="' + frame_title + '" src="' + url + '" width="' + width + '" height="' + height + '" allowtransparency allowfullscreen></iframe>';
|
|
|
});
|
|
|
},
|
|
|
"fallback": function () {
|
|
@@ -2760,7 +2810,8 @@ tarteaucitron.services.vimeo = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['vimeo_player'], function (x) {
|
|
|
- var video_width = x.getAttribute("data-width") || x.getAttribute("width"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("data-title") || x.getAttribute("title") || 'Vimeo iframe'),
|
|
|
+ video_width = x.getAttribute("data-width") || x.getAttribute("width"),
|
|
|
frame_width = 'width=',
|
|
|
video_height = x.getAttribute("data-height") || x.getAttribute("height"),
|
|
|
frame_height = 'height=',
|
|
@@ -2907,7 +2958,7 @@ tarteaucitron.services.vimeo = {
|
|
|
video_qs = "";
|
|
|
}
|
|
|
|
|
|
- video_frame = '<iframe title="Vimeo iframe" src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + ' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
|
|
|
+ video_frame = '<iframe title="' + frame_title + '" src="//player.vimeo.com/video/' + video_id + video_qs + '" ' + frame_width + frame_height + ' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
|
|
|
|
|
|
return video_frame;
|
|
|
});
|
|
@@ -3059,8 +3110,8 @@ tarteaucitron.services.atinternet = {
|
|
|
"type": "analytic",
|
|
|
"name": "AT Internet (privacy by design)",
|
|
|
"uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
|
|
|
- "needConsent": false,
|
|
|
- "safeanalytic": true,
|
|
|
+ "needConsent": true,
|
|
|
+ "safeanalytic": false,
|
|
|
"cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
@@ -3077,99 +3128,32 @@ tarteaucitron.services.atinternet = {
|
|
|
}
|
|
|
|
|
|
if (typeof window.tag.privacy !== 'undefined') {
|
|
|
-
|
|
|
- document.getElementById('atinternetLine').style.display = 'none';
|
|
|
-
|
|
|
- if (tarteaucitron.cookie.read().indexOf('atinternetoptin=true') === -1 && tarteaucitron.cookie.read().indexOf('atinternetoptout=true') === -1) {
|
|
|
- window.tag.privacy.setVisitorMode('cnil', 'exempt');
|
|
|
- }
|
|
|
-
|
|
|
- tarteaucitron.addClickEventToElement(document.getElementById('atinternetDenied'), function () {
|
|
|
- tarteaucitron.launch['atinternetoptout'] = false;
|
|
|
- tarteaucitron.launch['atinternetoptin'] = false;
|
|
|
- tarteaucitron.userInterface.respond(document.getElementById('atinternetoptinDenied'), false);
|
|
|
- tarteaucitron.userInterface.respond(document.getElementById('atinternetoptoutDenied'), false);
|
|
|
- });
|
|
|
-
|
|
|
- tarteaucitron.addClickEventToElement(document.getElementById('atinternetoptoutDenied'), function () {
|
|
|
- if (tarteaucitron.cookie.read().indexOf('atinternetoptin=true') === -1 && tarteaucitron.cookie.read().indexOf('atinternetoptout=true') === -1) {
|
|
|
- window.tag.privacy.setVisitorMode('cnil', 'exempt');
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- tarteaucitron.addClickEventToElement(document.getElementById('atinternetoptinDenied'), function () {
|
|
|
- if (tarteaucitron.cookie.read().indexOf('atinternetoptin=true') === -1 && tarteaucitron.cookie.read().indexOf('atinternetoptout=true') === -1) {
|
|
|
- window.tag.privacy.setVisitorMode('cnil', 'exempt');
|
|
|
- }
|
|
|
- });
|
|
|
+ window.tag.privacy.setVisitorOptin();
|
|
|
}
|
|
|
|
|
|
- setTimeout(function() {
|
|
|
- tag.page.send();
|
|
|
- }, 70);
|
|
|
+ window.tag.page.send();
|
|
|
});
|
|
|
- }
|
|
|
-};
|
|
|
-
|
|
|
-// AT Internet (optin)
|
|
|
-tarteaucitron.services.atinternetoptin = {
|
|
|
- "key": "atinternetoptin",
|
|
|
- "type": "analytic",
|
|
|
- "name": "AT Internet",
|
|
|
- "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
|
|
|
- "needConsent": true,
|
|
|
- "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
|
|
|
- "js": function () {
|
|
|
- "use strict";
|
|
|
- tarteaucitron.launch['atinternetoptout'] = false;
|
|
|
-
|
|
|
- setTimeout(function() {
|
|
|
- tarteaucitron.userInterface.respond(document.getElementById('atinternetAllowed'), true);
|
|
|
- tarteaucitron.userInterface.respond(document.getElementById('atinternetoptoutDenied'), false);
|
|
|
- }, 50);
|
|
|
-
|
|
|
- setTimeout(function() {
|
|
|
- if (typeof window.tag.privacy !== 'undefined') {
|
|
|
- window.tag.privacy.setVisitorOptin();
|
|
|
- }
|
|
|
- }, 60);
|
|
|
-
|
|
|
- window.tarteaucitronHackNoSwitch = true;
|
|
|
- setTimeout(function() {window.tarteaucitronHackNoSwitch = false;}, 200);
|
|
|
- }
|
|
|
-};
|
|
|
-
|
|
|
-// AT Internet (optout)
|
|
|
-tarteaucitron.services.atinternetoptout = {
|
|
|
- "key": "atinternetoptout",
|
|
|
- "type": "analytic",
|
|
|
- "name": "AT Internet [minimal]",
|
|
|
- "uri": "https://helpcentre.atinternet-solutions.com/hc/fr/categories/360002439300-Privacy-Centre",
|
|
|
- "needConsent": true,
|
|
|
- "cookies": ['atidvisitor', 'atreman', 'atredir', 'atsession', 'atuserid'],
|
|
|
- "js": function () {
|
|
|
+ },
|
|
|
+ "fallback": function () {
|
|
|
"use strict";
|
|
|
-
|
|
|
- // hack accept all
|
|
|
- if (window.tarteaucitronHackNoSwitch) {
|
|
|
- setTimeout(function() {
|
|
|
- tarteaucitron.userInterface.respond(document.getElementById('atinternetoptoutDenied'), false);
|
|
|
- }, 60);
|
|
|
+ if (tarteaucitron.user.atLibUrl === undefined) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- tarteaucitron.launch['atinternetoptin'] = false;
|
|
|
+ tarteaucitron.addScript(tarteaucitron.user.atLibUrl, '', function() {
|
|
|
|
|
|
- setTimeout(function() {
|
|
|
- tarteaucitron.userInterface.respond(document.getElementById('atinternetAllowed'), true);
|
|
|
- tarteaucitron.userInterface.respond(document.getElementById('atinternetoptinDenied'), false);
|
|
|
- }, 50);
|
|
|
+ window.tag = new ATInternet.Tracker.Tag();
|
|
|
+
|
|
|
+ if (typeof tarteaucitron.user.atMore === 'function') {
|
|
|
+ tarteaucitron.user.atMore();
|
|
|
+ }
|
|
|
|
|
|
- setTimeout(function() {
|
|
|
if (typeof window.tag.privacy !== 'undefined') {
|
|
|
- window.tag.privacy.setVisitorOptout();
|
|
|
+ window.tag.privacy.setVisitorMode('cnil', 'exempt');
|
|
|
}
|
|
|
- }, 60);
|
|
|
+
|
|
|
+ window.tag.page.send();
|
|
|
+ });
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -3209,7 +3193,8 @@ tarteaucitron.services.youtube = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['youtube_player'], function (x) {
|
|
|
- var video_id = x.getAttribute("videoID"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Youtube iframe'),
|
|
|
+ video_id = x.getAttribute("videoID"),
|
|
|
video_width = x.getAttribute("width"),
|
|
|
frame_width = 'width=',
|
|
|
video_height = x.getAttribute("height"),
|
|
@@ -3230,7 +3215,7 @@ tarteaucitron.services.youtube = {
|
|
|
} else {
|
|
|
frame_height += '"" ';
|
|
|
}
|
|
|
- video_frame = '<iframe title="Youtube iframe" type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" allowfullscreen></iframe>';
|
|
|
+ video_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/' + video_id + '?' + params + '" allowfullscreen></iframe>';
|
|
|
return video_frame;
|
|
|
});
|
|
|
},
|
|
@@ -3256,7 +3241,8 @@ tarteaucitron.services.youtubeplaylist = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['youtube_playlist_player'], function (x) {
|
|
|
- var playlist_id = x.getAttribute("playlistID"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Youtube iframe'),
|
|
|
+ playlist_id = x.getAttribute("playlistID"),
|
|
|
video_width = x.getAttribute("width"),
|
|
|
frame_width = 'width=',
|
|
|
video_height = x.getAttribute("height"),
|
|
@@ -3277,7 +3263,7 @@ tarteaucitron.services.youtubeplaylist = {
|
|
|
} else {
|
|
|
frame_height += '"" ';
|
|
|
}
|
|
|
- video_frame = '<iframe title="Youtube iframe" type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" allowfullscreen></iframe>';
|
|
|
+ video_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//www.youtube-nocookie.com/embed/videoseries?list=' + playlist_id + '&' + params + '" allowfullscreen></iframe>';
|
|
|
return video_frame;
|
|
|
});
|
|
|
},
|
|
@@ -3339,7 +3325,7 @@ tarteaucitron.services.linkedininsighttag = {
|
|
|
window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
|
|
|
window._linkedin_data_partner_ids.push(tarteaucitron.user.linkedininsighttag);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
tarteaucitron.addScript('https://snap.licdn.com/li.lms-analytics/insight.min.js');
|
|
|
}
|
|
|
};
|
|
@@ -3406,7 +3392,8 @@ tarteaucitron.services.issuu = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['issuu_player'], function (x) {
|
|
|
- var issuu_id = x.getAttribute("issuuID"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Issuu iframe'),
|
|
|
+ issuu_id = x.getAttribute("issuuID"),
|
|
|
issuu_width = x.getAttribute("width"),
|
|
|
frame_width = 'width=',
|
|
|
issuu_height = x.getAttribute("height"),
|
|
@@ -3432,7 +3419,7 @@ tarteaucitron.services.issuu = {
|
|
|
if (issuu_id.match(/\d+\/\d+/)) { issuu_embed = '#' + issuu_id; } else if (issuu_id.match(/d=(.*)&u=(.*)/)) { issuu_embed = '?' + issuu_id; }
|
|
|
|
|
|
|
|
|
- issuu_frame = '<iframe title="Issuu iframe" type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html' + issuu_embed + '"></iframe>';
|
|
|
+ issuu_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="//e.issuu.com/embed.html' + issuu_embed + '"></iframe>';
|
|
|
|
|
|
return issuu_frame;
|
|
|
});
|
|
@@ -3612,14 +3599,14 @@ tarteaucitron.services.matomo = {
|
|
|
}, 100)
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
tarteaucitron.services.matomohightrack = {
|
|
|
"key": "matomohightrack",
|
|
|
"type": "analytic",
|
|
|
"name": "Matomo",
|
|
|
"uri": "https://matomo.org/faq/general/faq_146/",
|
|
|
- "needConsent": true,
|
|
|
+ "needConsent": false,
|
|
|
"cookies": ['_pk_ref', '_pk_cvar', '_pk_id', '_pk_ses', '_pk_hsr', 'piwik_ignore', '_pk_uid'],
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
@@ -3732,7 +3719,8 @@ tarteaucitron.services.matterport = {
|
|
|
"js": function () {
|
|
|
"use strict";
|
|
|
tarteaucitron.fallback(['matterport'], function (x) {
|
|
|
- var matterport_id = x.getAttribute("matterportID"),
|
|
|
+ var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title") || 'Matterport iframe'),
|
|
|
+ matterport_id = x.getAttribute("matterportID"),
|
|
|
matterport_width = x.getAttribute("width"),
|
|
|
frame_width = 'width=',
|
|
|
matterport_height = x.getAttribute("height"),
|
|
@@ -3757,7 +3745,7 @@ tarteaucitron.services.matterport = {
|
|
|
return "";
|
|
|
}
|
|
|
|
|
|
- matterport_frame = '<iframe title="Matterport iframe" type="text/html" ' + frame_width + frame_height + ' src="https://my.matterport.com/show/?m=' + matterport_id + '&utm_source=hit-content' + matterport_parameters + '" allowfullscreen="allowfullscreen"></iframe>';
|
|
|
+ matterport_frame = '<iframe title="' + frame_title + '" type="text/html" ' + frame_width + frame_height + ' src="https://my.matterport.com/show/?m=' + matterport_id + '&utm_source=hit-content' + matterport_parameters + '" allowfullscreen="allowfullscreen"></iframe>';
|
|
|
return matterport_frame;
|
|
|
});
|
|
|
},
|
|
@@ -3853,11 +3841,15 @@ tarteaucitron.services.getquanty = {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- window.webleads_site_ids = window.webleads_site_ids || [];
|
|
|
- window.webleads_site_ids.push(tarteaucitron.user.getguanty);
|
|
|
+ tarteaucitron.addScript('https://get.smart-data-systems.com/gq?site_id=' + tarteaucitron.user.getguanty + '&consent=1');
|
|
|
+ },
|
|
|
+ "fallback": function () {
|
|
|
+ "use strict";
|
|
|
+ if (tarteaucitron.user.getguanty === undefined) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
- tarteaucitron.addScript('https://stats.webleads-tracker.com/js');
|
|
|
- tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
|
|
|
+ tarteaucitron.addScript('https://get.smart-data-systems.com/gq?site_id=' + tarteaucitron.user.getguanty + '¬rack=1');
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -3934,7 +3926,7 @@ tarteaucitron.services.userlike = {
|
|
|
tarteaucitron.addScript('//userlike-cdn-widgets.s3-eu-west-1.amazonaws.com/' + tarteaucitron.user.userlikeKey);
|
|
|
}
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// adobeanalytics
|
|
|
tarteaucitron.services.adobeanalytics = {
|
|
|
"key": "adobeanalytics",
|
|
@@ -3975,3 +3967,44 @@ tarteaucitron.services.woopra = {
|
|
|
woopra.track();
|
|
|
}
|
|
|
};
|
|
|
+
|
|
|
+// ausha
|
|
|
+tarteaucitron.services.ausha = {
|
|
|
+ key: "ausha",
|
|
|
+ type: "video",
|
|
|
+ name: "Ausha",
|
|
|
+ uri: "https://www.ausha.co/protection-personal-data/",
|
|
|
+ needConsent: true,
|
|
|
+ cookies: [],
|
|
|
+ js: function () {
|
|
|
+ "use strict";
|
|
|
+ tarteaucitron.fallback(['ausha_player'], function (x) {
|
|
|
+ var player_height = x.getAttribute('data-height'),
|
|
|
+ podcast_id = x.getAttribute('data-podcast-id'),
|
|
|
+ player_id = x.getAttribute('data-player-id'),
|
|
|
+ playlist = x.getAttribute('data-playlist'),
|
|
|
+ color = x.getAttribute('data-color');
|
|
|
+
|
|
|
+ if (podcast_id === undefined) {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
+ var src = 'https://player.ausha.co/index.html?podcastId=' + podcast_id + '&v=3';
|
|
|
+
|
|
|
+ if (playlist && playlist.length > 0) src += '&playlist=' + playlist;
|
|
|
+ if (color && color.length > 0) src += '&color=' + color.replace('#', '%23');
|
|
|
+ if (player_id && player_id.length > 0) src += '&playerId=' + player_id;
|
|
|
+
|
|
|
+ return '<iframe id="' + player_id + '" loading="lazy" width="100%" height="' + player_height + '" scrolling="no" frameborder="no" src="' + src + '"></iframe>';
|
|
|
+ });
|
|
|
+
|
|
|
+ tarteaucitron.addScript('//player.ausha.co/ausha-player.js', 'ausha-player');
|
|
|
+ },
|
|
|
+ fallback: function () {
|
|
|
+ "use strict";
|
|
|
+ tarteaucitron.fallback(['ausha_player'], function (elem) {
|
|
|
+ elem.style.height = elem.getAttribute('data-height') + 'px';
|
|
|
+ return tarteaucitron.engage('ausha');
|
|
|
+ });
|
|
|
+ }
|
|
|
+};
|