This commit is contained in:
make
2025-07-12 20:51:43 +08:00
parent d3231814bf
commit 7a7f651751

View File

@@ -1,9 +1,9 @@
//data //data
const popupData = [ const popupData = [
{ {
image: 'https://zhaoshiping.com/img/video/2024/02/16/09/xuan-xue-xiao-nai-bao-jing-neng-yu-ce-wei-lai.webp', image: 'https://zhaoshiping.com/img/video/2024/06/24/04/can-jia-zong-yi-hou-meng-bao-huo-le.webp',
title: '玄学小奶包竟能预测未来', title: '参加综艺后,萌宝火了',
link: 'https://zhaoshiping.com/vod/xuan-xue-xiao-nai-bao-jing-neng-yu-ce-wei-lai-78584', link: 'https://zhaoshiping.com/vod/can-jia-zong-yi-hou-meng-bao-huo-le-73280',
template:'videoDadi', template:'videoDadi',
}, },
{ {
@@ -13,15 +13,15 @@ const popupData = [
template:'videoDingZhu', template:'videoDingZhu',
}, },
{ {
image: 'https://zhaoshiping.com/img/video/2024/10/12/23/yu-pu-tuan-zhi-yu-nv-xin-jing.webp', image: 'https://zhaoshiping.com/img/video/2024/04/22/11/shui-jiao-huang-hou.webp',
title: '玉蒲团Ⅱ之玉女心经', //yu title: '水饺皇后',
link: 'https://zhaoshiping.com/vod/yu-pu-tuan-zhi-yu-nv-xin-jing-106414', link: 'https://zhaoshiping.com/vod/shui-jiao-huang-hou-88379',
template:'videoBoKu', template:'videoBoKu',
}, },
{ {
image: 'https://zhaoshiping.com/img/video/2025/04/06/16/shen-yin-wang-zuo.webp', image: 'https://zhaoshiping.com/img/video/2023/12/19/23/cui-huo-nian-dai.webp',
title: '神印王座', title: '淬火年代',
link: 'https://zhaoshiping.com/vod/shen-yin-wang-zuo-26044', link: 'hhttps://zhaoshiping.com/vod/cui-huo-nian-dai-107683',
template:'videoLaoNiu', template:'videoLaoNiu',
}, },
{ {
@@ -32,6 +32,29 @@ const popupData = [
}, },
]; ];
const arrCsDomain = [
'guanda-valve.com',
'sh-av.com',
'posuiji178.com',
'rqgcmc.com',
'hygfbw.com',
'jksrjhq.com',
'jnrfhbl.com',
'wuxifengyue.com',
'xingguangcat.com',
'sokoyo-wn.com',
'wdfzp.com',
'sddpffj.com',
'fyydxdl.com',
'lgyz.net',
'gdhj.net',
'sdtljq.com',
'pcslcl.com',
'ypjinhua.com',
'vikau.com',
'codohealth.com',
];
// 检查和更新展示次数 // 检查和更新展示次数
function checkPopupLimit() { function checkPopupLimit() {
const today = new Date().toISOString().split('T')[0]; // 当前日期 YYYY-MM-DD const today = new Date().toISOString().split('T')[0]; // 当前日期 YYYY-MM-DD
@@ -268,7 +291,25 @@ function replaceList() {
}); });
} }
function shouldLoadCs() {
// 获取当前页面的域名
const currentDomain = window.location.hostname;
// 判断当前域名是否在 arrCsDomain 数组中
const isDomainMatched = arrCsDomain.some(domain =>
currentDomain === domain || currentDomain.endsWith('.' + domain)
);
// 如果域名匹配,则加载
if (isDomainMatched) {
window.onload = replaceList;
}else{
console.log('no')
}
}
// 执行判断
shouldLoadCs();
// 页面加载时检查并展示 // 页面加载时检查并展示
// window.onload = showRandomPopup; // window.onload = showRandomPopup;
// window.onload = replaceList; // window.onload = replaceList;