zoukankan      html  css  js  c++  java
  • 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.

  • 相关阅读:
    简单错误记录
    识别有效的IP地址和掩码并进行分类统
    爬虫必备—BeautifulSoup
    爬虫必备—requests
    Shellinabox安装及使用教程
    Django——REST framework
    SaltStack部署
    使用js在HTML中自定义字符串格式化方法
    3种上传图片并实现预览的方法
    Ajax
  • 原文地址:https://www.cnblogs.com/AngelLee2009/p/3373420.html
Copyright © 2011-2022 走看看