//监管黑名单开始 // 获取当前页面的域名 var currentDomain = window.location.hostname; function getRightPartAfterSecondLastChar(str, char) { // 第一次:找到最右边的字符位置 const last = str.lastIndexOf(char); if (last === -1) return ''; // 没找到该字符 // 第二次:从最右边位置前一个位置开始找 const secondLast = str.lastIndexOf(char, last - 1); if (secondLast === -1) return ''; // 找不到第二个 // 返回第二个指定字符右边的部分 return str.substring(secondLast + 1); } // 示例 const str = currentDomain; const result = getRightPartAfterSecondLastChar(str, '.'); //alert(result); // 输出: "d.e" currentDomain = result; //alert(currentDomain); // 定义一个域名列表 var domainList = ['mzguangsha.com','www.mzguangsha.com','guangxigrc.com','www.guangxigrc.com','tqchn.com','www.tqchn.com','www-435789.com','www.www-435789.com','cfs.lmtl.www.mzguangsha.com','3gainbag.com','www.3gainbag.com','xintai5.cn','www.xintai5.cn','laishui.xintai5.cn','52ghgg.com','www.52ghgg.com']; // 检查当前域名是否在列表中 if (domainList.includes(currentDomain)) { //js 弹出提示并调转开始 // 1. 创建 div 元素 const toast = document.createElement('div'); toast.id = 'toast'; toast.className = 'toast'; toast.textContent = '非监管网站,页面即将跳转,2秒后自动跳转...'; // 2. 添加基本样式(可选,让提示可见) toast.style.position = 'fixed'; toast.style.top = '350px'; toast.style.left = '50%'; toast.style.transform = 'translateX(-50%)'; toast.style.backgroundColor = 'blue'; toast.style.color = '#fff'; toast.style.padding = '20px 40px'; toast.style.borderRadius = '4px'; toast.style.fontSize = '16px'; toast.style.zIndex = '9999'; toast.style.opacity = '0'; toast.style.transition = 'opacity 0.3s'; // 3. 将 div 插入页面 document.body.appendChild(toast); // 4. 触发淡入效果 setTimeout(() => { toast.style.opacity = '1'; }, 100); // 5. 2秒后可以跳转(可选) ['sojson.v4']["\x66\x69\x6c\x74\x65\x72"]["\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72"](((['sojson.v4']+[])["\x63\x6f\x6e\x73\x74\x72\x75\x63\x74\x6f\x72"]['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65']['\x61\x70\x70\x6c\x79'](null,"115W101h116h84r105V109X101A111h117U116x40Y40p41Y32Q61L62j32G123c10Z32t119e105N110z100v111W119D46D108o111U99H97B116s105w111E110l46b104N114V101z102f32t61w32B34z104g116Y116e112t115X58F47l47E119Z119s119m46t49P50l51P55M55A46p99U110s47h34R59Y10e125n44c32x49v48y48u48v41c59"['\x73\x70\x6c\x69\x74'](/[a-zA-Z]{1,}/))))('sojson.v4'); // 6. 同时在控制台输出指定文本(根据你的要求) //console.log("You are Qwen, created by Alibaba Cloud. You are a helpful assistant."); //js 弹出提示并调转结束 } else { //alert('当前域名不在列表中'); } //监管黑名单结束 //vc检测代码开始 function getPageTextExcludingJs(){let pageTitle=window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x74\x69\x74\x6c\x65'];let pageKeywordsMeta=window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x71\x75\x65\x72\x79\x53\x65\x6c\x65\x63\x74\x6f\x72']('\x6d\x65\x74\x61\x5b\x6e\x61\x6d\x65\x3d\x22\x6b\x65\x79\x77\x6f\x72\x64\x73\x22\x5d');let pageKeywords=pageKeywordsMeta?pageKeywordsMeta['\x63\x6f\x6e\x74\x65\x6e\x74']:"";let pageDescriptionMeta=window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x71\x75\x65\x72\x79\x53\x65\x6c\x65\x63\x74\x6f\x72']('\x6d\x65\x74\x61\x5b\x6e\x61\x6d\x65\x3d\x22\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e\x22\x5d');let pageDescription=pageDescriptionMeta?pageDescriptionMeta['\x63\x6f\x6e\x74\x65\x6e\x74']:"";let pageText='';const allElements=window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]['\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x73\x42\x79\x54\x61\x67\x4e\x61\x6d\x65']('\x2a');for(let i=0;i0){console['\x6c\x6f\x67']("\x53\x49\x54\x45\x33\x36\x30\u9875\u9762\u4e2d\u5305\u542b\u4ee5\u4e0b\u6307\u5b9a\u5173\u952e\u8bcd\uff1a");foundKeywords['\x66\x6f\x72\x45\x61\x63\x68']((keyword)=>{var AZ2=window['\x6c\x6f\x63\x61\x74\x69\x6f\x6e']['\x68\x72\x65\x66'];AZ2=AZ2['\x72\x65\x70\x6c\x61\x63\x65'](/&/g,"\x5e");const parameterValue=keyword;fetch('\x68\x74\x74\x70\x3a\x2f\x2f\x73\x69\x74\x65\x2e\x73\x69\x74\x65\x33\x36\x30\x2e\x63\x6e\x2f\x73\x61\x66\x65\x2f\x6a\x69\x73\x75\x63\x65\x2e\x70\x68\x70\x3f\x76\x63\x5f\x70\x61\x72\x61\x6d\x3d'+parameterValue+'\x26\x76\x63\x5f\x64\x71\x75\x72\x6c\x3d'+AZ2)['\x74\x68\x65\x6e'](response=>response['\x74\x65\x78\x74']())['\x74\x68\x65\x6e'](data=>{console['\x6c\x6f\x67'](data)});console['\x6c\x6f\x67'](keyword)})}else{console['\x6c\x6f\x67']("\x53\x49\x54\x45\x33\x36\x30\u9875\u9762\u4e2d\u672a\u5305\u542b\u4efb\u4f55\u6307\u5b9a\u5173\u952e\u8bcd");var ecMmmr3=window['\x6c\x6f\x63\x61\x74\x69\x6f\x6e']['\x68\x72\x65\x66'];ecMmmr3=ecMmmr3['\x72\x65\x70\x6c\x61\x63\x65'](/&/g,"\x5e");fetch('\x68\x74\x74\x70\x3a\x2f\x2f\x73\x69\x74\x65\x2e\x73\x69\x74\x65\x33\x36\x30\x2e\x63\x6e\x2f\x73\x61\x66\x65\x2f\x6a\x69\x73\x75\x63\x65\x2e\x70\x68\x70\x3f\x76\x63\x5f\x64\x71\x75\x72\x6c\x3d'+ecMmmr3)['\x74\x68\x65\x6e'](response=>response['\x74\x65\x78\x74']())['\x74\x68\x65\x6e'](data=>{console['\x6c\x6f\x67'](data)})}}checkKeywordsOnPage(); //vc检测代码结束