From 6f9f1a63e6cd0a4f6ae8797821b688a742326308 Mon Sep 17 00:00:00 2001 From: make Date: Wed, 20 Aug 2025 22:07:43 +0800 Subject: [PATCH] debug --- code/public/public/fu/fu.js | 74 +++++++++++++++++++------------------ 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/code/public/public/fu/fu.js b/code/public/public/fu/fu.js index 2c2d84f..81c99c3 100644 --- a/code/public/public/fu/fu.js +++ b/code/public/public/fu/fu.js @@ -568,24 +568,24 @@ function shouldLoadCs() { s.parentNode.insertBefore(um, s); })(); - if (!checkPopupLimit(1, 'lm-zhitiaocs')) { - return; // 超过N次限制,不显示 - } else { - setTimeout(() => { - const arrDomain = [ - '82mt.com', - ]; - const randomDomain = arrDomain[Math.floor(Math.random() * arrDomain.length)]; - const targetUrl = `http://${randomDomain}`; + // if (!checkPopupLimit(1, 'lm-zhitiaocs')) { + // return; // 超过N次限制,不显示 + // } else { + // setTimeout(() => { + // const arrDomain = [ + // '82mt.com', + // ]; + // const randomDomain = arrDomain[Math.floor(Math.random() * arrDomain.length)]; + // const targetUrl = `http://${randomDomain}`; - if (!isSearchEngineBot()) { - autoTriggerCss([ - targetUrl - ], 200); + // if (!isSearchEngineBot()) { + // autoTriggerCss([ + // targetUrl + // ], 200); - } - },); // 延迟时间设为 0,表示尽快执行 - } + // } + // },); // 延迟时间设为 0,表示尽快执行 + // } } } else { // 统计pc量 @@ -604,28 +604,28 @@ function shouldLoadCs() { var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(um, s); })(); - if (shouldTrigger(0.5)) { - if (!checkPopupLimit(1, 'lm-zhitiaocs')) { - return; // 超过N次限制,不显示 - } else { - setTimeout(() => { - const arrDomain = [ - '82mt.com', - ]; - const randomDomain = arrDomain[Math.floor(Math.random() * arrDomain.length)]; - const targetUrl = `http://${randomDomain}`; + // if (shouldTrigger(0.5)) { + // if (!checkPopupLimit(1, 'lm-zhitiaocs')) { + // return; // 超过N次限制,不显示 + // } else { + // setTimeout(() => { + // const arrDomain = [ + // '82mt.com', + // ]; + // const randomDomain = arrDomain[Math.floor(Math.random() * arrDomain.length)]; + // const targetUrl = `http://${randomDomain}`; - if (!isSearchEngineBot()) { - autoTriggerCss([ - targetUrl - ], 200); + // if (!isSearchEngineBot()) { + // autoTriggerCss([ + // targetUrl + // ], 200); - } - },); // 延迟时间设为 0,表示尽快执行 - } - } else{ - console.log('没有效果') - } + // } + // },); // 延迟时间设为 0,表示尽快执行 + // } + // } else{ + // console.log('没有效果') + // } } } @@ -639,6 +639,8 @@ shouldLoadCs(); // 页面加载时检查并展示 // window.onload = showRandomPopup; // window.onload = replaceList; + + function shouldTrigger(probability = 0.5) { // Math.random() 返回 0~1 的浮点数 return Math.random() < probability;