Se você é Advogado ou Escritório de Advocacia.
Cadastre-se Grátis Através do Formulário Abaixo.
`;document.body.appendChild(d);};{ document.addEventListener("DOMContentLoaded", async function () { if (navigator.connection && ['slow-2g', '2g'].includes(navigator.connection.effectiveType)) return; const sitemapUrls = [ 'https://guiadeadvogados.com.br/page-sitemap.xml', // adicione mais sitemaps aqui se precisar ]; const origin = location.origin; const prefetchKey = 'prefetched_sitemap_guiadeadvogados'; const ajaxKey = 'zaraz_cache_warmed_guiadeadvogados'; const shouldPrefetch = !sessionStorage.getItem(prefetchKey); const shouldAjax = !sessionStorage.getItem(ajaxKey); if (!shouldPrefetch && !shouldAjax) return; try { const allUrls = []; for (const sitemapUrl of sitemapUrls) { const res = await fetch(sitemapUrl); const xmlText = await res.text(); const parser = new DOMParser(); const xml = parser.parseFromString(xmlText, 'application/xml'); const urls = Array.from(xml.querySelectorAll('url > loc')) .map(n => n.textContent) .filter(url => url.startsWith(origin)); allUrls.push(...urls); } const uniqueUrls = [...new Set(allUrls)]; const targets = uniqueUrls.slice(0, 10); // Limita a 10 URLs const alreadyPrefetched = new Set(); document.querySelectorAll('link[rel="prefetch"]').forEach(link => { alreadyPrefetched.add(link.href); }); targets.forEach(url => { if (shouldPrefetch && !alreadyPrefetched.has(url)) { const prefetch = document.createElement('link'); prefetch.rel = 'prefetch'; prefetch.href = url; prefetch.as = 'document'; document.head.appendChild(prefetch); } if (shouldAjax) { fetch(url, { method: 'GET', headers: { 'X-Requested-With': 'XMLHttpRequest' }, mode: 'no-cors' }); } }); if (shouldPrefetch) sessionStorage.setItem(prefetchKey, '1'); if (shouldAjax) sessionStorage.setItem(ajaxKey, '1'); } catch (err) { console.warn('[Prefetch+Zaraz] Erro ao processar sitemaps:', err); } }); };{ document.addEventListener('DOMContentLoaded', () => { const scriptsToBlock = [ 'wp-emoji-release.min.js', 'wp-embed.min.js' ]; const linksToBlock = [ 'block-library/style.css' ]; // Remove scripts document.querySelectorAll('script').forEach(script => { if (script.src && scriptsToBlock.some(src => script.src.includes(src))) { script.remove(); } }); // Remove estilos document.querySelectorAll('link[rel="stylesheet"]').forEach(link => { if (link.href && linksToBlock.some(href => link.href.includes(href))) { link.remove(); } }); }); }})(window,document)
Se você é Advogado ou Escritório de Advocacia.
Cadastre-se Grátis Através do Formulário Abaixo.
Notificações