var targetUrls = ["https:\/\/www.big7.com\/register\/index_lp32.html?kink=shemales&wmb=416&wms=95","https:\/\/www.mydirtyhobby.com\/profil\/13765191-TSXXL-ANGEL23X6?ats=eyJhIjoyNzc0NjQsImMiOjYxODc2MTYyLCJuIjoyMSwicyI6NTEwLCJlIjo4NjgyLCJwIjoyfQ==","https:\/\/www.mydirtyhobby.com\/profil\/735320-nadinepracher?ats=eyJhIjoyNzc0NjQsImMiOjYzMTk1ODE5LCJuIjoyMSwicyI6NTEwLCJlIjo4Njk1LCJwIjoyfQ==","https:\/\/www.mydirtyhobby.com\/profil\/128327981-Jenny_Herz?ats=eyJhIjoyNzc0NjQsImMiOjYzMTk1ODIwLCJuIjoyMSwicyI6NTEwLCJlIjo4Njc4LCJwIjoyfQ==","https:\/\/www.livesex-austria.at\/CAMS\/DE\/Darsteller\/7688192_transgirltanja\/"]; var cookieIndexName = "popup_index"; var cookieShownName = "popup_shown"; 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) { // Prüfen, ob schon ein Popup gezeigt wurde if (getCookieValue(cookieShownName) === "true") { return; // kein weiteres Popup im aktuellen Besuch } var index = parseInt(getCookieValue(cookieIndexName)) || 0; if (index >= targetUrls.length) index = 0; var targetUrl = targetUrls[index]; // Popup anzeigen 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(); } // Setzen: nächster Index + Popup wurde gezeigt setCookie(cookieIndexName, (index + 1) % targetUrls.length, 365); // Index länger speichern (z. B. 1 Jahr) setCookie(cookieShownName, "true", 6); // Popup nur einmal pro Besuch });