Commit 0c56103
committed
Add
Brave can't be told apart from Chrome through the user agent string, so
detection uses `navigator.brave` with `navigator.userAgentData.brands`
as fallback. Both are synchronous, unlike `navigator.brave.isBrave()` --
the flavor must be settled before filter lists are compiled and cached.
Brave still offers uBO in MV2, and a considerable number of Brave users
run Brave Shields and uBO at the same time. Filters which are safe on
their own can conflict when both blockers apply them, and list
maintainers currently have no way to express that:
uBlockOrigin/uAssets#34162env_brave preparser token1 parent 615a71a commit 0c56103
2 files changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
200 | 212 | | |
201 | 213 | | |
202 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
| 607 | + | |
607 | 608 | | |
608 | 609 | | |
609 | 610 | | |
| |||
4230 | 4231 | | |
4231 | 4232 | | |
4232 | 4233 | | |
| 4234 | + | |
4233 | 4235 | | |
4234 | 4236 | | |
4235 | 4237 | | |
| |||
0 commit comments