ublock origin_Chrome可能会在打破uBlock起源的同时更快地阻止广告

ublock origin

ublock origin

Ad blocker uBlock Origin “can no longer exist” if a proposed change to Chrome goes through. That’s according to Raymond Hill, the developer of uBlock Origin and uMatrix, in a comment on Chromium’s bug tracker.

如果对Chrome的更改建议通过,则广告阻止程序uBlock Origin将“不再存在”。 这是uBlock Origin和uMatrix的开发人员Raymond Hill所说的,它评论了Chromium的bug跟踪器。

As spotted by The Register, Google engineers are proposing this change in the Chromium project’s bug tracker. Chromium is the open-source browser that forms the basis for Google Chrome, Opera, and soon Microsoft Edge.

正如The Register所指出的那样,Google工程师正在Chromium项目的错误跟踪器中提出这一更改。 Chromium是一种开放源代码的浏览器,是Google Chrome,Opera以及不久的Microsoft Edge的基础。

Don’t worry, though: This won’t break ad blockers entirely. Instead, Google engineers are taking permissions away from browser extensions. Right now, ad blockers and other extensions use the “webRequest” API to listen for events during web page loads and block them.

不过请放心:这不会完全破坏广告拦截器。 相反,Google工程师正在剥夺浏览器扩展的权限。 目前,广告拦截器和其他扩展程序使用“ webRequest ” API来侦听网页加载期间的事件并将其阻止。

If the proposed change goes through, extensions won’t be able to block events with this API. Extensions can only watch these events, and that should speed up page load times. Chrome won’t have to wait for extensions to weigh in while loading a page.

如果建议的更改通过,则扩展将无法使用此API阻止事件。 扩展程序只能监视这些事件,这将加快页面加载时间。 Chrome浏览器在加载页面时不必等待扩展程序扩展。

Ad blockers must use the “declarativeNetRequest” API to tell Chrome what they want to block. Chrome itself does the blocking without waiting for extensions to respond, and this should be faster. However, declarativeNetRequest uses an Adblock Plus-style filtering system.

广告拦截者必须使用“ declarativeNetRequest ” API告诉Chrome他们要拦截的内容。 Chrome本身无需等待扩展程序响应即可执行阻止操作,这应该更快。 但是,declarativeNetRequest使用Adblock Plus样式的过滤系统。

Raymond Hill notes that, if this change goes through, ad blocker uBlock Origin and content filter uMatrix can’t do anything special:

雷蒙德·希尔(Raymond Hill)指出,如果更改成功,广告拦截器uBlock Origin和内容过滤器uMatrix将无法执行任何特殊操作:

If this (quite limited) declarativeNetRequest API ends up being the only way content blockers can accomplish their duty, this essentially means that two content blockers I have maintained for years, uBlock Origin (“uBO”) and uMatrix, can no longer exist.

如果这种(非常有限的)declarativeNetRequest API最终成为内容阻止程序可以完成其职责的唯一方式,则从本质上讲,这意味着我多年维护的两个内容阻止程序uBlock Origin(“ uBO”)和uMatrix,将不再存在。

Beside causing uBO and uMatrix to no longer be able to exist, it’s really concerning that the proposed declarativeNetRequest API will make it impossible to come up with new and novel filtering engine designs, as the declarativeNetRequest API is no more than the implementation of one specific filtering engine, and a rather limited one (the 30,000 limit is not sufficient to enforce the famous EasyList alone).

除了使uBO和uMatrix不再存在之外,令人担忧的是,提议的declarativeNetRequest API将不可能提出新颖的过滤引擎设计,因为declarativeNetRequest API仅是一种特定过滤的实现引擎和一个相当有限的引擎(30,000的限制不足以单独执行著名的EasyList)。

Even Hill notes that ad blockers aren’t going away if this goes through. This change may speed up Chrome by limiting what all browser extensions can do—ad blocking extensions and other extensions. Chrome will be similar to Apple’s Safari browser, which now supports “content blockers” that operate in a speedy, standard way.

连希尔都指出,广告拦截器不会消失。 此更改可能会通过限制所有浏览器扩展的功能(阻止广告扩展和其他扩展)来加快Chrome的速度。 Chrome浏览器将类似于Apple的Safari浏览器,该浏览器现在支持以快速,标准的方式运行的“ 内容阻止程序 ”。

It’s a tradeoff. Browser extensions like uBlock Origin can no longer implement their own filtering engine, but the filtering engine will be a speedy one built into Chrome itself. The whole industry has been moving toward more limited browser extensions. Despite what some people have feared, Google isn’t using this as an opportunity to kill off ad blockers.

这是一个权衡。 像uBlock Origin这样的浏览器扩展无法再实现自己的过滤引擎,但是该过滤引擎将是Chrome内置的快速引擎。 整个行业一直在朝着更有限的浏览器扩展方向发展。 尽管有人担心,但Google并未以此为契机消灭广告拦截器。

翻译自: https://www.howtogeek.com/fyi/chrome-may-get-faster-ad-blocking-while-breaking-ublock-origin/

ublock origin

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
一款高效的请求过滤工具:占用极低的内存和CPU,和其他常见的过滤工具相比,它能够加载并执行上千条过滤规则。 效率概述说明: https://github.com/gorhill/uBlock/wiki/uBlock-vs.-ABP:-efficiency-compared 用法:点击弹出窗口中的电源按钮,uBlock 将对当前网页永久禁用/启用过滤功能。 它只控制当前网页的请求过滤,而不是一个全局开关。 它只控制当前网页的请求过滤,而不是一个全局开关。 *** 它不只是一个广告拦截工具,它还可以从 hosts 文件里读取和创建过滤规则。 初始默认加载和执行下列过滤规则列表: - EasyList - Peter Lowe’s Ad server list - EasyPrivacy - Malware domains 这里还有更多的规则列表供你选择: - Fanboy’s Enhanced Tracking List - Dan Pollock’s hosts file - hpHosts’s Ad and tracking servers - MVPS HOSTS - Spam404 - 等等 当然,启用越多的过滤规则就产生越高的内存占用。 然而,即使再添加 Fanboy 额外的两个规则列表,如 hpHosts’s Ad 和 tracking servers,uBlock 的内存占用依然比其他常见的过滤工具要低的多。 另外请注意,选择一些额外的列表可能导致网页破损可能性增高 —— 尤其是那些通常被用作 hosts 文件的列表。 *** 没有这些过滤规则列表,这个扩展就没有了意义。 所以如果你真的想做点贡献,想想那些维护过滤规则的人们,是他们让所有人能够免费使用这一切变得可能。 *** 免费。 遵从 GPLv3 公共许可协议开源。 一切为了用户。 贡献者 @ Github: https://github.com/gorhill/uBlock/graphs/contributors 贡献者 @ Crowdin: https://crowdin.net/project/ublock *** 它还是一个相当早期的版本,在您评论的时候请记住这一点。 项目更新日志: https://github.com/gorhill/uBlock/releases
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值