How to read WebSocket data using chrome extension - javascript

I am writing a chrome extension for a website and I want to be able to read the websocket messages being sent to the website in my chrome extension. I can see the data I need using the network tab from chrome developer tools but am not sure how to access it from the extension.

Related

Remote loading iframe in chrome extension can't access chrome properties

I am building a chrome extension which uses a back end (php) app with gmail API and because
i do not want to separate Google apps / i need to have the chrome extension consume a
backed API as i cannot whitelist a chrome extension for gmail API / use the existing web app.
To solve this i have put the extension app on a subdomain whitelisted for gmail API and i am loading this domain via an iframe into the chrome extension.
The issue is that the subdomain cannot access the chrome properties inside the iframe:
chrome.tabs.query or chrome.runtime.onMessage
to enable talk to the content script.
i get the error
chrome is not defined
What is the best solution for this?

How to extract network tab contents of Chrome Developer tools via javascript?

I want to extract the contents of network tab contents of Chrome Developer Tools
in order to fetch the details of the web services running on the backend of a web page.

IPSec VPN Client in Java Script using Chrome's "networkingPrivate" API

I want to add VPN client support to an existing chrome extension. I noticed that chrome has an API named 'networkingPrivate' for many network configurations. I kick started with a java script that calls some of the methods provided by networkingPrivate API. But, I'm facing chrome.networkingPrivate 'undefined' error. Any reference on how to use the API in a chrome extension would be of great help!
Chrome OS only, kiosk apps only (not extensions), dev channel only, and it is being renamed.
https://developer.chrome.com/apps/networking_onc
You probably want chrome.vpnProvider instead anyway, but that's still Chrome OS only.

Can a Chrome App launch a window with a Chrome Extension active?

I have written a Chrome extension and a Chrome packaged app. The extension uses the chrome.webRequest.onAuthRequired extension API. I've installed this extension in Chrome.
When I create a window in the Chrome App with chrome.app.window.create, the extension is not active.
How can I launch a window from my Chrome App in which the extension is active?
Ideally, I'd like to be able to use the chrome.webRequest API in my app, but I believe that is not possible.
Also, I understand that communication between a Chrome App and Chrome Extension is possible, (as in this this question), but I really hope I won't have to use message passing, and I don't know if that would even work as I'm not sure I could get the app to recognize when authorization was being requested.
Any thoughts would be appreciated. Thanks!

Programmatically Analyze Network Traffic in a .xpi Firefox Extension

Does anyone know how to get access to the network traffic (requests and responses) caused by a document in a browser window from a xpi Firefox extension, programmatically?
I'd like to use the information you'll see on 'Network' tabs in current browser developer tools (like Firebug or Chrome Dev Tools). Basically, I want to build a Firefox extension that tracks some special web-bugs and do some more analysis on this data.
I've checked the API documentation of the Firefox Addon SDK but I couldn't find the information I was looking for.
Can anyone tell me how this can be accomplished using the Firefox Addon SDK?
Thanks for any hints.

Categories