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

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -