Skip to content

Commit

Permalink
Add filter option synonyms for strict1p/strict3p
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Mar 1, 2025
1 parent d7a103a commit 34df044
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/static-filtering-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,11 @@ export const nodeTypeFromOptionName = new Map([
[ '1p', NODE_TYPE_NET_OPTION_NAME_1P ],
/* synonym */ [ 'first-party', NODE_TYPE_NET_OPTION_NAME_1P ],
[ 'strict1p', NODE_TYPE_NET_OPTION_NAME_STRICT1P ],
/* synonym */ [ 'strict-first-party', NODE_TYPE_NET_OPTION_NAME_STRICT1P ],
[ '3p', NODE_TYPE_NET_OPTION_NAME_3P ],
/* synonym */ [ 'third-party', NODE_TYPE_NET_OPTION_NAME_3P ],
[ 'strict3p', NODE_TYPE_NET_OPTION_NAME_STRICT3P ],
/* synonym */ [ 'strict-third-party', NODE_TYPE_NET_OPTION_NAME_STRICT3P ],
[ 'all', NODE_TYPE_NET_OPTION_NAME_ALL ],
[ 'badfilter', NODE_TYPE_NET_OPTION_NAME_BADFILTER ],
[ 'cname', NODE_TYPE_NET_OPTION_NAME_CNAME ],
Expand Down Expand Up @@ -3036,9 +3038,11 @@ export const netOptionTokenDescriptors = new Map([
[ '1p', { canNegate: true } ],
/* synonym */ [ 'first-party', { canNegate: true } ],
[ 'strict1p', { } ],
/* synonym */ [ 'strict-first-party', { } ],
[ '3p', { canNegate: true } ],
/* synonym */ [ 'third-party', { canNegate: true } ],
[ 'strict3p', { } ],
/* synonym */ [ 'strict-third-party', { } ],
[ 'all', { } ],
[ 'badfilter', { } ],
[ 'cname', { allowOnly: true } ],
Expand Down

0 comments on commit 34df044

Please sign in to comment.