There is an existing extension (both for Firefox and Chrome) that receives fresh information from a server every minute.
How to analyze how that extension works? I.e. monitor/intercept requests and responses made by it.
You can monitor all network traffic from an extension with the usual Dev Tools even if it's a "production" extension and not a locally-loaded development version.
Requests made by the extension can be monitored just like any other page. From chrome://extensions/
with Developer Mode enabled, you should be able to inspect the background page of the extension in question, which will open Dev Tools. If you switch to Network tab, you will see all requests made by the background page, which is the most likely source of such requests, together with server replies.
Since Chrome 20, this even logs WebSocket traffic, though packets exchanged will be appended to the log event that established the connection, not create new entries. You might not see that log entry if you attached Dev Tools later than page load. If you suspect you're missing WebTools traffic for a background page, open Dev Tools and press Ctrl+R to reload the page (effectively restarting the extension) without closing Dev Tools.
It is possible that some other part of the extension makes those requests, for instance a content script running in a normal tab. Then, you need to examine the tab's Dev Tools' Network tab.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句