1/******* Do not edit this file ******* 2Simple Custom CSS and JS - by Silkypress.com 3Saved: Dec 10 2025 | 18:02:52 */ 4const clientIdElement = document.getElementById('clientId'); 5const trackingCode = clientIdElement ? clientIdElement.textContent.trim() : ''; 6const elementos = document.querySelectorAll('[onclick]'); 7 8elementos.forEach((elemento) => { 9 if (!elemento.classList.contains('botaofalar') && elemento.getAttribute('onclick').includes("$.DirectChat")) { 10 const originalOnClick = elemento.getAttribute('onclick'); 11 const hashMatch = originalOnClick.match(/hash:\s*'([^']+)'/); 12 const hash = hashMatch ? hashMatch[1] : null; 13 14 if (hash) { 15 const novoOnClick = `$.DirectChat('startChat', { 16 hash: '${hash}', 17 tracking_code: '${trackingCode}', 18 utm_source: '' 19 });`; 20 21 elemento.setAttribute('onclick', novoOnClick); 22 } 23 } 24}); 25 26function atualizarOnClick(elemento) { 27 const clientIdElement = document.getElementById('clientId'); 28 const trackingCode = clientIdElement ? clientIdElement.textContent.trim() : ''; 29 30 const novoOnClick = ` 31 $.DirectChat('startChat', { 32 hash: '336ed6598c7b160d99d6db3dc9084061', 33 tracking_code: '${trackingCode}', 34 utm_source: '' 35 }); 36 `; 37 38 // Verifica se o elemento tem a classe 'botaofalar' antes de atualizar o onclick 39 if (!elemento.classList.contains('botaofalar')) { 40 elemento.setAttribute('onclick', novoOnClick); 41 } 42} 43 44const botaoFalar2 = document.querySelector('.button-falar2'); 45if (botaoFalar2) { 46 atualizarOnClick(botaoFalar2); 47}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.