document.addEventListener('DOMContentLoaded', function () { const a = document.getElementByClassName('info-em'); a.forEach(function() { setAttribute('href', a.getAttribute('href') .replace('-', 'fo@') .replaceAll('-', '.') .replace('/', 'gemmoforest.com') .replace('to', 'mailto:in') )}; ); });