This is a sample extension, presenting common usages of TSWebExtension library in manifest v3 extensions.
The idea is to provide an operative scheme of the extension and to show some cases with manifest v3 limitations:
- Precompile rules to json See more
Builds an extension ready to use:
pnpm build
Updates and converts rules from the provided path to a set of declarative rules:
pnpm build:precompile-rules
-
Extension will be automatically turned on filtering after installed. To check work of filters - go to https://canyoublockit.com/testing/. Site will be blocked.
-
Filters. You can toggle any of filters. For example, you can turn off. "Filter 2", go to https://canyoublockit.com/testing/ - site will open.
-
User rules. You can apply any custom user rules, for example rule
||example.org$document
. Then, click "Apply" and go to https://example.org, the site will be blocked. -
Cosmetic rules at now applies with huge (about 2 seconds) latency.
-
Declarative filtering log. You can open the developer tools, go to the "AdGuard" tab, and see what declarative network rules have been applied to the page.