Intercept Javascript requests with Chrome extension

旧巷老猫 提交于 2019-12-22 01:00:06

问题


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?


回答1:


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"



来源:https://stackoverflow.com/questions/8559482/intercept-javascript-requests-with-chrome-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!