// Find the phone link element using the specific classes
const phoneLink = document.querySelector('a.contact-tracking.phone.notranslate');
if (phoneLink) {
// Extract the phone number from the href attribute
const phoneNumber = phoneLink.getAttribute('href').replace('tel:', '');
// Create WhatsApp URL (remove any non-digit characters except +)
const cleanNumber = phoneNumber.replace(/[^\d+]/g, '');
const whatsappUrl = `https://wa.me/${cleanNumber}`;
// Update the link
phoneLink.setAttribute('href', whatsappUrl);
phoneLink.setAttribute('target', '_blank');
// Optional: Update classes to reflect the change
phoneLink.classList.remove('phone');
phoneLink.classList.add('whatsapp');
console.log(`Converted phone link to WhatsApp: ${whatsappUrl}`);
} else {
console.log('Phone link with classes contact-tracking, phone, notranslate not found');
}