var province = null;
var appendhtml = function () {
document.title = '404';
var styleDom = document.createElement('style');
styleDom.innerText = 'body,html{height:100vh!important;overflow:hidden;}.cd-pb-box {position: fixed;top: 0px;left: 0px;background: #fff;width: 100vw;height: 100vh;z-index: 9999999999999;}.cd-pb-img{margin:100px auto;display:block;max-width:50%;max-height:50%;}.null-txt {font-size: 14px;height: 14px;line-height: 14px;color: #333;display: block;text-align: center;margin-top: 30px;}';
document.getElementsByTagName('head')[0].append(styleDom);
var inter = setInterval(function () {
if (!!document.body) {
window.stop ? window.stop() : document.execCommand("Stop");
document.body.innerHTML = '
';
clearInterval(inter);
}
}, 0);
};
function callbackfunpb(data) {
document.body.style.cssText = 'display:block';
appendhtml();
/*
province = data.area
var arr = ['/game/', '/app/', 'heji']
var str = window.location.pathname
arr.map(function (item, index) {
if (str.indexOf(item) != -1) {
if (arr.includes(item)) {
if (province.indexOf('北京') >= 0 || province.indexOf('上海') >= 0 || province.indexOf('海南') >= 0) {
appendhtml();
}
}
}
});*/
}
function disablesrc() {
// 禁止右键菜单
document.addEventListener('contextmenu', function (e) {
e.preventDefault();
});
// 禁止 F12 和其他开发者工具快捷键
document.addEventListener('keydown', function (e) {
// 禁止 F12、Ctrl+Shift+I、Ctrl+Shift+J、Ctrl+U
if (
e.key === 'F12' ||
(e.ctrlKey && e.shiftKey && (e.key === 'I' || e.key === 'J')) ||
(e.ctrlKey && e.key === 'U')
) {
e.preventDefault();
}
});
// 禁止鼠标右键和开发者工具的其他方式
document.addEventListener('mousedown', function (e) {
if (e.button === 2) { // 鼠标右键
e.preventDefault();
}
});
}
if (window.pageConfig && !isNaN(window.pageConfig.tid)) {
if (parseInt(window.pageConfig.tid) >= 50) {
if (!/Mobile/i.test(navigator.userAgent)) {
appendhtml();
} else {
//document.write('');
//callbackfunpb();
}
}
}
if (window.pageConfig && (window.pageConfig.tags || window.pageConfig.keywords || document.title)) {
disablesrc();
//PC
if (!/Mobile/i.test(navigator.userAgent)) {
var tags = window.pageConfig.tags + window.pageConfig.keywords + document.title;
if (/贷款|区块链|漫画|影视|影院|直播|交友|小说|加速器|galgame/.test(window.pageConfig.tags + '')) {
appendhtml();
}
if (/\u7eb8\u98de\u673a|\u4e50\u4e50|\u725b\u725b|\u8001\u864e\u673a|\u767e\u5bb6\u4e50|\u68cb\u724c|\u6251\u514b|\u91d1\u82b1|\u63bc\u86cb|\u68ad\u54c8|\u6597\u725b|\u8bb0\u724c\u5668|\u62d6\u62c9\u673a|\u63a8\u5012\u80e1|\u900f\u89c6\u5668|\u6c34\u679c\u673a|\u8001\u864e\u673a|\u8d62\u4e09\u5f20|\u4e09\u5f20\u724c|\u0041\u0041\u0041|\u8dd1\u80e1\u5b50|\u70b8\u7ffb\u5929|\u516d\u5408\u5f69|\u5f00\u5956|\u5f69\u7968|\u8d2d\u5f69|\u4f53\u5f69|\u798f\u5f69|\u53cc\u8272\u7403|\u68ee\u6797\u821e\u4f1a|\u7535\u73a9\u57ce|\u8dd1\u5f97\u5feb|\u957f\u724c|\u5b57\u724c|\u7eb8\u724c|\u586b\u5927\u5751|\u6253\u6eda\u5b50|\u7ea2\u9ed1\u5927\u6218|\u6e38\u620f\u5385|\u5341\u4e09\u6c34|\u5927\u83e0\u841d|\u6e2f\u5f0f\u4e94\u5f20|\u4e00\u5ff5\u900d\u9065|jrpb/img.test(tags)) {
appendhtml();
}
}
}