uBlock/platform/mv3
2026-02-08 14:24:17 -05:00
..
chromium [mv3] Use "split" mode for "incognito" manifest key 2025-10-05 10:29:58 -04:00
description Import translation work from https://crowdin.com/project/ublock 2026-01-25 13:38:42 -05:00
edge [mv3][edge] Reject responseheaders rules only for non-regex rules 2025-11-23 11:16:16 -05:00
extension Import translation work from https://crowdin.com/project/ublock 2026-02-08 14:24:17 -05:00
firefox [firefox] Signal that no data collection is required 2025-11-17 12:40:04 -05:00
safari [mv3][safari] Remove image from removeparam 2026-02-02 11:06:18 -05:00
scriptlets [mv3] Avoid instantiating regexes by using simple needle first 2025-12-27 09:45:25 -05:00
make-rulesets.js [mv3] Fix regex in regex substitution rules 2026-01-21 09:40:35 -05:00
make-scriptlets.js [mv3] Need to setup scriptlet details only once 2026-01-01 13:15:44 -05:00
package.json
README.md Update README.md 2025-08-18 09:40:32 -04:00
rulesets.json Revert "[mv3][safari] Bring back "AdGuard/uBO – URL Tracking Protection"" 2026-02-03 18:00:40 -05:00
safe-replace.js Better integrate latest eslint version 2025-01-10 10:25:15 -05:00
salvage-ruleids.mjs [mv3] Fix safari build script 2025-04-19 14:39:00 -04:00

How to build MV3 uBO Lite

Instructions for reviewers.

The following assumes a linux environment.

  1. Open Bash console
  2. git clone https://github.com/gorhill/uBlock.git
  3. cd uBlock
  4. git submodule init
  5. git submodule update
  6. make mv3-[platform], where [platform] is either chromium, edge, firefox, or safari
  7. This will fully build uBO Lite, and during the process filter lists will be downloaded from their respective remote servers

Upon completion of the script, the resulting extension package will become present in:

  • Chromium: dist/build/uBOLite.chromium
  • Edge: dist/build/uBOLite.edge
  • Firefox: dist/build/uBOLite.firefox
  • Safari: dist/build/uBOLite.safari

The folder dist/build/mv3-data will cache data fetched from remote servers, so as to avoid fetching repeatedly from remote servers with repeated build commands. Use make cleanassets to remove all locally cached filter lists if you want to build with latest versions of filter lists.

The file dist/build/uBOLite.[platform]/log.txt will contain information about what happened during the build process.

The entry in the Makefile which implement the build process is tools/make-mv3.sh [platform].[1] This Bash script copy various files from uBlock Origin branch and MV3-specific branch into a single folder which will be the final extension package.

Notably, tools/make-mv3.sh [platform] calls a Nodejs script which purpose is to convert the filter lists into various rulesets to be used in a declarative way. The Nodejs version required is 17.5.0 or above.

All the final rulesets are present in the dist/build/uBOLite.[platform]/rulesets in the final extension package.


[1] c4d324362f/tools/make-mv3.sh