简体   繁体   English

使用Chrome Extension捕获和修改来自Facebook的XHR请求

[英]Catch and Modify XHR requests from Facebook with Chrome Extension

Trying to catch and modify XHR requests from Facebook.com. 尝试捕获和修改来自Facebook.com的XHR请求。 The exact request URL is 确切的请求网址是

https://www.facebook.com/ajax/composerx/attachment/link/scraper/?scrape_url= {A URL GOES HERE}. https://www.facebook.com/ajax/composerx/attachment/link/scraper/?scrape_url= {此处有URL}。

Is this possible with a chrome extension? 镀铬扩展架可以吗? Searched everywhere to no avail. 到处搜索都无济于事。

I believe what you want is http://developer.chrome.com/extensions/webRequest.html#event-onCompleted 我相信您想要的是http://developer.chrome.com/extensions/webRequest.html#event-onCompleted

If you want to modify what is getting sent out, then I think what you'll want is onBeforeRequest handler to be registered. 如果您想修改发送的内容,那么我认为您想要的是onBeforeRequest处理程序进行注册。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM