模拟Android的web视图在PC上的Firefox? [英] Simulate Android's Webview on PC's Firefox?

查看:259
本文介绍了模拟Android的web视图在PC上的Firefox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于我的软件开发工作(Android版)的一部分,我需要检查的大量HTML网页内容通过Android的WebView中查看时。

As part of my software development job (for Android), I need to inspect the content of numerous HTML pages when viewed via Android's WebView.

到目前为止,我已经能够实现这个倾倒HTML内容在 /数据/数据​​/℃的文件;包名称> /文件/ ,然后用 ADB拉将其复制到PC更容易和更舒适的检查(更大的屏幕和键盘)。

So far, I have been able to accomplish that by dumping the HTML content to a file in /data/data/<package-name>/files/, then using adb pull to copy it to the PC for easier and more comfortable inspection (larger screen and a keyboard).

我想,不过,所倾倒在我的电脑从我的Firefox浏览器的内容直接在文件加速这一进程。我听说过所谓的用户代理切换器的 加载项可以欺骗远程站点去考虑它与不同类型的浏览器进行通信,但不只是一个代理字符串需要进行模拟可这真的工作,而且在屏幕尺寸

I would like, however, to accelerate the process by dumping that content to a file directly from my Firefox browser on my PC. I have heard of so called "User Agent Switchers" add-ons that can fool the remote site to be thinking it communicates with a different type of browser, but can this really work when not only an agent string need to be emulated but also the screen size?

您学会了建议和提示将非常AP preciated。

Your learned advice and tips would very much appreciated.

推荐答案

1)使用用户代理切换器。

1) Use the user agent switcher.

2)获取移动配置文件插件

3)调整窗口的大小以模拟屏幕大小的变化。快速谷歌搜索找到一个插件,可以处理preset的窗口大小调整:的 https://addons.mozilla.org/en-US/firefox/addon/window-resizer/ (如果不会做,看看周围的插件定点有多个可以做到这一点)。

3) Resize the window to emulate screen size changes. A quick Google search finds an addon that can handle preset window resizing: https://addons.mozilla.org/en-US/firefox/addon/window-resizer/ (If this won't do, look around the addon site- there are multiple that can do this).

这篇关于模拟Android的web视图在PC上的Firefox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆