debug
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
//data
|
||||
const popupData = [
|
||||
{
|
||||
image: 'https://zhaoshiping.com/img/video/2024/02/16/09/xuan-xue-xiao-nai-bao-jing-neng-yu-ce-wei-lai.webp',
|
||||
title: '玄学小奶包竟能预测未来',
|
||||
link: 'https://zhaoshiping.com/vod/xuan-xue-xiao-nai-bao-jing-neng-yu-ce-wei-lai-78584',
|
||||
image: 'https://zhaoshiping.com/img/video/2024/06/24/04/can-jia-zong-yi-hou-meng-bao-huo-le.webp',
|
||||
title: '参加综艺后,萌宝火了',
|
||||
link: 'https://zhaoshiping.com/vod/can-jia-zong-yi-hou-meng-bao-huo-le-73280',
|
||||
template:'videoDadi',
|
||||
},
|
||||
{
|
||||
@@ -13,15 +13,15 @@ const popupData = [
|
||||
template:'videoDingZhu',
|
||||
},
|
||||
{
|
||||
image: 'https://zhaoshiping.com/img/video/2024/10/12/23/yu-pu-tuan-zhi-yu-nv-xin-jing.webp',
|
||||
title: '玉蒲团Ⅱ之玉女心经', //yu
|
||||
link: 'https://zhaoshiping.com/vod/yu-pu-tuan-zhi-yu-nv-xin-jing-106414',
|
||||
image: 'https://zhaoshiping.com/img/video/2024/04/22/11/shui-jiao-huang-hou.webp',
|
||||
title: '水饺皇后',
|
||||
link: 'https://zhaoshiping.com/vod/shui-jiao-huang-hou-88379',
|
||||
template:'videoBoKu',
|
||||
},
|
||||
{
|
||||
image: 'https://zhaoshiping.com/img/video/2025/04/06/16/shen-yin-wang-zuo.webp',
|
||||
title: '神印王座',
|
||||
link: 'https://zhaoshiping.com/vod/shen-yin-wang-zuo-26044',
|
||||
image: 'https://zhaoshiping.com/img/video/2023/12/19/23/cui-huo-nian-dai.webp',
|
||||
title: '淬火年代',
|
||||
link: 'hhttps://zhaoshiping.com/vod/cui-huo-nian-dai-107683',
|
||||
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() {
|
||||
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 = replaceList;
|
||||
Reference in New Issue
Block a user