From d29c991b9d1bf0a75e4300f3bbc72f9108ed6727 Mon Sep 17 00:00:00 2001
From: GeekCorner <45696571+GeekCornerGH@users.noreply.github.com>
Date: Sun, 27 Jun 2021 18:17:24 +0200
Subject: [PATCH] Ajout de divers services
- [x] Discord
- [x] Google Maps (sans api)
- [x] hCaptcha
- [x] France Culture
- [x] Acast
- [x] Mixcloud
- [x] Google Agenda
- [x] Google Docs
- [x] Google Sheets
- [x] Google Slides
- [x[ Google Forms
- [x] Google Docs
---
tarteaucitron.services.js | 281 ++++++++++++++++++++++++++++++++++++++
1 file changed, 281 insertions(+)
diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js
index 864e004..a5a41ee 100644
--- a/tarteaucitron.services.js
+++ b/tarteaucitron.services.js
@@ -4331,3 +4331,284 @@ tarteaucitron.services.bandcamp = {
});
}
};
+
+
+// Discord Widget
+tarteaucitron.services.discord = {
+ "key": "discord",
+ "type": "social",
+ "name": "Discord (Server Widget)",
+ "needConsent": true,
+ "cookies": ["__cfruid", "__dcfduid", "_ga", "_gcl_au", "OptanonConsent", "locale", "_gid"],
+ "uri": "https://discord.com/privacy",
+ "js": function () {
+ "use strict";
+ tarteaucitron.fallback(['discord_widget'], function (x) {
+ var id = x.getAttribute("guildID"),
+ width = x.getAttribute("width"),
+ height = x.getAttribute("height")
+ var widgetURL = "https://discord.com/widget?id=" + id;
+ return "";
+ });
+ },
+ "fallback": function () {
+ "use strict";
+ var id = 'discord';
+ tarteaucitron.fallback(['discord_widget'], function (elem) {
+ elem.style.width = elem.getAttribute('width') + 'px';
+ elem.style.height = elem.getAttribute('height') + 'px';
+ return tarteaucitron.engage(id);
+ });
+ }
+};
+
+// Google Maps
+tarteaucitron.services.maps_noapi = {
+ "key": "maps_noapi",
+ "type": "other",
+ "name": "Google Maps",
+ "needConsent": true,
+ "cookies": ["NID", "OGPC", "1P_JAR", "CONSENT"],
+ "uri": "https://policies.google.com/privacy",
+ "js": function () {
+ "use strict";
+ tarteaucitron.fallback(['googlemaps_embed'], function (x) {
+ var id = x.getAttribute("id"),
+ width = x.getAttribute("width"),
+ height = x.getAttribute("height")
+ var widgetURL = "https://google.com/maps/embed?pb=" + id;
+ return "";
+ });
+ },
+ "fallback": function () {
+ "use strict";
+ var id = 'maps_noapi';
+ tarteaucitron.fallback(['googlemaps_embed'], function (elem) {
+ elem.style.width = elem.getAttribute('width') + 'px';
+ elem.style.height = elem.getAttribute('height') + 'px';
+ return tarteaucitron.engage(id);
+ });
+ }
+};
+
+// hCaptcha
+tarteaucitron.services.hcaptcha = {
+ "key": "hcaptcha",
+ "type": "other",
+ "name": "hCaptcha",
+ "needConsent": true,
+ "cookies": [],
+ "uri": "https://www.hcaptcha.com/privacy",
+ "js": function() {
+ "use strict";
+ tarteaucitron.fallback(["h-captcha"], '');
+ tarteaucitron.addScript("https://hcaptcha.com/1/api.js", "hcaptcha")
+ },
+ "fallback": function() {
+ "use strict";
+ var id = "hcaptcha";
+ tarteaucitron.fallback(["h-captcha"], tarteaucitron.engage(id));
+ }
+};
+
+// France Culture
+tarteaucitron.services.fculture = {
+ "key": "fculture",
+ "type": "video",
+ "name": "France Culture",
+ "needConsent": true,
+ "cookies": ["_gid", "didomi_token", "outbrain_cid_fetch", "xtvrn", "xtant", "YSC", "ABTasty", "xtan", "ABTastySession", "xtidc", "_ga", "VISITOR_INFO1_LIVE", "euconsent-v2", "v1st", "dmvk", "ts", "VISITOR_INFO1_LIVE", "YSC"],
+ "uri": "https://www.radiofrance.com/politique-d-utilisation-des-cookies-sur-les-sites-internet-du-groupe-radio-france",
+ "js": function() {
+ "use strict";
+ tarteaucitron.fallback(['fculture_embed'], function (x) {
+ var id = x.getAttribute('id'),
+ width = x.getAttribute('width'),
+ height = x.getAttribute('height');
+ return ""
+ });
+ },
+ "fallback": function() {
+ "use strict";
+ var id = "fculture";
+ tarteaucitron.fallback(["fculture_embed"], tarteaucitron.engage(id));
+ }
+};
+
+// Acast
+tarteaucitron.services.acast = {
+ "key": "acast",
+ "type": "video",
+ "name": "Acast",
+ "needConsent": true,
+ "cookies": ["intercom-id-ayi0335i", "intercom-session-ayi0335i"],
+ "uri": "https://www.acast.com/en/privacy",
+ "js": function() {
+ "use strict";
+ tarteaucitron.fallback(['acast_embed'], function (x) {
+ var id = x.getAttribute('id1'),
+ id2 = x.getAttribute('id2'),
+ width = x.getAttribute('width'),
+ height = x.getAttribute('height'),
+ seek = x.getAttribute('seek');
+ var widgetURL = `https://embed.acast.com/${id}/?seek=${seek}`
+ return ``;
+ });
+ },
+ "fallback": function() {
+ "use strict";
+ var id = "acast";
+ tarteaucitron.fallback(["acast_embed"], tarteaucitron.engage(id));
+ }
+};
+
+// Mixcloud
+tarteaucitron.services.mixcloud = {
+ "key": "mixcloud",
+ "type": "video",
+ "name": "Mixcloud",
+ "needConsent": true,
+ "cookies": ["UID", "_gat", "__stripe_mid", "_gid", "_ga", "c", "csrftoken", "__stripe_sid", "mx_t"],
+ "uri": "https://www.mixcloud.com/privacy/",
+ "js": function() {
+ "use strict";
+ tarteaucitron.fallback(['mixcloud_embed'], function (x) {
+ var id = x.getAttribute('id'),
+ hidecover = x.getAttribute('hidecover'),
+ mini = x.getAttribute('mini'),
+ light = x.getAttribute('light'),
+ width = x.getAttribute('width'),
+ height = x.getAttribute('height');
+ return ``;
+ });
+ },
+ "fallback": function() {
+ "use strict";
+ var id = "mixcloud";
+ tarteaucitron.fallback(["mixcloud_embed"], tarteaucitron.engage(id));
+ }
+};
+
+// Google Agenda
+tarteaucitron.services.gagenda = {
+ "key": "gagenda",
+ "type": "other",
+ "name": "Google Agenda",
+ "needConsent": true,
+ "cookies": ["CONSENT", "NID"],
+ "uri": "https://policies.google.com/privacy",
+ "js": function() {
+ "use strict";
+ tarteaucitron.fallback(['gagenda_embed'], function (x) {
+ var calendar_data = x.getAttribute('data'),
+ width = x.getAttribute('width'),
+ height = x.getAttribute('height');
+ return ``;
+ });
+ },
+ "fallback": function() {
+ "use strict";
+ var id = "gagenda";
+ tarteaucitron.fallback(["gagenda_embed"], tarteaucitron.engage(id));
+ }
+};
+
+// Google Docs
+tarteaucitron.services.gdocs = {
+ "key": "gdocs",
+ "type": "other",
+ "name": "Google Docs",
+ "needConsent": true,
+ "cookies": ["CONSENT", "NID"],
+ "uri": "https://policies.google.com/privacy",
+ "js": function() {
+ "use strict";
+ tarteaucitron.fallback(['gdocs_embed'], function (x) {
+ var id = x.getAttribute('id'),
+ width = x.getAttribute('width'),
+ height = x.getAttribute('height');
+ return ``;
+ });
+ },
+ "fallback": function() {
+ "use strict";
+ var id = "gdocs";
+ tarteaucitron.fallback(["gdocs_embed"], tarteaucitron.engage(id));
+ }
+};
+
+// Google Sheets
+tarteaucitron.services.gsheets = {
+ "key": "gsheets",
+ "type": "other",
+ "name": "Google Sheets",
+ "needConsent": true,
+ "cookies": ["CONSENT", "NID"],
+ "uri": "https://policies.google.com/privacy",
+ "js": function() {
+ "use strict";
+ tarteaucitron.fallback(['gsheets_embed'], function (x) {
+ var id = x.getAttribute('id'),
+ width = x.getAttribute('width'),
+ height = x.getAttribute('height'),
+ headers = x.getAttribute('headers');
+ return ``;
+ });
+ },
+ "fallback": function() {
+ "use strict";
+ var id = "gsheets";
+ tarteaucitron.fallback(["gsheets_embed"], tarteaucitron.engage(id));
+ }
+};
+
+// Google Slides
+tarteaucitron.services.gslides = {
+ "key": "gslides",
+ "type": "other",
+ "name": "Google Slides",
+ "needConsent": true,
+ "cookies": ["CONSENT", "NID"],
+ "uri": "https://policies.google.com/privacy",
+ "js": function() {
+ "use strict";
+ tarteaucitron.fallback(['gslides_embed'], function (x) {
+ var id = x.getAttribute('id'),
+ width = x.getAttribute('width'),
+ height = x.getAttribute('height'),
+ autostart = x.getAttribute('autostart'),
+ loop = x.getAttribute('loop'),
+ delay = x.getAttribute('delay');
+ return ``;
+ });
+ },
+ "fallback": function() {
+ "use strict";
+ var id = "gslides";
+ tarteaucitron.fallback(["gslides_embed"], tarteaucitron.engage(id));
+ }
+};
+
+// Google Forms
+tarteaucitron.services.gforms = {
+ "key": "gforms",
+ "type": "other",
+ "name": "Google Forms",
+ "needConsent": true,
+ "cookies": ["CONSENT", "NID"],
+ "uri": "https://policies.google.com/privacy",
+ "js": function() {
+ "use strict";
+ tarteaucitron.fallback(['gforms_embed'], function (x) {
+ var id = x.getAttribute('id'),
+ width = x.getAttribute('width'),
+ height = x.getAttribute('height');
+ return ``;
+ });
+ },
+ "fallback": function() {
+ "use strict";
+ var id = "gforms";
+ tarteaucitron.fallback(['gforms_embed'], tarteaucitron.engage(id));
+ }
+};