“Save as” from Google chrome Developer Tools Network tab missing

眉间皱痕 提交于 2019-12-07 14:09:07

问题


If I right click an entry in the network tab in google chromes developer tools network tab, I get theese alternatives:

  • Copy (open a sub menu with Copy Link Address, Copy Request headers, Copy Response headers, Copy response, Copy as cURL (cmd), Copy as cURL (bash), Copy all as cURL (cmd), Copy all as cURL (bash), Copy all as HAR)
  • Save as HAR with content
  • Clear browser cache
  • Clear browser cookies
  • Block request URL
  • Block request Domain
  • Open in Sources panel
  • Open in new tab

Questions

  • Where is "Save as"?
  • Can I customize this menu to remove unneeded entries?
  • Is the pluginability letting me do those things?

回答1:


You can save the whole list of requests/responses by using 'Save as HAR with content', but you can't save an individual one.

As for customising the context menu on the Network panel, or any other built-in panel, this isn't possible. I answered a similar question on the Elements panel last year, and found, after looking at the source code, that there were no hooks available. See https://stackoverflow.com/a/38050351

You can create context menus on custom panels, via chrome.contextMenus. The Network panel has an API that exposes the requests data (getHar). You could perhaps build your own DevTools panel based on this data.



来源:https://stackoverflow.com/questions/44887215/save-as-from-google-chrome-developer-tools-network-tab-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!