This repo contains JavaScript code used by Brave for procedural filtering (see brave/brave-core#24688).
More information about procedural filtering can be found on the uBlock Origin wiki.
You can test this code in two ways:
- Run
npm run serve
and then visit the server onhttp://localhost:8080
. On every test page, you can runtestResult()
in the dev console to confirm that elements are hidden or shown correctly. - Run
npm run test
for automatic tests powered by Playwright.