function toggleDownloadStep(step) { let body = document.querySelector('body'); body.classList.toggle('download-step-1', step === 1); body.classList.toggle('download-step-2', step === 2); body.classList.toggle('download-step-3', step === 3); body.classList.toggle('download-step-4', step === 4); } function triggerDownload() { let downloadUrl = 'https://red.hushbrowse.cc/downloadproxy/intpgdirect/@CLICK_ID@/?ext_name=HushBrowse&cid=@CID@&tag=@OTID@&file=true'; downloadUrl = downloadUrl.replace('@CLICK_ID@', uid()); downloadUrl = downloadUrl.replace('@CID@', getParameterByName('cid', '')); downloadUrl = downloadUrl.replace('@OTID@', getParameterByName('otid', '')); download(downloadUrl); } function triggerPixel() { let pixelUrl = 'https://7proof.com/app/fr?type=l1&dp1=' + uid() + '&score=9'; let img = document.createElement('img'); img.src = pixelUrl; img.style.position = 'absolute'; img.style.left = '-9999px'; document.body.appendChild(img); } executeOnReady(function () { window.rootDomain = location.host.split('.').reverse().splice(0,2).reverse().join('.'); let oTid = getParameterByName('otid', null); if (!oTid) { oTid = getParameterByName('cid', '') + '_' + (new Date().toISOString().slice(0, 10)); setCookie('otid', oTid, 0, window.rootDomain); } fireEvent('page_load', 'private-search'); triggerPixel(); document.querySelector('[data-action="download"]').addEventListener('click', function () { fireEvent('download_click', 'private-search'); triggerDownload(); toggleDownloadStep(2); }); document.querySelector('[data-download="label"]').addEventListener('click', function(e) { e.stopPropagation(); this.classList.add('show-video'); const video = this.querySelector('video'); video.autoplay = true; video.play(); }, {once: true}); });