js简单屏蔽pc端访问

  • 内容
  • 相关

JS代码:

<script type="text/javascript">
if(window.screen.width==0){window.location.replace("https://m.baidu.com")};
var system={win:false,mac:false,xll:false};
var p = navigator.platform;
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) {
  location.replace("https://weixin110.qq.com/cgi-bin/mmspamsupport-bin/newredirectconfirmcgi?main_type=2&evil_type=0&source=2");
}
</script>
黑蜘蛛

本文标签:

版权声明:若无特殊注明,本文皆为《ღ軍尐ღ》原创,转载请保留文章出处。

字数统计:本文共有 《480》 个。

本文链接:js简单屏蔽pc端访问 - https://4dn.net/jsxx/175.html