您现在的位置是:孟垂博自媒体博客 ✈ 学习笔记
广点通二跳页面最新屏蔽代码(亲测可用)
07-19最后更新时间:2024-05-13【已收录】人已围观收藏
简介<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-07-10
- 响应式布局调整浏览器窗口的大小保证宽高比不变2019-09-22
- 帝国cms7.5友情链接插件样式功能改版2019-07-13
- 帝国cms7.5搜索页面关键词自动加红标记2020-09-13
- 巨量引擎推广信息流文案干货分享2020-07-19
- unlocker强行删除工具2019-06-22
- 巨量引擎投放干货四步走2020-03-10
- 抖音爆款广告创意套路: 2022-03-08
- 一切手段都只是为了有效拿量并且控制成本2020-11-15
- 年轻人嘛!2019-07-04
文章评论
点击排行
本栏推荐
标签云(最新)
站点信息
- 建站时间:2019年06月15日
- 网站程序:帝国CMS7.5
- 博客模板:可免费共享
- 文章统计:235篇文章
- 时间卷轴:时间轴
- 标签管理:标签云
- 网站地图:XML网站地图
- 微信二维码:扫描一下,你我就是有缘