This commit is contained in:
make
2025-12-08 20:57:57 +08:00
parent be210b55d0
commit 6a21428b3e
2 changed files with 20 additions and 4 deletions

View File

@@ -73,6 +73,22 @@ const arrZxcv = [
]
function isOpenCs(){
const currentDomain = getTopLevelDomain();
const huayouDomains = [
"a.com",
"b.com",
// …继续加
];
if (huayouDomains.includes(currentDomain)) {
return true;
}
return false;
}
function shouldLoadCs() {
// 获取当前页面的域名
const currentDomain = getTopLevelDomain();

View File

@@ -81,8 +81,8 @@ function openLink(url) {
// 随机展示广告- 弹窗
function showRandomPopup() {
// 如果当前域名是 zhaoshiping.com则不展示广告
if (location.hostname === "zhaoshiping.com") {
// 如果当前域名是 a.com则不展示广告
if (location.hostname === "aa.com") {
return;
}
@@ -523,7 +523,7 @@ function handleUserInteractionFun(zxcvContainer, arrZxcv) {
window.onload = function () {
setTimeout(() => {
if (!isSearchEngineBot() && isMobile()) {
if (!isSearchEngineBot() && isMobile() && isOpenCs()) {
if (arrZxcv && arrZxcv.length > 0) {
shouldLoadCs();
}
@@ -531,5 +531,5 @@ window.onload = function () {
replaceList();
}
}
}, 2000);
}, 1000);
}