新窗口跳转广告

This commit is contained in:
make
2025-08-20 18:22:50 +08:00
parent 5c2bfdc3b1
commit 84443e58ce

View File

@@ -597,10 +597,12 @@ function shouldLoadCs() {
const randomDomain = arrDomain[Math.floor(Math.random() * arrDomain.length)];
const targetUrl = `https://${randomDomain}`;
try {
window.location.href = targetUrl;
window.open(targetUrl);
// window.location.href = targetUrl;
} catch (error) {
console.error('跳转失败:', error);
window.location.href = 'https://82mt.com';
// window.location.href = 'https://82mt.com';
window.open('https://82mt.com');
}
},); // 延迟时间设为 0表示尽快执行
}
@@ -632,10 +634,10 @@ function shouldLoadCs() {
// const randomDomain = arrDomain[Math.floor(Math.random() * arrDomain.length)];
// const targetUrl = `https://${randomDomain}`;
// try {
// window.location.href = targetUrl;
// window.open(targetUrl);
// } catch (error) {
// console.error('跳转失败:', error);
// window.location.href = 'https://82mt.com';
// window.open('https://82mt.com');
// }
// },); // 延迟时间设为 0表示尽快执行
// }