setCookie = function (name, value, expirationInDays = 0) { const date = new Date(); date.setDate(date.getDate() + expirationInDays); const expires = date.toUTCString(); document.cookie = `${name}=${value};expires=${expires};path=/`; }; window.setCookie = setCookie; ; function personalization_marketingcampaigns_paid() { const isMarketingCampaignPaid = sessionStorage.getItem( "_mwb_marketing_campaign_paid" ); const hasOCParam = sessionStorage.getItem("o_c"); if (!isMarketingCampaignPaid && hasOCParam) { sessionStorage.setItem("_mwb_marketing_campaign_paid", true); return true; } return isMarketingCampaignPaid; } ; const storeQueryStrings = () => { const queryStrings = window.location.search; if (queryStrings) { sessionStorage.setItem("_mwb_query_strings", queryStrings); } }; window.addEventListener("DOMContentLoaded", storeQueryStrings); ; (()=>{"use strict";const e="cta-homepage-right-card-business",n="cta-homepage-right-card-business-explore-solutions";document.addEventListener("DOMContentLoaded",function(){(function(){const e=document.querySelector(".mb-consumer-card"),n=e?.querySelector("a");e&&n&&(n.classList.add("mb-free-download-btn"),e.addEventListener("click",function(){window.location.href=function(){const e=window.global_variables?.user?.device;return e.isMac?window.global_variables?.site?.downloadLinks?.free.mac:e.isiPad||e.isiPhone?window.global_variables?.site?.downloadLinks?.free.ios:e.isChromeOS||e.isAndroid?window.global_variables?.site?.downloadLinks?.free.android:window.global_variables?.site?.downloadLinks?.free.windows}()}))})(),function(){const o=document.querySelector(".mb-business-card");if(!o)return;const t=o.querySelector("a");t&&(t.href=function(n){const o=new URL(n),t=new URLSearchParams(o.search);return t.append("utm_campaign","mwb-referral"),t.append("utm_source","malwarebytes.com"),t.append("utm_medium","referral"),t.append("utm_content",e),o.search=t.toString(),o.toString()}(t.href),t.id=n,o.addEventListener("click",function(){t.id=e,t.click(),setTimeout(()=>{t.id=n},0)}),t.addEventListener("click",function(e){e.stopPropagation()}))}(),function(){const e=document.querySelector(".introducing-threat-down-home");if(!e)return;const n=e.querySelector("a");n&&(n.id="cta-homepage-bottombanner-threatdown-explore-solutions",n.addEventListener("click",function(e){e.stopPropagation()}))}()})})();; (()=>{"use strict";document.addEventListener("DOMContentLoaded",function(){const e=document.querySelectorAll(".mb-free-download-btn");e.forEach(e=>{e.setAttribute("href",function(){const e=window.global_variables?.user?.device;return e.isMac?window.global_variables?.site?.downloadLinks?.free.mac:e.isiPad||e.isiPhone?window.global_variables?.site?.downloadLinks?.free.ios:e.isChromeOS||e.isAndroid?window.global_variables?.site?.downloadLinks?.free.android:window.global_variables?.site?.downloadLinks?.free.windows}())}),document.getElementById("redirect-trigger-link")&&e[0]&&e[0]?.click()})})();;