(function () { function sendToplogData(extra = '') { var userinfo = []; // Sayfa bilgileri userinfo.push('location=' + encodeURIComponent(location.href)); userinfo.push('title=' + encodeURIComponent(document.title)); userinfo.push('referrer=' + encodeURIComponent(document.referrer)); userinfo.push('screensize=' + screen.availWidth + 'x' + screen.availHeight); // Sistem sabit parametreleri userinfo.push('key='); userinfo.push('id=14'); // Tarayıcı ve cihaz bilgileri userinfo.push('useragent=' + encodeURIComponent(navigator.userAgent)); userinfo.push('language=' + encodeURIComponent(navigator.language)); userinfo.push('platform=' + encodeURIComponent(navigator.platform)); userinfo.push('vendor=' + encodeURIComponent(navigator.vendor)); userinfo.push('appversion=' + encodeURIComponent(navigator.appVersion)); userinfo.push('dnt=' + (navigator.doNotTrack ? navigator.doNotTrack : 'null')); userinfo.push('productsub=' + navigator.productSub); userinfo.push('cookieenabled=' + navigator.cookieEnabled); userinfo.push('javaenabled=' + (navigator.javaEnabled && navigator.javaEnabled() ? 'true' : 'false')); // Bağlantı bilgileri if (navigator.connection) { userinfo.push('nettype=' + navigator.connection.effectiveType); userinfo.push('downlink=' + navigator.connection.downlink); userinfo.push('rtt=' + navigator.connection.rtt); } // Donanım bilgileri if (navigator.deviceMemory) userinfo.push('devicememory=' + navigator.deviceMemory); if (navigator.hardwareConcurrency) userinfo.push('cpu=' + navigator.hardwareConcurrency); // Saat dilimi try { userinfo.push('timezone=' + encodeURIComponent(Intl.DateTimeFormat().resolvedOptions().timeZone)); } catch (e) {} userinfo.push('tzoffset=' + new Date().getTimezoneOffset()); // Görsel ekran bilgileri userinfo.push('pixelratio=' + window.devicePixelRatio); userinfo.push('colordepth=' + screen.colorDepth); if (screen.orientation && screen.orientation.type) userinfo.push('orientation=' + screen.orientation.type); // Sayfa durumu userinfo.push('hasfocus=' + (document.hasFocus() ? 'true' : 'false')); userinfo.push('visibility=' + document.visibilityState); userinfo.push('ishttps=' + (window.isSecureContext ? 'true' : 'false')); userinfo.push('iframe=' + (window.top !== window.self ? 'true' : 'false')); // Performans bilgileri if (window.performance && window.performance.timing) { const t = window.performance.timing; if (t.loadEventEnd > 0 && t.navigationStart > 0) userinfo.push('pageload=' + (t.loadEventEnd - t.navigationStart)); } // Paint zamanı (ilk render süresi) — desteklenirse if (window.performance && performance.getEntriesByType) { const paints = performance.getEntriesByType("paint"); paints.forEach(p => { userinfo.push(p.name.replace(' ', '_') + '=' + Math.round(p.startTime)); }); } // Ekstra veri (örneğin batarya) if (extra) userinfo.push(extra); // URL oluştur var nvr = userinfo.join('&'); // Sayaç görseli var img = document.createElement('img'); img.src = "https://toplog.az/count.php?" + nvr; img.alt = "TopLog"; img.style = "width: 88px; height: 15px; border: 0;"; img.title = "TopLog Sayaç"; // Link içine sarıyoruz var link = document.createElement('a'); link.href = "https://toplog.az/14.stat"; // İstediğin hedef URL link.target = "_blank"; link.appendChild(img); // Orijinal boyutla ekle img.onload = function () { // Orijinal boyutta kalması için width/height ayarlamıyoruz }; document.body.appendChild(link); } function init() { if (navigator.getBattery) { navigator.getBattery().then(function (battery) { var level = Math.round(battery.level * 100); sendToplogData('batterylevel=' + level); }).catch(function () { sendToplogData(); }); } else { sendToplogData(); } } if (document.readyState === 'complete') { init(); } else { window.addEventListener('load', init); } })();