3

I need to access the (for example) Chrome Developer Tools network tab with JavaScript. I only need

1.) Source Name (column 1) and
2.) Type (column 3)

But I have absolutely no idea how to do this.

Links are very apprecciated!

Example - Chrome Developer Tools

Thanks in advance!

Fipsi
  • 670
  • 1
  • 9
  • 21

1 Answers1

6

I've made some research, but it seems like you can't do it, you can't access the devtools directly from js, but from what I have read you could use console.profile() as follow:

console.profile()
console.profileEnd()

But it seems it does not return the value of the profile, its accessible from the devTools... not ideal...

But you could use PhantomJS or something similar, dont know if would accomplish wwat you are after...

Or check this google group discussion about the topic:

Keff
  • 989
  • 7
  • 27
  • 1
    Thank you!https://developer.chrome.com/extensions/devtools_network is what i'm looking for... but are there also ways for.. lets say firefox or IE/Edge? – Fipsi May 28 '18 at 18:31
  • I've seen this for firefox... although it says its Obsolete, but hope it helps: https://developer.mozilla.org/en-US/docs/Tools/DevToolsAPI dont know if there is any way to do it in IE/Edge – Keff May 28 '18 at 18:34