Commit Graph

39 Commits

Author SHA1 Message Date
Raymond Hill a559f5f271
Add experimental mv3 version
This create a separate Chromium extension, named
"uBO Minus (MV3)".

This experimental mv3 version supports only the blocking of
network requests through the declarativeNetRequest API, so as
to abide by the stated MV3 philosophy of not requiring broad
"read/modify data" permission. Accordingly, the extension
should not trigger the warning at installation time:

    Read and change all your data on all websites

The consequences of being permission-less are the following:

- No cosmetic filtering (##)
- No scriptlet injection (##+js)
- No redirect= filters
- No csp= filters
- No removeparam= filters

At this point there is no popup panel or options pages.

The default filterset correspond to the default filterset of
uBO proper:

Listset for 'default':
  https://ublockorigin.github.io/uAssets/filters/badware.txt
  https://ublockorigin.github.io/uAssets/filters/filters.txt
  https://ublockorigin.github.io/uAssets/filters/filters-2020.txt
  https://ublockorigin.github.io/uAssets/filters/filters-2021.txt
  https://ublockorigin.github.io/uAssets/filters/filters-2022.txt
  https://ublockorigin.github.io/uAssets/filters/privacy.txt
  https://ublockorigin.github.io/uAssets/filters/quick-fixes.txt
  https://ublockorigin.github.io/uAssets/filters/resource-abuse.txt
  https://ublockorigin.github.io/uAssets/filters/unbreak.txt
  https://easylist.to/easylist/easylist.txt
  https://easylist.to/easylist/easyprivacy.txt
  https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-online.txt
  https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext

The result of the conversion of the filters in all these
filter lists is as follow:

Ruleset size for 'default': 22245
  Good: 21408
  Maybe good (regexes): 127
  redirect-rule= (discarded): 458
  csp= (discarded): 85
  removeparams= (discarded): 22
  Unsupported: 145

The fact that the number of DNR rules are far lower than the
number of network filters reported in uBO comes from the fact
that lists-to-rulesets converter does its best to coallesce
filters into minimal set of rules. Notably, the DNR's
requestDomains condition property allows to create a single
DNR rule out of all pure hostname-based filters.

Regex-based rules are dynamically added at launch time since
they must be validated as valid DNR regexes through
isRegexSupported() API call.

At this point I consider being permission-less the limiting
factor: if broad "read/modify data" permission is to be used,
than there is not much point for an MV3 version over MV2, just
use the MV2 version if you want to benefit all the features
which can't be implemented without broad "read/modify data"
permission.

To locally build the MV3 extension:

    make mv3

Then load the resulting extension directory in the browser
using the "Load unpacked" button.

From now on there will be a uBlock0.mv3.zip package available
in each release.
2022-09-06 13:47:52 -04:00
Raymond Hill 1def4e77ac
Update submodules 2022-09-05 12:04:39 -04:00
Raymond Hill e7c7c37cdc
Update submodules 2022-08-16 09:41:52 -04:00
Raymond Hill 9675aed51a
Update submodules 2022-07-29 12:20:51 -04:00
ElectronicsArchiver deb5fea0ba Raw Links -> Link References 2022-07-19 19:19:30 -04:00
Raymond Hill 86a5d4262c
Update submodules 2022-07-18 11:26:58 -04:00
Raymond Hill 84a3330c58
Update submodules 2022-06-09 11:26:49 -04:00
Raymond Hill c0b4a13f15
Update submodules 2022-06-04 12:32:39 -04:00
Raymond Hill 240435d18a
Update submodules 2022-05-08 11:35:19 -04:00
Raymond Hill 0c7318d6f7
Update submodules 2022-03-30 10:03:28 -04:00
Raymond Hill cb4aec6583
Update submodules 2022-03-30 09:50:22 -04:00
Raymond Hill 053a7c808d
Update submodules 2022-02-17 18:07:04 -05:00
Raymond Hill 5af44a31ef
Update submodules 2022-02-07 09:34:11 -05:00
Raymond Hill 0e6d6e587b
Update submodules 2022-02-02 18:43:39 -05:00
Raymond Hill 7dc5997aa5
Update submodules 2021-12-26 07:31:39 -05:00
Raymond Hill 0493bcf4c0
Update submodules 2021-12-25 08:00:51 -05:00
Raymond Hill b44d610ffa
Update submodules 2021-12-25 07:59:01 -05:00
Raymond Hill 4735aec452
Update submodules 2021-12-22 10:30:41 -05:00
Raymond Hill ef9ca57c35
Update submodules 2021-12-11 09:54:53 -05:00
Raymond Hill 3ff3e794f2
Update submodules 2021-11-30 08:05:07 -05:00
Raymond Hill 19800f0af2
Update submodules 2021-11-22 09:09:36 -05:00
Raymond Hill 64cd70664d
Update submodules 2021-11-19 08:54:05 -05:00
Raymond Hill 0aca350914
Update submodules 2021-11-19 08:15:41 -05:00
Raymond Hill 4e81ae374f
Update submodules 2021-11-13 12:27:16 -05:00
Raymond Hill f5001c03aa
Update submodules 2021-10-26 08:11:09 -04:00
Raymond Hill f94781bafc
Update submodules 2021-10-26 07:29:35 -04:00
Raymond Hill 1b4d17ca2f
Update submodules 2021-10-26 07:20:49 -04:00
Raymond Hill c8498b911d
Update submodules 2021-10-26 07:06:52 -04:00
Raymond Hill 895aa34134
Update submodules 2021-10-09 11:00:48 -04:00
Raymond Hill 9cd69ce1bd
Update submodules 2021-09-30 08:51:01 -04:00
Raymond Hill 33dd0104cc
Update submodules 2021-09-17 15:38:32 -04:00
Raymond Hill 5efa2f2e4c
Update submodules 2021-09-13 10:53:23 -04:00
Raymond Hill a5c5a7df5e
Update submodules 2021-09-09 08:13:35 -04:00
Raymond Hill 68b15ed5d8
Update submodules 2021-09-07 13:49:43 -04:00
Raymond Hill 79a2678f00
Update submodules 2021-08-29 12:23:02 -04:00
Raymond Hill 03f4ac77da
Update to current state of uAssets 2021-07-31 14:51:10 -04:00
Raymond Hill 5ce30d7163
Update submodules 2021-07-29 11:39:11 -04:00
Raymond Hill 0757c44552
Update submodules 2021-07-29 11:31:48 -04:00
Manish Jethani 63591ef2aa Make uAssets a submodule 2021-07-29 19:36:49 +05:30