使用Chrome扩展程序拦截Javascript请求 [英] Intercept Javascript requests with Chrome extension

查看:429
本文介绍了使用Chrome扩展程序拦截Javascript请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想编写一个Chrome扩展程序,截取一些基于Javascript的应用程序请求的数据。它要求其数据的URL不断变化,所以我不能猜测它们会是什么。如果我在Chrome中观看Developer Console,我可以看到我想要的所有请求。有没有办法获得一个扩展来实现这个功能的自动化? 解决方案

检查Google的这个扩展示例: http://code.google.com/chrome/extensions/trunk/samples.html#cc8563a6666add797264184a960c7b7c8bd3e64d a>



使用http请求标题显示实时日志


I want to write a Chrome extension that intercepts some data that a Javascript-based application is requesting. The URLs it requests its data from constantly change, so I can't just guess what they'll be. If I watch the Developer Console in Chrome, I can see all the requests I want. Is there a way to get an extension to automate this?

解决方案

Checkout this example extension from Google: http://code.google.com/chrome/extensions/trunk/samples.html#cc8563a6666add797264184a960c7b7c8bd3e64d

"Displays the live log with the http requests headers"

这篇关于使用Chrome扩展程序拦截Javascript请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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