@duckduckgo/autoconsent 18.5.0 → 18.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/ci/asana-create-release-task.js +5 -1
- package/dist/addon-firefox/background.bundle.js +1 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +9 -6
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rule-index.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/background.bundle.js +1 -0
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +9 -6
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.cjs.js +9 -6
- package/dist/autoconsent.esm.js +9 -6
- package/dist/autoconsent.playwright.js +9 -6
- package/dist/autoconsent.standalone.js +10 -7
- package/dist/heuristics.cjs.js +8 -6
- package/dist/heuristics.mjs +8 -6
- package/dist/types/eval-snippets.d.ts +1 -0
- package/lib/eval-snippets.ts +1 -0
- package/lib/heuristic-literals.ts +1 -0
- package/lib/heuristic-patterns.ts +7 -5
- package/package.json +1 -1
- package/rules/autoconsent/anthropic.json +4 -4
- package/rules/autoconsent/burpee-com.json +5 -1
- package/rules/autoconsent/jobmount.json +26 -0
- package/rules/autoconsent/mediamarkt-de.json +12 -2
- package/rules/autoconsent/posthog.com.json +12 -0
- package/rules/autoconsent/sirdata.json +1 -1
- package/rules/autoconsent/walmart-ca.json +13 -2
- package/rules/autoconsent/wbd-legal-terms.json +4 -5
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/anthropic.spec.ts +1 -1
- package/tests/jobmount.spec.ts +3 -0
- package/tests/mediamarkt.spec.ts +1 -1
- package/tests/posthog.com.spec.ts +3 -0
- package/tests/trustarc.spec.ts +6 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +11 -0
package/dist/heuristics.cjs.js
CHANGED
|
@@ -185,6 +185,7 @@ var DETECT_PATTERNS = [
|
|
|
185
185
|
VERWENDUNG_VON_COOKIES,
|
|
186
186
|
/wir.{0,100}nutzen.{0,100}cookies/gi,
|
|
187
187
|
/verwendet.{0,100}cookies/gi,
|
|
188
|
+
/nutzt.{0,100}cookies/gi,
|
|
188
189
|
/sie.{0,100}können.{0,100}ihre.{0,100}auswahl/gi,
|
|
189
190
|
/und.{0,100}ähnliche.{0,100}technologien/gi,
|
|
190
191
|
/cookies.{0,100}wir.{0,100}verwenden/gi,
|
|
@@ -478,6 +479,8 @@ var REJECT_PATTERNS_GERMAN = [
|
|
|
478
479
|
/verweiger/is,
|
|
479
480
|
// essential/necessary/functional-only variants (accepting only necessary → reject)
|
|
480
481
|
/^\s*(nur|ausschließlich|lediglich|weiter\s+mit|mit|akzeptiere?n?|unbedingt|es\s+werden\s+nur)?\s*(technisch\s+)?(notwendige?[nrs]?|essenzielle?[nrs]?|essentielle?[nrs]?|erforderliche?[nrs]?|funktionale?[nrs]?|funktionelle?[nrs]?|wesentliche?[nrs]?)\s*(cookies?|technologien|funktionscookies|dienste)?\s*(akzeptieren|erlauben|zulassen|verwenden|annehmen|setzen|speichern|zustimmen|auswählen)?\.?\s*$/is,
|
|
482
|
+
// continue with only necessary/functional cookies
|
|
483
|
+
/^(weiter\s+|nur\s+)?mit\s+(nur\s+|ausschließlich\s+|lediglich\s+)?(den\s+)?(technisch\s+)?(notwendigen|essenziellen|essentiellen|erforderlichen|funktionalen|funktionellen)\s+(cookies\s+)?fortfahren\.?$/is,
|
|
481
484
|
// continue without consent
|
|
482
485
|
/(^|\s)(ohne\s+(zu\s+)?(einwilligung|zustimmung|einverständnis|annahme|annehmen|akzeptanz|akzeptieren)|(weiter|fortfahren)\s+ohne)/is,
|
|
483
486
|
// negations / refusals not covered by the regexes above
|
|
@@ -487,9 +490,7 @@ var REJECT_PATTERNS_GERMAN = [
|
|
|
487
490
|
"nicht zustimmen",
|
|
488
491
|
"nicht einverstanden",
|
|
489
492
|
"ich lehne ab",
|
|
490
|
-
"mit erforderlichen einstellungen fortfahren"
|
|
491
|
-
"mit erforderlichen cookies fortfahren",
|
|
492
|
-
"mit notwendigen fortfahren"
|
|
493
|
+
"mit erforderlichen einstellungen fortfahren"
|
|
493
494
|
];
|
|
494
495
|
var REJECT_PATTERNS_ITALIAN = [
|
|
495
496
|
// rifiuta / rifiutare / rifiuto / nega / negare / blocca (reject verbs)
|
|
@@ -519,7 +520,7 @@ var REJECT_PATTERNS_SPANISH = [
|
|
|
519
520
|
// "rechazar y pagar" / "rechazar y suscribirse" are excluded via BUTTON_NEVER_MATCH_PATTERNS
|
|
520
521
|
/(^|\s)(rechaz|recház|deneg|negar|declin)/is,
|
|
521
522
|
// accept/allow/use (only) necessary / essential / technical / functional / own
|
|
522
|
-
/^\s*(aceptar?|acepta|permitir|permite|usar|utilizar)?\s*(solo|sólo|només|únicamente)?\s*(las?\s+|los\s+)?(cookies?\s+)?(estrictamente\s+)?(necesari\w*|esencial\w*|técnic\w*|obligatori\w*|funcional\w*|propias)\s*$/is,
|
|
523
|
+
/^\s*(aceptar?|acepta|permitir|permite|usar|utilizar)?\s*(solo|sólo|només|únicamente)?\s*(las?\s+|los\s+)?(cookies?\s+)?(estrictamente\s+)?(necesari\w*|esencial\w*|imprescindibl\w*|técnic\w*|obligatori\w*|funcional\w*|propias)\s*$/is,
|
|
523
524
|
// "solo/sólo/no, sólo ... necessary/essential"
|
|
524
525
|
/^(no,?\s+)?(solo|sólo|només)\s+(usar\s+|las?\s+|los\s+|lo\s+)?.{0,20}(necesari|esencial|estrictamente)/is,
|
|
525
526
|
// refusals / opt-outs
|
|
@@ -647,7 +648,7 @@ var BUTTON_NEVER_MATCH_PATTERNS = [
|
|
|
647
648
|
/suscríbete/,
|
|
648
649
|
/sin cookies .{0,10}euro/s,
|
|
649
650
|
// Polish (PL)
|
|
650
|
-
/subskrybuj/,
|
|
651
|
+
/subskrybuj|subskrypcj/,
|
|
651
652
|
// Russian (RU): paywall/subscription wording, e.g. "отказаться от подписки", "оплатить"
|
|
652
653
|
/подписатьс|подписк|оплатит|оплачива/is
|
|
653
654
|
];
|
|
@@ -962,7 +963,7 @@ var ACKNOWLEDGE_PATTERNS = [
|
|
|
962
963
|
// "ok" / "okay" / "oké" (optionally followed by a short acknowledgement)
|
|
963
964
|
/^(ok|okay|oké|okey|k)([ .!,]*)(got it|verstanden|compris|rozumiem|thanks|gracias|ik begrijp( dat| het)?|continue to website|pour moi|fermer)?[ .!]*$/is,
|
|
964
965
|
// "understood" / "got it" / "that's ok" (multilingual)
|
|
965
|
-
/^(i understand|understood|got it|thats (ok|fine|okay)|alright|alles klar|in ordnung|verstanden|begrepen|jai compris|je comprends|compris|ik begrijp het|ik snap het|entendido|c(e)?st ok pour moi)[ !.,]*(merci|bedankt|dismiss this banner)?[ !.]*$/is,
|
|
966
|
+
/^(i understand|understood|got it|thats (ok|fine|okay)|alright|alles klar|in ordnung|verstanden|ich verstehe|ho capito|jag förstår|begrepen|jai compris|je comprends|compris|ik begrijp het|ik snap het|entendido|c(e)?st ok pour moi)[ !.,]*(merci|bedankt|dismiss this banner)?[ !.]*$/is,
|
|
966
967
|
// confirm
|
|
967
968
|
/^(confirm|bestätigen|bevestigen|confirmar|potwierdź)[ !.]*$/is,
|
|
968
969
|
// neutral "continue" without accept/reject wording
|
|
@@ -1241,6 +1242,7 @@ var DETECT_PATTERN_LITERALS = [
|
|
|
1241
1242
|
["verwendung"],
|
|
1242
1243
|
["cookies"],
|
|
1243
1244
|
["verwendet"],
|
|
1245
|
+
["cookies"],
|
|
1244
1246
|
["auswahl"],
|
|
1245
1247
|
["technologien"],
|
|
1246
1248
|
["verwenden"],
|
package/dist/heuristics.mjs
CHANGED
|
@@ -133,6 +133,7 @@ var DETECT_PATTERNS = [
|
|
|
133
133
|
VERWENDUNG_VON_COOKIES,
|
|
134
134
|
/wir.{0,100}nutzen.{0,100}cookies/gi,
|
|
135
135
|
/verwendet.{0,100}cookies/gi,
|
|
136
|
+
/nutzt.{0,100}cookies/gi,
|
|
136
137
|
/sie.{0,100}können.{0,100}ihre.{0,100}auswahl/gi,
|
|
137
138
|
/und.{0,100}ähnliche.{0,100}technologien/gi,
|
|
138
139
|
/cookies.{0,100}wir.{0,100}verwenden/gi,
|
|
@@ -426,6 +427,8 @@ var REJECT_PATTERNS_GERMAN = [
|
|
|
426
427
|
/verweiger/is,
|
|
427
428
|
// essential/necessary/functional-only variants (accepting only necessary → reject)
|
|
428
429
|
/^\s*(nur|ausschließlich|lediglich|weiter\s+mit|mit|akzeptiere?n?|unbedingt|es\s+werden\s+nur)?\s*(technisch\s+)?(notwendige?[nrs]?|essenzielle?[nrs]?|essentielle?[nrs]?|erforderliche?[nrs]?|funktionale?[nrs]?|funktionelle?[nrs]?|wesentliche?[nrs]?)\s*(cookies?|technologien|funktionscookies|dienste)?\s*(akzeptieren|erlauben|zulassen|verwenden|annehmen|setzen|speichern|zustimmen|auswählen)?\.?\s*$/is,
|
|
430
|
+
// continue with only necessary/functional cookies
|
|
431
|
+
/^(weiter\s+|nur\s+)?mit\s+(nur\s+|ausschließlich\s+|lediglich\s+)?(den\s+)?(technisch\s+)?(notwendigen|essenziellen|essentiellen|erforderlichen|funktionalen|funktionellen)\s+(cookies\s+)?fortfahren\.?$/is,
|
|
429
432
|
// continue without consent
|
|
430
433
|
/(^|\s)(ohne\s+(zu\s+)?(einwilligung|zustimmung|einverständnis|annahme|annehmen|akzeptanz|akzeptieren)|(weiter|fortfahren)\s+ohne)/is,
|
|
431
434
|
// negations / refusals not covered by the regexes above
|
|
@@ -435,9 +438,7 @@ var REJECT_PATTERNS_GERMAN = [
|
|
|
435
438
|
"nicht zustimmen",
|
|
436
439
|
"nicht einverstanden",
|
|
437
440
|
"ich lehne ab",
|
|
438
|
-
"mit erforderlichen einstellungen fortfahren"
|
|
439
|
-
"mit erforderlichen cookies fortfahren",
|
|
440
|
-
"mit notwendigen fortfahren"
|
|
441
|
+
"mit erforderlichen einstellungen fortfahren"
|
|
441
442
|
];
|
|
442
443
|
var REJECT_PATTERNS_ITALIAN = [
|
|
443
444
|
// rifiuta / rifiutare / rifiuto / nega / negare / blocca (reject verbs)
|
|
@@ -467,7 +468,7 @@ var REJECT_PATTERNS_SPANISH = [
|
|
|
467
468
|
// "rechazar y pagar" / "rechazar y suscribirse" are excluded via BUTTON_NEVER_MATCH_PATTERNS
|
|
468
469
|
/(^|\s)(rechaz|recház|deneg|negar|declin)/is,
|
|
469
470
|
// accept/allow/use (only) necessary / essential / technical / functional / own
|
|
470
|
-
/^\s*(aceptar?|acepta|permitir|permite|usar|utilizar)?\s*(solo|sólo|només|únicamente)?\s*(las?\s+|los\s+)?(cookies?\s+)?(estrictamente\s+)?(necesari\w*|esencial\w*|técnic\w*|obligatori\w*|funcional\w*|propias)\s*$/is,
|
|
471
|
+
/^\s*(aceptar?|acepta|permitir|permite|usar|utilizar)?\s*(solo|sólo|només|únicamente)?\s*(las?\s+|los\s+)?(cookies?\s+)?(estrictamente\s+)?(necesari\w*|esencial\w*|imprescindibl\w*|técnic\w*|obligatori\w*|funcional\w*|propias)\s*$/is,
|
|
471
472
|
// "solo/sólo/no, sólo ... necessary/essential"
|
|
472
473
|
/^(no,?\s+)?(solo|sólo|només)\s+(usar\s+|las?\s+|los\s+|lo\s+)?.{0,20}(necesari|esencial|estrictamente)/is,
|
|
473
474
|
// refusals / opt-outs
|
|
@@ -595,7 +596,7 @@ var BUTTON_NEVER_MATCH_PATTERNS = [
|
|
|
595
596
|
/suscríbete/,
|
|
596
597
|
/sin cookies .{0,10}euro/s,
|
|
597
598
|
// Polish (PL)
|
|
598
|
-
/subskrybuj/,
|
|
599
|
+
/subskrybuj|subskrypcj/,
|
|
599
600
|
// Russian (RU): paywall/subscription wording, e.g. "отказаться от подписки", "оплатить"
|
|
600
601
|
/подписатьс|подписк|оплатит|оплачива/is
|
|
601
602
|
];
|
|
@@ -910,7 +911,7 @@ var ACKNOWLEDGE_PATTERNS = [
|
|
|
910
911
|
// "ok" / "okay" / "oké" (optionally followed by a short acknowledgement)
|
|
911
912
|
/^(ok|okay|oké|okey|k)([ .!,]*)(got it|verstanden|compris|rozumiem|thanks|gracias|ik begrijp( dat| het)?|continue to website|pour moi|fermer)?[ .!]*$/is,
|
|
912
913
|
// "understood" / "got it" / "that's ok" (multilingual)
|
|
913
|
-
/^(i understand|understood|got it|thats (ok|fine|okay)|alright|alles klar|in ordnung|verstanden|begrepen|jai compris|je comprends|compris|ik begrijp het|ik snap het|entendido|c(e)?st ok pour moi)[ !.,]*(merci|bedankt|dismiss this banner)?[ !.]*$/is,
|
|
914
|
+
/^(i understand|understood|got it|thats (ok|fine|okay)|alright|alles klar|in ordnung|verstanden|ich verstehe|ho capito|jag förstår|begrepen|jai compris|je comprends|compris|ik begrijp het|ik snap het|entendido|c(e)?st ok pour moi)[ !.,]*(merci|bedankt|dismiss this banner)?[ !.]*$/is,
|
|
914
915
|
// confirm
|
|
915
916
|
/^(confirm|bestätigen|bevestigen|confirmar|potwierdź)[ !.]*$/is,
|
|
916
917
|
// neutral "continue" without accept/reject wording
|
|
@@ -1189,6 +1190,7 @@ var DETECT_PATTERN_LITERALS = [
|
|
|
1189
1190
|
["verwendung"],
|
|
1190
1191
|
["cookies"],
|
|
1191
1192
|
["verwendet"],
|
|
1193
|
+
["cookies"],
|
|
1192
1194
|
["auswahl"],
|
|
1193
1195
|
["technologien"],
|
|
1194
1196
|
["verwenden"],
|
|
@@ -61,6 +61,7 @@ export declare const snippets: {
|
|
|
61
61
|
EVAL_NHNIEUWS_TEST: () => boolean;
|
|
62
62
|
EVAL_OSANO_DETECT: () => boolean;
|
|
63
63
|
EVAL_PANDECTES_TEST: () => boolean;
|
|
64
|
+
EVAL_POSTHOG_TEST: () => boolean;
|
|
64
65
|
EVAL_POVR_GOBACK: () => boolean;
|
|
65
66
|
EVAL_PUBTECH_0: () => false | RegExpMatchArray | null;
|
|
66
67
|
EVAL_SHOPIFY_TEST: () => boolean;
|
package/lib/eval-snippets.ts
CHANGED
|
@@ -219,6 +219,7 @@ export const snippets = {
|
|
|
219
219
|
.split('=')[1],
|
|
220
220
|
),
|
|
221
221
|
).status === 'deny',
|
|
222
|
+
EVAL_POSTHOG_TEST: () => localStorage.getItem('cookie_consent') === 'acknowledged',
|
|
222
223
|
EVAL_POVR_GOBACK: () => window.history.back() || true,
|
|
223
224
|
EVAL_PUBTECH_0: () =>
|
|
224
225
|
document.cookie.includes('euconsent-v2') &&
|
|
@@ -144,6 +144,7 @@ export const DETECT_PATTERNS: DetectPattern[] = [
|
|
|
144
144
|
VERWENDUNG_VON_COOKIES,
|
|
145
145
|
/wir.{0,100}nutzen.{0,100}cookies/gi,
|
|
146
146
|
/verwendet.{0,100}cookies/gi,
|
|
147
|
+
/nutzt.{0,100}cookies/gi,
|
|
147
148
|
/sie.{0,100}können.{0,100}ihre.{0,100}auswahl/gi,
|
|
148
149
|
/und.{0,100}ähnliche.{0,100}technologien/gi,
|
|
149
150
|
/cookies.{0,100}wir.{0,100}verwenden/gi,
|
|
@@ -476,6 +477,9 @@ const REJECT_PATTERNS_GERMAN = [
|
|
|
476
477
|
// essential/necessary/functional-only variants (accepting only necessary → reject)
|
|
477
478
|
/^\s*(nur|ausschließlich|lediglich|weiter\s+mit|mit|akzeptiere?n?|unbedingt|es\s+werden\s+nur)?\s*(technisch\s+)?(notwendige?[nrs]?|essenzielle?[nrs]?|essentielle?[nrs]?|erforderliche?[nrs]?|funktionale?[nrs]?|funktionelle?[nrs]?|wesentliche?[nrs]?)\s*(cookies?|technologien|funktionscookies|dienste)?\s*(akzeptieren|erlauben|zulassen|verwenden|annehmen|setzen|speichern|zustimmen|auswählen)?\.?\s*$/is,
|
|
478
479
|
|
|
480
|
+
// continue with only necessary/functional cookies
|
|
481
|
+
/^(weiter\s+|nur\s+)?mit\s+(nur\s+|ausschließlich\s+|lediglich\s+)?(den\s+)?(technisch\s+)?(notwendigen|essenziellen|essentiellen|erforderlichen|funktionalen|funktionellen)\s+(cookies\s+)?fortfahren\.?$/is,
|
|
482
|
+
|
|
479
483
|
// continue without consent
|
|
480
484
|
/(^|\s)(ohne\s+(zu\s+)?(einwilligung|zustimmung|einverständnis|annahme|annehmen|akzeptanz|akzeptieren)|(weiter|fortfahren)\s+ohne)/is,
|
|
481
485
|
|
|
@@ -487,8 +491,6 @@ const REJECT_PATTERNS_GERMAN = [
|
|
|
487
491
|
'nicht einverstanden',
|
|
488
492
|
'ich lehne ab',
|
|
489
493
|
'mit erforderlichen einstellungen fortfahren',
|
|
490
|
-
'mit erforderlichen cookies fortfahren',
|
|
491
|
-
'mit notwendigen fortfahren',
|
|
492
494
|
];
|
|
493
495
|
|
|
494
496
|
const REJECT_PATTERNS_ITALIAN = [
|
|
@@ -530,7 +532,7 @@ const REJECT_PATTERNS_SPANISH = [
|
|
|
530
532
|
/(^|\s)(rechaz|recház|deneg|negar|declin)/is,
|
|
531
533
|
|
|
532
534
|
// accept/allow/use (only) necessary / essential / technical / functional / own
|
|
533
|
-
/^\s*(aceptar?|acepta|permitir|permite|usar|utilizar)?\s*(solo|sólo|només|únicamente)?\s*(las?\s+|los\s+)?(cookies?\s+)?(estrictamente\s+)?(necesari\w*|esencial\w*|técnic\w*|obligatori\w*|funcional\w*|propias)\s*$/is,
|
|
535
|
+
/^\s*(aceptar?|acepta|permitir|permite|usar|utilizar)?\s*(solo|sólo|només|únicamente)?\s*(las?\s+|los\s+)?(cookies?\s+)?(estrictamente\s+)?(necesari\w*|esencial\w*|imprescindibl\w*|técnic\w*|obligatori\w*|funcional\w*|propias)\s*$/is,
|
|
534
536
|
|
|
535
537
|
// "solo/sólo/no, sólo ... necessary/essential"
|
|
536
538
|
/^(no,?\s+)?(solo|sólo|només)\s+(usar\s+|las?\s+|los\s+|lo\s+)?.{0,20}(necesari|esencial|estrictamente)/is,
|
|
@@ -698,7 +700,7 @@ export const BUTTON_NEVER_MATCH_PATTERNS = [
|
|
|
698
700
|
/sin cookies .{0,10}euro/s,
|
|
699
701
|
|
|
700
702
|
// Polish (PL)
|
|
701
|
-
/subskrybuj/,
|
|
703
|
+
/subskrybuj|subskrypcj/,
|
|
702
704
|
|
|
703
705
|
// Russian (RU): paywall/subscription wording, e.g. "отказаться от подписки", "оплатить"
|
|
704
706
|
/подписатьс|подписк|оплатит|оплачива/is,
|
|
@@ -1051,7 +1053,7 @@ export const ACKNOWLEDGE_PATTERNS = [
|
|
|
1051
1053
|
/^(ok|okay|oké|okey|k)([ .!,]*)(got it|verstanden|compris|rozumiem|thanks|gracias|ik begrijp( dat| het)?|continue to website|pour moi|fermer)?[ .!]*$/is,
|
|
1052
1054
|
|
|
1053
1055
|
// "understood" / "got it" / "that's ok" (multilingual)
|
|
1054
|
-
/^(i understand|understood|got it|thats (ok|fine|okay)|alright|alles klar|in ordnung|verstanden|begrepen|jai compris|je comprends|compris|ik begrijp het|ik snap het|entendido|c(e)?st ok pour moi)[ !.,]*(merci|bedankt|dismiss this banner)?[ !.]*$/is,
|
|
1056
|
+
/^(i understand|understood|got it|thats (ok|fine|okay)|alright|alles klar|in ordnung|verstanden|ich verstehe|ho capito|jag förstår|begrepen|jai compris|je comprends|compris|ik begrijp het|ik snap het|entendido|c(e)?st ok pour moi)[ !.,]*(merci|bedankt|dismiss this banner)?[ !.]*$/is,
|
|
1055
1057
|
|
|
1056
1058
|
// confirm
|
|
1057
1059
|
/^(confirm|bestätigen|bevestigen|confirmar|potwierdź)[ !.]*$/is,
|
package/package.json
CHANGED
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
"prehideSelectors": [],
|
|
5
5
|
"detectCmp": [
|
|
6
6
|
{
|
|
7
|
-
"exists": "
|
|
7
|
+
"exists": "[data-testid='consent-banner']:has(a[href='https://www.anthropic.com/legal/cookies'])"
|
|
8
8
|
}
|
|
9
9
|
],
|
|
10
10
|
"detectPopup": [
|
|
11
11
|
{
|
|
12
|
-
"visible": "
|
|
12
|
+
"visible": "[data-testid='consent-banner']:has(a[href='https://www.anthropic.com/legal/cookies'])"
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"optIn": [
|
|
16
16
|
{
|
|
17
|
-
"waitForThenClick": "
|
|
17
|
+
"waitForThenClick": "[data-testid='consent-banner'] button[data-testid='consent-accept']"
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"optOut": [
|
|
21
21
|
{
|
|
22
|
-
"waitForThenClick": "
|
|
22
|
+
"waitForThenClick": "[data-testid='consent-banner'] button[data-testid='consent-reject']"
|
|
23
23
|
}
|
|
24
24
|
],
|
|
25
25
|
"test": [
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
"name": "burpee.com",
|
|
3
3
|
"minimumRuleStepVersion": 2,
|
|
4
4
|
"prehideSelectors": [".cookie-modal", "#notice-cookie-block"],
|
|
5
|
-
"detectCmp": [
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{ "exists": "#notice-cookie-block" },
|
|
7
|
+
{ "exists": "#notice-cookie-block #cm-selectSpecific", "negated": true },
|
|
8
|
+
{ "any": [{ "visible": "#notice-cookie-block" }, { "cookieContains": "user_allowed_save_cookie=", "negated": true }] }
|
|
9
|
+
],
|
|
6
10
|
"detectPopup": [{ "visible": "#html-body #notice-cookie-block" }],
|
|
7
11
|
"optIn": [
|
|
8
12
|
{
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "jobmount",
|
|
3
|
+
"vendorUrl": "https://www.jobboardmount.com/",
|
|
4
|
+
"cosmetic": true,
|
|
5
|
+
"prehideSelectors": ["#cookiesAlertMsg.cookies-alert"],
|
|
6
|
+
"detectCmp": [
|
|
7
|
+
{
|
|
8
|
+
"exists": "#cookiesAlertMsg.cookies-alert #cookies_alert_btn"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"detectPopup": [
|
|
12
|
+
{
|
|
13
|
+
"visible": "#cookiesAlertMsg.cookies-alert"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"optIn": [
|
|
17
|
+
{
|
|
18
|
+
"waitForThenClick": "#cookies_alert_btn"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"optOut": [
|
|
22
|
+
{
|
|
23
|
+
"hide": "#cookiesAlertMsg.cookies-alert"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
"prehideSelectors": ["div[aria-labelledby=pwa-consent-layer-title]", "div[class^=StyledConsentLayerWrapper-]"],
|
|
4
4
|
"detectCmp": [{ "exists": "div[aria-labelledby^=pwa-consent-layer-title]" }],
|
|
5
5
|
"detectPopup": [{ "exists": "div[aria-labelledby^=pwa-consent-layer-title]" }],
|
|
6
|
-
"optOut": [
|
|
7
|
-
|
|
6
|
+
"optOut": [
|
|
7
|
+
{
|
|
8
|
+
"if": { "exists": "button[data-test^=pwa-consent-layer-deny-all]" },
|
|
9
|
+
"then": [{ "click": "button[data-test^=pwa-consent-layer-deny-all]" }],
|
|
10
|
+
"else": [
|
|
11
|
+
{ "click": "form[data-test=pwa-consent-layer] [role=switch][aria-checked=true]", "all": true, "optional": true },
|
|
12
|
+
{ "waitForThenClick": "button[data-test^=pwa-consent-layer-save-settings]" }
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"optIn": [{ "click": "button[data-test^=pwa-consent-layer-accept-all]" }],
|
|
17
|
+
"test": [{ "wait": 1000 }, { "cookieContains": "|comfort:0" }]
|
|
8
18
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "posthog.com",
|
|
3
|
+
"runContext": { "urlPattern": "^https?://(www\\.)?posthog\\.com/" },
|
|
4
|
+
"detectCmp": [{ "exists": "xpath///li[contains(@class,'ToastRoot')][contains(., 'cookie banner')]" }],
|
|
5
|
+
"detectPopup": [{ "visible": "xpath///li[contains(@class,'ToastRoot')][contains(., 'cookie banner')]" }],
|
|
6
|
+
"optIn": [{ "waitForThenClick": "xpath///li[contains(@class,'ToastRoot')][contains(., 'cookie banner')]//button" }],
|
|
7
|
+
"optOut": [
|
|
8
|
+
{ "waitForThenClick": "xpath///li[contains(@class,'ToastRoot')][contains(., 'cookie banner')]//button" },
|
|
9
|
+
{ "waitForVisible": "xpath///li[contains(@class,'ToastRoot')][contains(., 'cookie banner')]", "check": "none" }
|
|
10
|
+
],
|
|
11
|
+
"test": [{ "eval": "EVAL_POSTHOG_TEST" }]
|
|
12
|
+
}
|
|
@@ -27,8 +27,16 @@
|
|
|
27
27
|
"optOut": [
|
|
28
28
|
{
|
|
29
29
|
"waitForThenClick": "button[data-dca-intent=\"open\"][role=\"link\"]",
|
|
30
|
-
"retry":
|
|
31
|
-
"retryInterval":
|
|
30
|
+
"retry": 10,
|
|
31
|
+
"retryInterval": 1000
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"waitFor": "#advertisingCookies"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"click": "#personalizationCookies:checked, #advertisingCookies:checked",
|
|
38
|
+
"all": true,
|
|
39
|
+
"optional": true
|
|
32
40
|
},
|
|
33
41
|
{
|
|
34
42
|
"waitForThenClick": "xpath///button[contains(., 'Save settings') or contains(., 'Enregistrer les paramètres')]"
|
|
@@ -39,6 +47,9 @@
|
|
|
39
47
|
"waitForVisible": "a[href=\"https://www.walmartcanada.ca/cookie-notice\"]",
|
|
40
48
|
"check": "none",
|
|
41
49
|
"timeout": 5000
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"cookieContains": "&p13n=false&ads=false&"
|
|
42
53
|
}
|
|
43
54
|
]
|
|
44
55
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wbd-legal-terms",
|
|
3
3
|
"vendorUrl": "https://www.wbd.com/",
|
|
4
|
-
"comment": "Terms-and-cookies notice with only an Agree button. The <dialog> variant is modal, so hiding it with CSS leaves the page inert; close it without submitting the form instead. The MUI modal variant cannot be dismissed, so it is hidden. Sweepstakes pages only load their entry form (ngxFrame embed) after Agree, so the rule skips them to keep the popup available.",
|
|
4
|
+
"comment": "Terms-and-cookies notice with only an Agree button. The <dialog> variant is modal, so hiding it with CSS leaves the page inert; close it without submitting the form instead. The MUI modal variant cannot be dismissed, so it is hidden; its scroll lock is overridden with a stylesheet because the site re-applies it inline on client-side navigation. Sweepstakes pages only load their entry form (ngxFrame embed) after Agree, so the rule skips them to keep the popup available.",
|
|
5
5
|
"cosmetic": true,
|
|
6
|
-
"minimumRuleStepVersion":
|
|
6
|
+
"minimumRuleStepVersion": 3,
|
|
7
7
|
"detectCmp": [
|
|
8
8
|
{
|
|
9
9
|
"exists": "dialog#ltp-dialog, [id=\"id/ltp\"]"
|
|
@@ -44,9 +44,8 @@
|
|
|
44
44
|
"hide": "[id=\"id/ltp\"]"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"optional": true
|
|
47
|
+
"stylesheet": "body:has([id=\"id/ltp\"]) { overflow: auto !important; }",
|
|
48
|
+
"stylesheetId": "wbd-legal-terms-scroll-unlock"
|
|
50
49
|
}
|
|
51
50
|
]
|
|
52
51
|
}
|