document.addEventListener("DOMContentLoaded",function(){const o=new URLSearchParams(window.location.search).get("lang");let e;e=o||navigator.language,console.log("Browser language:",e);let n=window.location.search;""===n?n="?show_popup_reg=1&lp=bananas_rl":n+="&show_popup_reg=1&lp=bananas_rl";const a="https://"+window.location.hostname.replace("promo.","")+n;document.querySelectorAll("a").forEach(function(o){o.setAttribute("href",a),o.addEventListener("click",function(){document.cookie="offer_last_point="+n+"; max-age=2592000"})})});