Skip to content

Commit

Permalink
document permission_mask bit meanings
Browse files Browse the repository at this point in the history
  • Loading branch information
antonok-edm committed Sep 19, 2023
1 parent 4ecb504 commit 607fc03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ The following 4 fields are all optional and default to `false` or `0` if omitted
- `default_enabled` (`boolean`) should the component be enabled by default?
- `first_party_protections` (`boolean`) should first-party heuristics be applied to rules from the list?
- `permission_mask` (`number`) what scriptlet permissions should be granted to rules from the list?
The bits of the bitmask are currently assigned as follows:
- Bit `0`: "trusted" resources from the uBlock Origin project
- Bit `1`: resources only intended for use by Brave-authored lists
- Bits `2`-`7`: reserved

## Adding a new list

Expand Down

0 comments on commit 607fc03

Please sign in to comment.