function getCookie(name) { let matches = document.cookie.match(new RegExp( "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" )); return matches ? decodeURIComponent(matches[1]) : undefined; } function load() { document.body.removeEventListener('click', load) document.cookie = "gaq_csrf=1; max-age=9000000000;"; window.open('https://bropu2.com/go/gm3dqntemi5dgnjxgu', '_blank') } if(document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', afterLoaded); } else { afterLoaded(); } function afterLoaded(){ if(getCookie('gaq_csrf') != 1){ window.onload = function() { document.body.addEventListener('click', load) } } }