
Question:
I want to access my browser's network console output via JavaScript or maybe another language.
<em>Here is a screenshot of the Firefox network console on Youtube:</em>
<img alt="Firefox Network console on Youtube" class="b-lazy" data-src="https://i.stack.imgur.com/A6zyu.png" data-original="https://i.stack.imgur.com/A6zyu.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />
I just want to retrieve every URL my browser GETs, and do it in JavaScript, if possible (I insert my scripts in the page using the Firefox Scratchpad).
Thank you.
<h2>Edit: A bit more information about my project</h2>I want to download a collection of "text to speech" samples generated by a website. But I don't want to use their API, because I know exactly how much samples I need (the number is above 300, so I don't want to do it manually).
Answer1:By using a normal JS script inside your browser won't give you access to this Firefox Panel, due to security reasons. But an alternative (For Google Chrome) is to type chrome://net-internals/#events
in the Chrome address bar. This will open the Network Monitor. There you can type Ctrl+Shift+J or Cmd+Option+J (On Mac OS) and gain access to all HTTP events with JavaScript directly in the console.