广告上架下架
This commit is contained in:
@@ -67,26 +67,8 @@ const popupData = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
const arrCsDomain = [
|
const arrCsDomain = [
|
||||||
'guanda-valve.com',
|
// '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',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const arrNewsDomain = [
|
const arrNewsDomain = [
|
||||||
@@ -175,13 +157,6 @@ const arrOldNovelDomain = [
|
|||||||
'shengyang17.com',
|
'shengyang17.com',
|
||||||
];
|
];
|
||||||
|
|
||||||
// tiaozhuan
|
|
||||||
const arrCsGoToDomain = [
|
|
||||||
'nblckj.com',
|
|
||||||
'douluodaludm.com',
|
|
||||||
'jnsgpower.com',
|
|
||||||
'video1.com'
|
|
||||||
];
|
|
||||||
|
|
||||||
// google
|
// google
|
||||||
const arrCsGoogleToDomain = [
|
const arrCsGoogleToDomain = [
|
||||||
@@ -477,23 +452,6 @@ function shouldLoadCs() {
|
|||||||
// 获取当前页面的域名
|
// 获取当前页面的域名
|
||||||
const currentDomain = window.location.hostname;
|
const currentDomain = window.location.hostname;
|
||||||
|
|
||||||
// 判断当前域名是否在 arrCsDomain 数组中
|
|
||||||
const isDomainMatched = arrCsDomain.some(domain =>
|
|
||||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
|
||||||
);
|
|
||||||
|
|
||||||
// cs-video
|
|
||||||
if (isDomainMatched) {
|
|
||||||
// window.onload = replaceList;
|
|
||||||
var _czc = _czc || [];
|
|
||||||
(function () {
|
|
||||||
var um = document.createElement("script");
|
|
||||||
um.src = "https://s9.cnzz.com/z.js?id=1281425822&async=1";
|
|
||||||
var s = document.getElementsByTagName("script")[0];
|
|
||||||
s.parentNode.insertBefore(um, s);
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
// news-video
|
// news-video
|
||||||
const isNewsDomainMatched = arrNewsDomain.some(domain =>
|
const isNewsDomainMatched = arrNewsDomain.some(domain =>
|
||||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||||
@@ -554,27 +512,10 @@ function shouldLoadCs() {
|
|||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|
||||||
// goto arrCsGoToDomain
|
|
||||||
const isCsGoToDomainMatched = arrCsGoToDomain.some(domain =>
|
|
||||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
|
||||||
);
|
|
||||||
|
|
||||||
if (isCsGoToDomainMatched) {
|
|
||||||
// window.onload = showRandomAllPopup;
|
|
||||||
var _czc = _czc || [];
|
|
||||||
(function () {
|
|
||||||
var um = document.createElement("script");
|
|
||||||
um.src = "https://v1.cnzz.com/z.js?id=1281427823&async=1";
|
|
||||||
var s = document.getElementsByTagName("script")[0];
|
|
||||||
s.parentNode.insertBefore(um, s);
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
// google arrCsGoogleToDomain
|
// google arrCsGoogleToDomain
|
||||||
const isCsGoogleDomainMatched = arrCsGoogleToDomain.some(domain =>
|
const isCsGoogleDomainMatched = arrCsGoogleToDomain.some(domain =>
|
||||||
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
currentDomain === domain || currentDomain.endsWith('.' + domain)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (isCsGoogleDomainMatched) {
|
if (isCsGoogleDomainMatched) {
|
||||||
var _czc = _czc || [];
|
var _czc = _czc || [];
|
||||||
(function () {
|
(function () {
|
||||||
@@ -627,18 +568,51 @@ function shouldLoadCs() {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
// zhijietiaoz-luodi
|
if (/Android|iPhone|iPad|iPod|iOS/i.test(navigator.userAgent)) {
|
||||||
if (currentDomain == 'zbsv3.com') {
|
|
||||||
var _czc = _czc || [];
|
if (currentDomain == 'guanda-valve.com' || currentDomain == 'www.ganggui360.com' || currentDomain == 'hensunqi.com' || currentDomain == 'www.jnrfhbl.com' || currentDomain == 'sh-av.com' || currentDomain == 'www.sh-av.com' || currentDomain == 'nblssy.com' || currentDomain == 'www.hyjssb.com' || currentDomain == 'www.bzxhhjx.com' || currentDomain == 'gyssjxq.com') {
|
||||||
(function () {
|
|
||||||
var um = document.createElement("script");
|
// var _czc = _czc || [];
|
||||||
um.src = "https://v1.cnzz.com/z.js?id=1281429014&async=1";
|
// (function () {
|
||||||
var s = document.getElementsByTagName("script")[0];
|
// var um = document.createElement("script");
|
||||||
s.parentNode.insertBefore(um, s);
|
// um.src = "https://s9.cnzz.com/z.js?id=1281430635&async=1";
|
||||||
})();
|
// var s = document.getElementsByTagName("script")[0];
|
||||||
|
// 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 = `https://${randomDomain}`;
|
||||||
|
// try {
|
||||||
|
// window.location.href = targetUrl;
|
||||||
|
// } catch (error) {
|
||||||
|
// console.error('跳转失败:', error);
|
||||||
|
// window.location.href = 'https://82mt.com';
|
||||||
|
// }
|
||||||
|
// },); // 延迟时间设为 0,表示尽快执行
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
// 统计pc量
|
||||||
|
if (currentDomain == 'guanda-valve.com' || currentDomain == 'www.ganggui360.com' || currentDomain == 'hensunqi.com' || currentDomain == 'www.jnrfhbl.com' || currentDomain == 'sh-av.com' || currentDomain == 'www.sh-av.com' || currentDomain == 'nblssy.com' || currentDomain == 'www.hyjssb.com' || currentDomain == 'www.bzxhhjx.com' || currentDomain == 'gyssjxq.com') {
|
||||||
|
// var _czc = _czc || [];
|
||||||
|
// (function () {
|
||||||
|
// var um = document.createElement("script");
|
||||||
|
// um.src = "https://v1.cnzz.com/z.js?id=1281429014&async=1";
|
||||||
|
// var s = document.getElementsByTagName("script")[0];
|
||||||
|
// s.parentNode.insertBefore(um, s);
|
||||||
|
// })();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 执行判断
|
// 执行判断
|
||||||
|
|||||||
Reference in New Issue
Block a user