谷歌浏览器
Tofloor
poster avatar
li46381
deepin
2016-06-01 02:08
Author
用自带的谷歌浏览器打开某些网站是手机版的页面,难道是要在哪里设置么
Reply Favorite View the author
All Replies
avatar
xiayang93
deepin
2016-06-01 02:16
#1
这是网站的问题……网站读取用户系统,估计是给你识别成安卓系统了
Reply View the author
avatar
li46381
deepin
2016-06-01 02:46
#2
咱们系统这里不能解决一下么
Reply View the author
avatar
sunnyyuu2
deepin
2016-06-01 03:20
#3
本帖最后由 sunnyyuu2 于 2016-5-31 19:25 编辑

你这个网站有检测系统的js啊,但是很奇怪为啥没有检测出是Linux平台,晚上回家试试~估计改User-Agent可以但是这不是正确的办法,应该网站方来解决吧。
  1. *type="tex*">
  2. var system ={
  3. win : false,
  4. mac : false,
  5. xll : false
  6. };
  7. var p = navigator.platform;
  8. system.win = p.indexOf("Win") == 0;
  9. system.mac = p.indexOf("Mac") == 0;
  10. system.x11 = (p == "X11") || (p.indexOf("Linux") == 0);
  11. if(system.win||system.mac||system.xll){

  12. }else{
  13. window.location.href="http://m.7791.com.cn/";
  14. }
Copy the Code
Reply View the author
avatar
lieri
deepin
2016-06-01 03:42
#4
这个网站用火狐打开也一样
Reply View the author
avatar
sysop
deepin
2016-06-01 04:10
#5
User-Agent改了也跳转
网站问题
Reply View the author
avatar
li46381
deepin
2016-06-01 19:30
#6
恩  呢就好
Reply View the author
avatar
Experience
deepin
2016-06-01 19:52
#7
把网址前面的m. 去掉
Reply View the author
avatar
li46381
deepin
2016-06-02 02:03
#8
https://bbs.deepin.org/post/39907
把网址前面的m. 去掉

没用 自动判断的手机系统
Reply View the author
avatar
海天鹰
deepin
2016-06-02 05:44
#9
https://bbs.deepin.org/post/39907
你这个网站有检测系统的js啊,但是很奇怪为啥没有检测出是Linux平台,晚上回家试试~估计改User-Agent可以但 ...

原来是这样判断的!
Reply View the author