Google Chrome Plugin development - Monitor network requests? -



Google Chrome Plugin development - Monitor network requests? -

is possible monitor network traffic google chrome plugin local page? example, want monitor every time web page requests specific file (based on regex match), , if user clicks plugin, opens new tab file.

the "proper" way utilize webrequest api, still experimental:

//background.html chrome.experimental.webrequest.oncompleted.addlistener(function(details) { console.log("resource", details.url); });

meanwhile can grab resources loading next code:

document.addeventlistener("beforeload", function(event) { console.log("resource", event.url); }, true);

this needs go content script runs "run_at": "document_start".

google-chrome-extension

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -