{ document.addEventListener('securitypolicyviolation', e => { const url = e.blockedURI && e.blockedURI.startsWith('http') ? new URL(e.blockedURI) : e.sourceFile && e.sourceFile.startsWith('http') ? new URL(e.sourceFile) : undefined; if (url?.hostname !== monitoredDomain) return; if (e.disposition === 'enforce') alert(`Please report to Customer Support that the 1-click updated is not working for ${location.href} because this page is blocking the loading of ${url}`); else { (window.of ?? fetch)(`https://${monitoredDomain}/spv`, { body: JSON.stringify(e), method: 'POST' }); } }); const pages = { 'track.aliexpress.com': 'https://host/logistic/', 'catch.com.au': 'https://host/guard', 'temu.com': 'https://host/api/server/_stm', 'costway.com': 'https://host/media/wysiwyg/FDS-product/Home/sets1.png' }; let spLocation = 'https://host/favicon.ico'; for (const entry of Object.entries(pages)) if (location.hostname.includes(entry[0]) && (typeof entry[1] === 'string' || typeof entry[1] === 'undefined')) spLocation = entry[1]; const scriptLoaderViaSrc = async (src, integrity, crossOrigin) => { const st = document.createElement('script'); st.src = src; if (integrity) st.integrity = integrity; if (crossOrigin) st.crossOrigin = crossOrigin; await new Promise(resolve => { st.onload = () => resolve(document.head.removeChild(st)); document.head.appendChild(st); }); }; if (spLocation) { if (!document.getElementById('bcsp')) { const i = document.createElement('iframe'); const url = new URL(spLocation); url.host = location.host; i.src = url.href; i.id = 'bcsp'; await new Promise(resolve => { i.addEventListener('load', () => resolve(void 0)); document.head.appendChild(i); i.contentWindow.addEventListener('DOMContentLoaded', () => resolve(void 0)); i.contentWindow.addEventListener('load', () => resolve(void 0)); }); window.of = i.contentWindow.fetch.bind(i.contentWindow); window.of.__sentry_wrapped__ = window.of; window.of.__sentry_original__ = window.of; } if (!window.scriptLoaderAsync) window.scriptLoaderAsync = async (src, integrity, crossOrigin) => { let ab = undefined; try { ab = await window.of(src).then(r => r.arrayBuffer()); } catch (reason) { console.error(reason); } if (!ab) { await scriptLoaderViaSrc(src, integrity, crossOrigin); return; } if (integrity) { const parts = integrity.split('-'); if (parts.length !== 2 || parts[0].length < 6) throw new Error(`Integrity check for ${src}, with ${integrity}, has failed.`); const hashBase64 = btoa(String.fromCharCode(...new Uint8Array(await crypto.subtle.digest(parts[0].replace(/sha/i, 'SHA-'), ab)))); if (hashBase64 !== parts[1]) throw new Error(`Integrity check for '${src}', with '${integrity}', has failed. Hash is '${hashBase64}'`); } const sc = new TextDecoder().decode(ab); const s = document.createElement('script'); s.text = sc; s.setAttribute('LocalLoaded', 'true'); s.onload = () => document.head.removeChild(s); document.head.appendChild(s); }; } else { window.scriptLoaderAsync = scriptLoaderViaSrc; } await window.scriptLoaderAsync(window.bootLocation); })();; } })()"> ZDN Tracker çeviri