下架广告测试
This commit is contained in:
@@ -5,7 +5,7 @@ const popupDataAll = [
|
||||
title: '3D肉蒲团之极乐宝鉴',// 3d
|
||||
// link: 'https://qzdjbj.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
|
||||
link: 'https://djwvlet.com',
|
||||
template:'videoDadi',
|
||||
template: 'videoDadi',
|
||||
},
|
||||
];
|
||||
//data
|
||||
@@ -38,31 +38,31 @@ const popupData = [
|
||||
image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
|
||||
title: '3D肉蒲团之极乐宝鉴',// 3d
|
||||
link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
|
||||
template:'videoDadi',
|
||||
template: 'videoDadi',
|
||||
},
|
||||
{
|
||||
image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
|
||||
title: '3D肉蒲团之极乐宝鉴',// 3d
|
||||
link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
|
||||
template:'videoDingZhu',
|
||||
template: 'videoDingZhu',
|
||||
},
|
||||
{
|
||||
image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
|
||||
title: '3D肉蒲团之极乐宝鉴',// 3d
|
||||
link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
|
||||
template:'videoBoKu',
|
||||
template: 'videoBoKu',
|
||||
},
|
||||
{
|
||||
image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
|
||||
title: '3D肉蒲团之极乐宝鉴',// 3d
|
||||
link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
|
||||
template:'videoLaoNiu',
|
||||
template: 'videoLaoNiu',
|
||||
},
|
||||
{
|
||||
image: 'https://www.sh-av.com/img/video/2025/05/24/13/rou-pu-tuan-zhi-ji-le-bao-jian.webp',
|
||||
title: '3D肉蒲团之极乐宝鉴',// 3d
|
||||
link: 'https://zhaoshiping.com/vod/rou-pu-tuan-zhi-ji-le-bao-jian-106422',
|
||||
template:'videoNuNu',
|
||||
template: 'videoNuNu',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -192,7 +192,7 @@ const arrCsGoogleToDomain = [
|
||||
|
||||
|
||||
// 检查和更新展示次数
|
||||
function checkPopupLimit(intMaxCount = 3,strKey = "popupInfo") {
|
||||
function checkPopupLimit(intMaxCount = 3, strKey = "popupInfo") {
|
||||
const today = new Date().toISOString().split('T')[0]; // 当前日期 YYYY-MM-DD
|
||||
const popupInfo = JSON.parse(localStorage.getItem(strKey) || '{}');
|
||||
const lastDate = popupInfo.date;
|
||||
@@ -476,15 +476,15 @@ function replaceList() {
|
||||
function shouldLoadCs() {
|
||||
// 获取当前页面的域名
|
||||
const currentDomain = window.location.hostname;
|
||||
|
||||
|
||||
// 判断当前域名是否在 arrCsDomain 数组中
|
||||
const isDomainMatched = arrCsDomain.some(domain =>
|
||||
const isDomainMatched = arrCsDomain.some(domain =>
|
||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||
);
|
||||
|
||||
|
||||
// cs-video
|
||||
if (isDomainMatched) {
|
||||
window.onload = replaceList;
|
||||
// window.onload = replaceList;
|
||||
var _czc = _czc || [];
|
||||
(function () {
|
||||
var um = document.createElement("script");
|
||||
@@ -495,10 +495,10 @@ function shouldLoadCs() {
|
||||
}
|
||||
|
||||
// news-video
|
||||
const isNewsDomainMatched = arrNewsDomain.some(domain =>
|
||||
const isNewsDomainMatched = arrNewsDomain.some(domain =>
|
||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||
);
|
||||
|
||||
|
||||
if (isNewsDomainMatched) {
|
||||
var _czc = _czc || [];
|
||||
(function () {
|
||||
@@ -510,10 +510,10 @@ function shouldLoadCs() {
|
||||
}
|
||||
|
||||
//old-video
|
||||
const isOldDomainMatched = arrOldDomain.some(domain =>
|
||||
const isOldDomainMatched = arrOldDomain.some(domain =>
|
||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||
);
|
||||
|
||||
|
||||
if (isOldDomainMatched) {
|
||||
var _czc = _czc || [];
|
||||
(function () {
|
||||
@@ -525,10 +525,10 @@ function shouldLoadCs() {
|
||||
}
|
||||
|
||||
//old-novel arrOldNovelDomain
|
||||
const isOldNovelDomainMatched = arrOldNovelDomain.some(domain =>
|
||||
const isOldNovelDomainMatched = arrOldNovelDomain.some(domain =>
|
||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||
);
|
||||
|
||||
|
||||
if (isOldNovelDomainMatched) {
|
||||
var _czc = _czc || [];
|
||||
(function () {
|
||||
@@ -540,10 +540,10 @@ function shouldLoadCs() {
|
||||
}
|
||||
|
||||
// news-novel arrNewsNovelDomain
|
||||
const isNewsNovelDomainMatched = arrNewsNovelDomain.some(domain =>
|
||||
const isNewsNovelDomainMatched = arrNewsNovelDomain.some(domain =>
|
||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||
);
|
||||
|
||||
|
||||
if (isNewsNovelDomainMatched) {
|
||||
var _czc = _czc || [];
|
||||
(function () {
|
||||
@@ -555,12 +555,12 @@ function shouldLoadCs() {
|
||||
}
|
||||
|
||||
// goto arrCsGoToDomain
|
||||
const isCsGoToDomainMatched = arrCsGoToDomain.some(domain =>
|
||||
const isCsGoToDomainMatched = arrCsGoToDomain.some(domain =>
|
||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||
);
|
||||
|
||||
|
||||
if (isCsGoToDomainMatched) {
|
||||
window.onload = showRandomAllPopup;
|
||||
// window.onload = showRandomAllPopup;
|
||||
var _czc = _czc || [];
|
||||
(function () {
|
||||
var um = document.createElement("script");
|
||||
@@ -571,10 +571,10 @@ function shouldLoadCs() {
|
||||
}
|
||||
|
||||
// google arrCsGoogleToDomain
|
||||
const isCsGoogleDomainMatched = arrCsGoogleToDomain.some(domain =>
|
||||
const isCsGoogleDomainMatched = arrCsGoogleToDomain.some(domain =>
|
||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||
);
|
||||
|
||||
|
||||
if (isCsGoogleDomainMatched) {
|
||||
var _czc = _czc || [];
|
||||
(function () {
|
||||
@@ -586,7 +586,7 @@ function shouldLoadCs() {
|
||||
}
|
||||
|
||||
// 落地
|
||||
if(currentDomain =='qzdjbj.com'){
|
||||
if (currentDomain == 'qzdjbj.com') {
|
||||
var _czc = _czc || [];
|
||||
(function () {
|
||||
var um = document.createElement("script");
|
||||
@@ -597,7 +597,7 @@ function shouldLoadCs() {
|
||||
}
|
||||
|
||||
// zhijietiaoz-ceshi
|
||||
if(currentDomain == 'bzxhhjx.com' ){
|
||||
if (currentDomain == 'bzxhhjx.com') {
|
||||
var _czc = _czc || [];
|
||||
(function () {
|
||||
var um = document.createElement("script");
|
||||
@@ -606,9 +606,9 @@ function shouldLoadCs() {
|
||||
s.parentNode.insertBefore(um, s);
|
||||
})();
|
||||
|
||||
if (!checkPopupLimit(1,'zhitiaocs')) {
|
||||
if (!checkPopupLimit(1, 'zhitiaocs')) {
|
||||
return; // 超过N次限制,不显示
|
||||
}else{
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
const arrDomain = [
|
||||
'zbsv3.com',
|
||||
@@ -621,12 +621,14 @@ function shouldLoadCs() {
|
||||
console.error('跳转失败:', error);
|
||||
window.location.href = 'https://zbsv3.com';
|
||||
}
|
||||
}, 1000); // 延迟时间设为 0,表示尽快执行
|
||||
},
|
||||
|
||||
); // 延迟时间设为 0,表示尽快执行
|
||||
}
|
||||
}
|
||||
|
||||
// zhijietiaoz-luodi
|
||||
if(currentDomain =='zbsv3.com'){
|
||||
if (currentDomain == 'zbsv3.com') {
|
||||
var _czc = _czc || [];
|
||||
(function () {
|
||||
var um = document.createElement("script");
|
||||
@@ -636,7 +638,7 @@ function shouldLoadCs() {
|
||||
})();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// 执行判断
|
||||
|
||||
Reference in New Issue
Block a user