Tampermonkey: GM_xmlhttpRequests do not show up in Network Tab of Chrome Inspector

Created on 10 Jun 2018  路  6Comments  路  Source: Tampermonkey/tampermonkey

GM_xmlhttpRequests do not show up in Network Tab of Chrome Inspector

Expected Behavior

Show all GM_xmlhttpRequests in Network Tab of Chrome Inspector

Actual Behavior

GM_xmlhttpRequests do not show up in Network Tab of Chrome Inspector

Specifications

  • Chrome: 66.0.3359.181
  • TM: v4.6
  • OS: Windows NT 10.0; Win64; x64

Script

Applies to all user-scripts

Most helpful comment

There is not developer mode slider/checkbox

Well, Google's designs were always bad, I know, but you can easily find a video or a tutorial that illustrates the procedure. I can show a screenshot:

chrome_2018-06-10_16-51-00

They have made userscripts appear at developer tools in version

Userscripts runs inside the web page but GM_XHR runs inside a different page - the extension's background page, which is why it cannot be shown in web page's devtools.

All 6 comments

It's performed in the background page context.

  1. open chrome://extensions page
    (or right-click the extension icon in the browser toolbar, then click "Manage extensions")
  2. enable developer mode slider/checkbox
  3. click background in Tampermonkey's entry.
    (sometimes you'll need to open details first - in case several pages are shown in the card).

There is not developer mode slider/checkbox

Do I have to use Chromium instead of Chrome?

They have made userscripts appear at developer tools in version 4.5 (2017-12-30).

I was hoping to see similar change for GM_xmlhttpRequest

There is not developer mode slider/checkbox

Well, Google's designs were always bad, I know, but you can easily find a video or a tutorial that illustrates the procedure. I can show a screenshot:

chrome_2018-06-10_16-51-00

They have made userscripts appear at developer tools in version

Userscripts runs inside the web page but GM_XHR runs inside a different page - the extension's background page, which is why it cannot be shown in web page's devtools.

Thanks so much. Life saver!

@tophf Thanks! :)

Was this page helpful?
0 / 5 - 0 ratings