Add filter option synonyms for strict1p/strict3p

Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3554
This commit is contained in:
Raymond Hill 2025-03-01 16:26:46 -05:00
parent d7a103aa1c
commit 34df044808
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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 ],
@ -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 } ],