“另存为”从谷歌浏览器开发工具网络选项卡丢失 [英] "Save as" from Google chrome Developer Tools Network tab missing

查看:226
本文介绍了“另存为”从谷歌浏览器开发工具网络选项卡丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在google chromes开发人员工具网络选项卡的网络选项卡中右键单击一个条目,我将获得以下替代方案:


  • 复制链接地址,复制请求标题,复制响应标题,复制响应,复制为cURL(cmd),复制为cURL(bash),全部复制为cURL(cmd),全部复制为cURL(bash),将所有内容复制为HAR)

  • 将内容另存为HAR

  • 清除浏览器缓存

  • / li>

  • 在资料库面板中打开


  • 在新标签页中打开


问题




  • 保存为的位置

  • 是否可以自定义此菜单以删除不需要的条目?

  • 可插入性是否允许我执行这些操作?


解决方案

您可以使用'另存为HAR与内容',但你不能一个人一个。

至于在网络面板或任何其他内置面板上自定义上下文菜单,这是不可能的。去年我在Elements面板上回答了一个类似的问题,在查看源代码后发现,没有可用的钩子。请参阅 https://stackoverflow.com/a/38050351



您可以通过 chrome.contextMenus 在自定义面板上创建上下文菜单。 网络面板具有公开请求数据的API( getHar )。您可能可能会根据这些数据构建您自己的DevTools面板。

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?

解决方案

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.

这篇关于“另存为”从谷歌浏览器开发工具网络选项卡丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆