简体   繁体   中英

Catch and Modify XHR requests from Facebook with Chrome Extension

Trying to catch and modify XHR requests from Facebook.com. The exact request URL is

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

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

If you want to modify what is getting sent out, then I think what you'll want is onBeforeRequest handler to be registered.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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