您现在的位置是:孟垂博自媒体博客 ✈ 学习笔记

广点通二跳页面最新屏蔽代码(亲测可用)

07-19最后更新时间:2024-04-28已收录人已围观收藏

简介<script>var iswx;var isphone;var has;// 屏蔽电脑var system = {};var p = navigator.platform;var u = navigator.userAgent;system.win = p.indexOf("Win") == 0;system

<script>
var iswx;
var isphone;
var has;
// 屏蔽电脑
var system = {};
var p = navigator.platform;
var u = navigator.userAgent;
system.win = p.indexOf("Win") == 0;
system.mac = p.indexOf("Mac") == 0;
system.x11 = (p == "X11") || (p.indexOf("Linux") == 0);
if (system.win || system.mac || system.xll) { //如果是PC转
	var isphone=2;
	console.log('电脑')
}else{
	var isphone=1;
	console.log('手机');
};
// 微信
var ua = navigator.userAgent.toLowerCase();
var isWeixin = ua.indexOf('micromessenger') != -1;
if (isWeixin) {
	var iswx = 1;
    console.log('微信');
}else{
	var iswx = 2;
	console.log('非微信');
};
var url = window.location.href;
var has = window.location.search.substring(1);
console.log(isphone+'+'+iswx+'+'+has)
if(isphone==1 && iswx==1 && has=='qz_gdt'){
	console.log('OK');
	window.location.href = './index.html';
}else{
	console.log('NO')
}
</script>
 
《广点通二跳页面最新屏蔽代码(亲测可用).doc》
如果这篇文章对你有所帮助,劳烦点个赞
推荐度:

很赞哦! ()

文章评论

站点信息

  • 建站时间2019年06月15日
  • 网站程序:帝国CMS7.5
  • 博客模板:可免费共享
  • 文章统计:235篇文章
  • 时间卷轴时间轴
  • 标签管理标签云
  • 网站地图XML网站地图
  • 微信二维码:扫描一下,你我就是有缘