Firefox模拟手机访问手机网站

说明:

  此方法只能用以那些以识别UA来判断的网站

使用步骤:

  第一步:打开Firefox,点击菜单,工具-〉附加组件-〉获取附加组件;

  第二步:查询安装三个组件:User Agent Switcher、wmlbrowser、XHTML Mobile Profile;

  wmlbrowser、XHTML Mobile Profile是用来兼容解析WAP网页格式的组件;

  User Agent Switcher是模拟User Agent(UA)的组件,就是让浏览器假装成手机UA头,访问手机网站时让丫发给你一个适配页面;

  第三步:重启Firefox;

  第四步:设置UA。在 工具-〉Default User Agent-〉User Agent Switcher-〉Options…-〉New ->New User Agent,填写一下Description和User Agent。主要是User Agent正确了就OK。

另:批量导入常用的UA列表,步骤如下:

  工具-〉Default User Agent-〉User Agent Switcher-〉Options…-〉Import。导入即可。UA列表

wmlbrowser

  说明:Simulate WAP browsing by viewing WML(Wireless Markup Language) pages.

XHTML Mobile Profile
  说明:Firefox does not natively support the mime-type application/vnd.wap/xhtml+xml. This is one of the possible mime-types for XHTML Mobile Profile. This addon adds support for this mime-type.

User Agent Switcher

  说明:The User Agent Switcher extension adds a menu and a toolbar button to switch the user agent of a browser.

转载于:https://www.cnblogs.com/AngelLee2009/p/3373420.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值