5 ms·
> How is DNR "not flexible" enough here? DNR does not allow uBO's _Block media elements larger than [x] KB_[1]. DNR does not allow to know which network reque
by gorhill 4y ago
> How is DNR "not flexible" enough here?
DNR does not allow uBO's _Block media elements larger than [x] KB_[1].
DNR does not allow to know which network request was blocked by what rule. To do so requires the `declarativeNetRequestFeedback` permission, which is available only on locally unpacked extensions, for debugging purpose. This prevents porting to MV3 uBO's overview panel[2], including the "advanced user" version to set firewall-like rules[3], and uBO's logger[4].
Furthermore, the filter-matching algorithm of DNR does not match the filter-matching algorithm of uBO regarding redirection. In uBO, redirect filters do not compete with block filters, they are looked-up after a network request has been blocked. With DNR, redirect rules competes with block rules, such that uBO's `redirect-rule=` filters can't be ported.
* * *
[1] https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-large-media-elements https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-...
[2] https://github.com/gorhill/uBlock/wiki/Quick-guide:-popup-user-interface#the-overview-panel https://github.com/gorhill/uBlock/wiki/Quick-guide:-popup-us...
[3] https://github.com/gorhill/uBlock/wiki/Dynamic-filtering:-quick-guide https://github.com/gorhill/uBlock/wiki/Dynamic-filtering:-qu...
[4] https://github.com/gorhill/uBlock/wiki/The-logger https://github.com/gorhill/uBlock/wiki/The-logger