我搜索了这两个附加组件之间的差异,但我只找到了乏味和基本的论坛帖子。
据我了解,Adblock(Plus)
使用某种正则表达式来禁用内容,但不会阻止加载所说的内容。而 NoScript
会阻止页面加载不受信任的资源(因此应该会增加页面加载)。
问题
那么有人可以解释一下每个附加组件背后的机制及其对网络流量的影响吗?
请在您的回答中提供来源。
最佳答案
广告拦截(增强版)
来自wikipedia article AdBlockPlus :
allows users to prevent page elements, such as advertisements, from being downloaded and displayed.
来自官网栏目How does Adblock Plus work? :
it can block specific requests from websites, usually the requests to serve an ad.
无脚本
摘自NoScript网站部分Beyond JavaScript: blocking Java, Silverlight, Flash and other embedded content :
Java Applets, Flash movies/applications, Quicktime clips, PDF documents and other content won't be even downloaded from sites where you consider them annoyances or dangers, saving your bandwidth and increasing your navigation speed
也如 The test: The effect of Firefox addons on bandwidth consumption 所示,NoScript 对带宽的影响比类似 AdBlock
的插件要显着得多。
结论
因此,两者似乎都使用相同的机制来防止广告出现。
关于javascript - AdBlock(Plus) 和 NoScript 阻止内容的方式有何不同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21291425/