Multiple URLs copy in Sources/Network tab

回眸只為那壹抹淺笑 提交于 2019-11-30 07:18:25
  1. Switch devtools to detached window (click devtools settings icon, click "dock side" undock icon). Next time you can simply press Ctrl-Shift-D.
  2. Invoke devtools-for-devtools by pressing Ctrl-Shift-i
  3. Run this code to copy the URLs of all/filtered requests to clipboard: copy(UI.panels.network._networkLogView._dataGrid._rootNode._flatNodes.map(n => n._request._url).join('\n'))

You can save the code as a Snippet in Sources panel and run it via rightclick-menu or Ctrl-Enter:

var URLs = UI.panels.network._networkLogView._dataGrid._rootNode._flatNodes.map(n => n._request._url);
copy(URLs.join('\n'));
URLs; // displays it in the console as an expandable array

I found the above method too clunky, its way easier to use fiddler:

  • open fiddler (possibly install it)
  • filter on the domain name that you are interested in
  • clear the screen
  • refresh the web page
  • Select the fiddler output
  • right click and select copy just the URL's
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!