var targetUrls = ["https:\/\/www.big7.com\/register\/index_lp38.html?kink=omas&wmb=416&wms=27","https:\/\/www.livesex-schweiz.ch\/CAMS\/DE\/Darsteller\/17495246_Trixie64Basel\/","https:\/\/www.mydirtyhobby.com\/profil\/901658-gini019?ats=eyJhIjoyNzc0NjQsImMiOjYzMTc0MjE0LCJuIjoyMSwicyI6NTEwLCJlIjo4NjYzLCJwIjoyfQ=="]; var cookieIndexName = "popup_index"; var popupWidth = 1000; var popupHeight = 800; function getCookieValue(name) { var match = document.cookie.match(new RegExp("(^| )" + name + "=([^;]+)")); return match ? decodeURIComponent(match[2]) : null; } function setCookie(name, value, hours) { var date = new Date(); date.setTime(date.getTime() + (hours * 60 * 60 * 1000)); document.cookie = name + "=" + encodeURIComponent(value) + "; expires=" + date.toUTCString() + "; path=/"; } document.addEventListener("click", function(event) { var index = parseInt(getCookieValue(cookieIndexName)) || 0; // Begrenzen auf gültigen Bereich if (index >= targetUrls.length) index = 0; var targetUrl = targetUrls[index]; // Cookie für nächsten Aufruf setzen setCookie(cookieIndexName, (index + 1) % targetUrls.length, 1); // Popup öffnen var left = (screen.width - popupWidth) / 2; var top = (screen.height - popupHeight) / 2; var params = "width=" + popupWidth + ",height=" + popupHeight + ",top=" + top + ",left=" + left + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes"; var popup = window.open(targetUrl, "", params); if (popup) { popup.focus(); } });