问题
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