diff --git a/README.md b/README.md index e9f8833..afa3758 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ Bonus: ## Supported services - AddThis +- AddToAny (feed) +- AddToAny (share) - Alexa - Clicky - Dailymotion diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index c0c285e..c7e65d1 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -24,6 +24,44 @@ tarteaucitron.services.addthis = { } }; +// addtoanyfeed +tarteaucitron.services.addtoanyfeed = { + "key": "addtoanyfeed", + "type": "social", + "name": "AddToAny (feed)", + "uri": "https://www.addtoany.com/privacy", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.addScript('//static.addtoany.com/menu/feed.js'); + }, + "fallback": function () { + "use strict"; + var id = 'addtoanyfeed'; + tarteaucitron.fallback(['a2a_dd'], tarteaucitron.engage(id)); + } +}; + +// addtoanyshare +tarteaucitron.services.addtoanyshare = { + "key": "addtoanyshare", + "type": "social", + "name": "AddToAny (share)", + "uri": "https://www.addtoany.com/privacy", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + tarteaucitron.addScript('//static.addtoany.com/menu/page.js'); + }, + "fallback": function () { + "use strict"; + var id = 'addtoanyshare'; + tarteaucitron.fallback(['a2a_dd'], tarteaucitron.engage(id)); + } +}; + // alexa tarteaucitron.services.alexa = { "key": "alexa",