如何在Chrome的开发人员工具网络监视器中阻止网址 [英] How to block a URL in Chrome's developer tools network monitor

查看:670
本文介绍了如何在Chrome的开发人员工具网络监视器中阻止网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在分析我的网页连接,并希望在Chrome的开发人员工具中屏蔽网络监视器中的一些跟踪脚本和其他外部URL调用。



我很快想要检查页面在没有某些库的情况下的行为。



Chrome本身不提供任何此类功能,着名的屏蔽扩展程序仅会阻止用户手动输入到导航栏中的网址。

解决方案

正如


I am currently analysing my page connections and I want to block some tracking scripts and other external URL calls in my network monitor inside Chrome's developer tools.

I quickly want to check how the page behaves without some libraries.

Chrome itself does not provide any functions like this and the famous blocking extensions only block URLs which the user enters manually into the navigation bar.

解决方案

As pointed out by @calavera.info, @iman.Bahrampour, and @Asim K T this feature is now available in Chrome 59. You can select a URL or domain to block in the Network panel. See this release note and these Screenshots where the StackOverflow logo has been blocked from this page. @iman.Bahrampour also shares two extensions below that will also do this ("HTTP Request Blocker" and "Request Blocker").

这篇关于如何在Chrome的开发人员工具网络监视器中阻止网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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