Saturday, November 16, 2024

Mega update on WhatsApp: users can expect three new features

Date:

11/14/2021, 6:28 AM M. | from

Created with agency material

WhatsApp changes font size - here's how

WhatsApp users can expect a mega update. This includes three new handy features for the messenger. We summarize what to expect here.

break; } } catch(ignore) {}

if(frame === window.top) { break; }

frame = frame.parent; }

/** * Set up a __tcfapi proxy method to do the postMessage and map the callback. * From the caller's perspective, this function behaves identically to the * CMP API's __tcfapi call */

window.__tcfapi = function(cmd, version, callback, arg) { if (!cmpFrame) { callback({msg: 'CMP not found'}, false); } else { const callId = Math.random() + ''; const msg = { __tcfapiCall: { command: cmd, parameter: arg, version: version, callId: callId, }, };

cmpCallbacks[callId] = callback; cmpFrame.postMessage(msg, '*'); } };

function postMessageHandler(event) { let json = {};

try { json = typeof event.data === 'string' ? JSON.parse(event.data) : event.data; } catch (ignore) {}

const payload = json.__tcfapiReturn;

if (payload) { if (typeof cmpCallbacks[payload.callId] === 'function') { cmpCallbacks[payload.callId](payload.returnValue, payload.success); cmpCallbacks[payload.callId] = null; } } }

window.addEventListener('message', postMessageHandler, false); }()); }

function consentSpecificVendor(vendorId) { window.__tcfapi('postCustomConsent', 2, (data) => { if (data) { location.reload(); } }, [vendorId], [], []); }

function acceptFacebookConsentVendor() { consentSpecificVendor('5f1b2fbdb8e05c3057240f56'); }

function acceptInstagramConsentVendor() { consentSpecificVendor('5e7e5243b8e05c1c467daa57'); }

function acceptTwitterConsentVendor() { consentSpecificVendor('5e71760b69966540e4554f01'); }

function acceptYoutubeConsentVendor() { consentSpecificVendor('5e7ac3fae30e7d1bc1ebf5e8'); }

function acceptTrackdelightConsentVendor() { consentSpecificVendor('5e77acddd8d48d795087425b'); }

function acceptTikTokConsentVendor() { consentSpecificVendor('5e7f6927b8e05c4e491e7380'); }

function acceptTwitchConsentVendor() { consentSpecificVendor('5ec462c02330505ab89fbb3b'); }

function acceptVimeoConsentVendor() { consentSpecificVendor('5eac148d4bfee33e7280d13b'); }

window.__tcfapi('addEventListener', 2, function(tcData) { if (tcData.eventStatus === 'tcloaded' || tcData.eventStatus === 'useractioncomplete') { window.__tcfapi('getCustomVendorConsents', 2, function(vendorConsents, success) {

let vendorConsented = false; vendorConsents.consentedVendors.forEach(vendor => { if (vendor && vendor._id === '5e71760b69966540e4554f01') { vendorConsented = true; } });

if (success && vendorConsented) { const rootElement = document.getElementById('chip-widgets-twitter-6190bcbdad7a1'); const thirdPartyScripts = { twitter: 'https://platform.twitter.com/widgets.js', facebook: 'https://connect.facebook.net/de_DE/sdk.js#xfbml=1&version=v2.6', trackdelight: 'https://scripts.tracdelight.io/tracdelight.js?accesskey=7a4942c4d62b262ad8303aaa50708d78', instagram: '//www.instagram.com/embed.js', tikTok: 'https://www.tiktok.com/embed.js', };

for (let i=0; i < rootElement.childNodes.length; i++) { // nodeType 8 is HTML Comment if (rootElement.childNodes[i].nodeType == 8) { rootElement.innerHTML = rootElement.childNodes[i].data.trim(); if (thirdPartyScripts.hasOwnProperty('twitter')) { const script = document.createElement("script"); script.src = thirdPartyScripts['twitter']; script.async = true; script.defer = true; rootElement.appendChild(script); } } } } }); window.__tcfapi('removeEventListener', 2, function(success) {}, tcData.listenerId); } });

Ebenezer Robbins
Ebenezer Robbins
Introvert. Beer guru. Communicator. Travel fanatic. Web advocate. Certified alcohol geek. Tv buff. Subtly charming internet aficionado.

Share post:

Popular

More like this
Related

Practice Acrylic Nail Techniques Without Needing a Fake Hand

When you're starting your journey with acrylic nails, practice...

Inside the World of Common Snapping Turtles: Behavior and Habitat

The common snapping turtle (Chelydra serpentina) is one of...

How to Use Video Marketing to Promote B2C Products?

Video marketing has emerged as a powerful tool for...

Adapting to Change: The Future for Leopard Tortoise Environments

Leopard tortoises, known for their striking spotted shells and...