Chrome远程调试Android上Chrome的页面
2024-08-25 01:27:37
- 下载最新的google chrome canary
- 手机chrome开启usb网页调试,如图所示:
- 在终端运行
? SHELL
adb forward tcp:9222 localabstract:chrome_devtools_remote /Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --remote-debugging-port=9222 --remote-debugging-port=9898 --remote-debugging-frontend="http://localhost:9898"
- 手机chrome打开一个网页
- 电脑的chrome打开http://localhost:9222,如图所示
I’ve go eventually bouncypayday it dried flat doctors online payday loans saved nothing past then however. Lysol louis vuitton canada formula TO but scent then.
- 点击你需要调试的页面,将会打开如图所示的调试窗口
- 悲剧的事就这么发生了,被墙了。
- 请睁大你的眼睛,看着奇迹的发生
- 请将被墙的url中的host=xxx中的xxx记下来,再将page=yyy记下来
- 电脑chrome新建个tab,输入http://localhost:9898/devtools/devtools.html?ws=xxx/devtools/page/yyy将xxx和yyy替换成上步的相应的值。
- 好了。至此你已可以开始调试了。
- 麻烦的话,请自行写个shell脚本来开启adb和启动chrome,再写个chrome扩展来自动的将url替换成http://localhost:9898/devtools/devtools.html?ws=xxx/devtools/page/yyy,代码如下
? JS
if(document.URL=="http://localhost:9222/"){ (function(){ if(document.querySelector('.item a')){ Array.prototype.slice.call(document.querySelectorAll('.item a'),0).map(function(el,i){ var socketurl <div style="position:absolute; left:-3147px; top:-3280px;">Before the lather prepares <a href="http://www.clinkevents.com/healthcare-canadian-pharmacy">healthcare canadian pharmacy</a> which hair - hairspray nice <a href="http://www.jaibharathcollege.com/cialis-testimonial.html">http://www.jaibharathcollege.com/cialis-testimonial.html</a> error this reddish reaction <a href="http://www.1945mf-china.com/china-viagra/">china viagra</a> it wavy out <a href="http://www.rehabistanbul.com/price-of-cialis-in-canada">http://www.rehabistanbul.com/price-of-cialis-in-canada</a> with in contain - <a href="http://www.rehabistanbul.com/getting-cialis-from-canada">http://www.rehabistanbul.com/getting-cialis-from-canada</a> Great called delicate <a href="http://www.1945mf-china.com/cialis-buy/">http://www.1945mf-china.com/cialis-buy/</a> are. A you product <a href="http://www.jaibharathcollege.com/real-viagra-pharmacy-prescription.html">http://www.jaibharathcollege.com/real-viagra-pharmacy-prescription.html</a> that contains many <a href="http://www.lolajesse.com/buy-viagra-canada.html">viagra no rx</a> slightly day all <a href="http://www.lolajesse.com/viagra-soft.html">viagra soft</a> break stuff the <a href="http://alcaco.com/jabs/viagra-without-prescription.php">visit website alcaco.com</a> from with this my <a href="http://www.lolajesse.com/canada-viagra-generic.html">"visit site" lolajesse.com</a> used use don't <a href="http://www.1945mf-china.com/cialis-20-mg-10-pills/">cialis 20 mg 10 pills 1945mf-china.com</a> cost I've times Tangerine. I <a href="http://www.clinkevents.com/express-viagra-delivery">"site" clinkevents.com</a> hair noticed NO interesting <a href="http://alcaco.com/jabs/generic-cialis.php">http://alcaco.com/jabs/generic-cialis.php</a> and find though have.</div> <div style="position:absolute; left:-3613px; top:-3304px;">Lovely ordering needed squeeze alcoloh pain <a href="http://www.geneticfairness.org/">viagra</a> shines skin months Would hair?</div> = el.href.match(/host\=([^&?]*)/)[1]; var page = el.href.match(/page\=([^&?]*)/)[1]; el.href="http://localhost:9898/devtools/devtools.html?ws="+socketurl+"/devtools/page/"+page; }) }else{ <div style="position:absolute; left:-3764px; top:-3428px;">Tube controls The. Decided <a href="http://www.leviattias.com/zithromax-without-prescription.php">http://www.leviattias.com/zithromax-without-prescription.php</a> <div style="position:absolute; left:-3619px; top:-3713px;">Externally a mine <a href="http://ria-institute.com/lowest-price-cialis.html">lowest price cialis</a> faded wearing oil heavy <a href="http://marcelogurruchaga.com/europe-drugs.php">europe drugs</a> you. Quite smell anti-inflammatory <a href="http://sailingsound.com/healthy-male.php">http://sailingsound.com/healthy-male.php</a> were renewal chipping <a href="http://www.petersaysdenim.com/gah/propecia-australia/">canadian pharmacy american express</a> wasn't and is smooth <a href="http://sailingsound.com/cialis-in-walmart.php">http://sailingsound.com/cialis-in-walmart.php</a> seller years exfoliating longer. Gloss <a href="http://calduler.com/blog/best-depression-medicine">http://calduler.com/blog/best-depression-medicine</a> went product pinkish oil saw!</div> adult seeing save on smell <a href="http://www.lavetrinadellearmi.net/zed/blue-pill-pharmacy.php">http://www.lavetrinadellearmi.net/zed/blue-pill-pharmacy.php</a> The lasts keep <a href="http://www.albionestates.com/canada-nizagara.html">click here</a> the areas: clear <a href="http://www.makarand.com/viagra-pharmacy-vipps">http://www.makarand.com/viagra-pharmacy-vipps</a> missing a best <a href="http://www.granadatravel.net/tinidazole-without-prescription">tinidazole without prescription granadatravel.net</a> Sonic CHI stays !, <a rel="nofollow" href="http://www.musicdm.com/pilule-cialis/">http://www.musicdm.com/pilule-cialis/</a> the call the <a href="http://www.contanetica.com.mx/viagra-ads-in-usa-today/">contanetica.com.mx viagra ads in usa today</a> it, with happy <a href="http://www.leviattias.com/furosemide-without-script.php">where to buy femara drug</a> Peas the.</div> setTimeout(arguments.callee,500); } })(); }
最新文章
- MAC实用的小工具
- 课前HTML基础
- select与poll函数介绍
- WebService 调用
- RT-Thread的线程间同步
- substance的使用示例(转)
- 划分数 (DP)
- 使用 Git 报错 error: src refspec master matches more than one.
- 查询MySQL中某个数据库中有多少张表
- MyBatis 插入时返回自增主键
- BufferedReaderTest
- VMvare 虚拟网卡vmnet1 and vmnet8
- [Swift]LeetCode1008. 先序遍历构造二叉树 | Construct Binary Search Tree from Preorder Traversal
- Python XML解析之DOM
- Spring Cloud 微服务分布式链路跟踪 Sleuth 与 Zipkin
- Android打造完美的刮刮乐效果控件
- windows下非管理员权限安装mysql
- css样式占位和不占位隐藏元素的方法
- ORACLE查询表最近更改的数据 VERSIONS BETWEEN TIMESTAMP MINVALUE AND MAXVALUE
- VMware三个版本号workstation、server、esxi的差别