@duckduckgo/autoconsent 14.67.0 → 14.68.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.
Files changed (56) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/data/coverage.json +5846 -2663
  3. package/dist/addon-firefox/background.bundle.js +0 -2
  4. package/dist/addon-firefox/compact-rules.json +1 -1
  5. package/dist/addon-firefox/content.bundle.js +0 -2
  6. package/dist/addon-firefox/manifest.json +1 -1
  7. package/dist/addon-firefox/rules.json +1 -1
  8. package/dist/addon-mv3/background.bundle.js +0 -2
  9. package/dist/addon-mv3/compact-rules.json +1 -1
  10. package/dist/addon-mv3/content.bundle.js +0 -2
  11. package/dist/addon-mv3/manifest.json +1 -1
  12. package/dist/addon-mv3/rules.json +1 -1
  13. package/dist/autoconsent.cjs.js +0 -2
  14. package/dist/autoconsent.esm.js +0 -2
  15. package/dist/autoconsent.extra.cjs.js +0 -2
  16. package/dist/autoconsent.extra.esm.js +0 -2
  17. package/dist/autoconsent.playwright.js +0 -2
  18. package/dist/types/eval-snippets.d.ts +0 -2
  19. package/lib/eval-snippets.ts +0 -3
  20. package/package.json +1 -1
  21. package/rules/autoconsent/elsevier-pure.json +31 -0
  22. package/rules/autoconsent/facebook.json +21 -7
  23. package/rules/autoconsent/fullertonhotels.com.json +37 -0
  24. package/rules/autoconsent/geni.com.json +8 -5
  25. package/rules/autoconsent/remarkable.com.json +6 -27
  26. package/rules/autoconsent/unicourt.json +5 -5
  27. package/rules/compact-rules.json +1 -1
  28. package/rules/generated/auto_AU_flysaa.com_qsm.json +10 -9
  29. package/rules/generated/auto_DE_immobilien.sparkasse.de_zj7.json +10 -10
  30. package/rules/rules.json +1 -1
  31. package/tests/elsevier-pure.spec.ts +11 -0
  32. package/tests/fullertonhotels.com.spec.ts +6 -0
  33. package/rules/autoconsent/mediavine.json +0 -17
  34. package/rules/autoconsent/national-lottery-co-uk.json +0 -11
  35. package/rules/autoconsent/ouraring.json +0 -36
  36. package/rules/generated/auto_AU_discover.utas.edu.au_k2n.json +0 -37
  37. package/rules/generated/auto_AU_experts.deakin.edu.au_0kw.json +0 -40
  38. package/rules/generated/auto_AU_experts.griffith.edu.au_oi0.json +0 -37
  39. package/rules/generated/auto_AU_fullertonhotels.com_y46.json +0 -40
  40. package/rules/generated/auto_AU_profiles.uts.edu.au_ouv.json +0 -37
  41. package/rules/generated/auto_AU_scholars.latrobe.edu.au_li6.json +0 -40
  42. package/rules/generated/auto_CA_discover.research.utoronto.ca_vtf.json +0 -40
  43. package/rules/generated/auto_CA_remarkable.com_kt9.json +0 -40
  44. package/rules/generated/auto_GB_profiles.ucl.ac.uk_lpo.json +0 -40
  45. package/tests/generated/auto_AU_discover.utas.edu.au_k2n.spec.ts +0 -6
  46. package/tests/generated/auto_AU_experts.deakin.edu.au_0kw.spec.ts +0 -6
  47. package/tests/generated/auto_AU_experts.griffith.edu.au_oi0.spec.ts +0 -6
  48. package/tests/generated/auto_AU_fullertonhotels.com_y46.spec.ts +0 -6
  49. package/tests/generated/auto_AU_profiles.uts.edu.au_ouv.spec.ts +0 -6
  50. package/tests/generated/auto_AU_scholars.latrobe.edu.au_li6.spec.ts +0 -6
  51. package/tests/generated/auto_CA_discover.research.utoronto.ca_vtf.spec.ts +0 -6
  52. package/tests/generated/auto_CA_remarkable.com_kt9.spec.ts +0 -2
  53. package/tests/generated/auto_GB_profiles.ucl.ac.uk_lpo.spec.ts +0 -6
  54. package/tests/mediavine.spec.ts +0 -5
  55. package/tests/national-lottery.spec.ts +0 -5
  56. package/tests/ouraring.spec.ts +0 -3
@@ -583,7 +583,6 @@ var snippets = {
583
583
  if (x.checked) x.click();
584
584
  }) || true,
585
585
  EVAL_IUBENDA_1: () => !!document.cookie.match(/_iub_cs-\d+=/),
586
- EVAL_MEDIAVINE_0: () => document.querySelectorAll('[data-name="mediavine-gdpr-cmp"] input[type=checkbox]').forEach((x) => x.checked && x.click()) || true,
587
586
  EVAL_MICROSOFT_0: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Reject|Ablehnen"))[0].click() || true,
588
587
  EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
589
588
  EVAL_MICROSOFT_2: () => !!document.cookie.match("MSCC|GHCC"),
@@ -599,7 +598,6 @@ var snippets = {
599
598
  ).status === "deny",
600
599
  EVAL_POVR_GOBACK: () => window.history.back() || true,
601
600
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
602
- EVAL_REMARKABLE_TEST: () => !!localStorage.getItem("rmCookieConsent"),
603
601
  EVAL_SHOPIFY_TEST: () => document.cookie.includes("gdpr_cookie_consent=0") || document.cookie.includes("_tracking_consent=") && JSON.parse(
604
602
  decodeURIComponent(
605
603
  document.cookie.split(";").find((s) => s.trim().startsWith("_tracking_consent")).split("=")[1]
@@ -553,7 +553,6 @@ var snippets = {
553
553
  if (x.checked) x.click();
554
554
  }) || true,
555
555
  EVAL_IUBENDA_1: () => !!document.cookie.match(/_iub_cs-\d+=/),
556
- EVAL_MEDIAVINE_0: () => document.querySelectorAll('[data-name="mediavine-gdpr-cmp"] input[type=checkbox]').forEach((x) => x.checked && x.click()) || true,
557
556
  EVAL_MICROSOFT_0: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Reject|Ablehnen"))[0].click() || true,
558
557
  EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
559
558
  EVAL_MICROSOFT_2: () => !!document.cookie.match("MSCC|GHCC"),
@@ -569,7 +568,6 @@ var snippets = {
569
568
  ).status === "deny",
570
569
  EVAL_POVR_GOBACK: () => window.history.back() || true,
571
570
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
572
- EVAL_REMARKABLE_TEST: () => !!localStorage.getItem("rmCookieConsent"),
573
571
  EVAL_SHOPIFY_TEST: () => document.cookie.includes("gdpr_cookie_consent=0") || document.cookie.includes("_tracking_consent=") && JSON.parse(
574
572
  decodeURIComponent(
575
573
  document.cookie.split(";").find((s) => s.trim().startsWith("_tracking_consent")).split("=")[1]
@@ -11549,7 +11549,6 @@ var snippets = {
11549
11549
  if (x.checked) x.click();
11550
11550
  }) || true,
11551
11551
  EVAL_IUBENDA_1: () => !!document.cookie.match(/_iub_cs-\d+=/),
11552
- EVAL_MEDIAVINE_0: () => document.querySelectorAll('[data-name="mediavine-gdpr-cmp"] input[type=checkbox]').forEach((x) => x.checked && x.click()) || true,
11553
11552
  EVAL_MICROSOFT_0: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Reject|Ablehnen"))[0].click() || true,
11554
11553
  EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
11555
11554
  EVAL_MICROSOFT_2: () => !!document.cookie.match("MSCC|GHCC"),
@@ -11565,7 +11564,6 @@ var snippets = {
11565
11564
  ).status === "deny",
11566
11565
  EVAL_POVR_GOBACK: () => window.history.back() || true,
11567
11566
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
11568
- EVAL_REMARKABLE_TEST: () => !!localStorage.getItem("rmCookieConsent"),
11569
11567
  EVAL_SHOPIFY_TEST: () => document.cookie.includes("gdpr_cookie_consent=0") || document.cookie.includes("_tracking_consent=") && JSON.parse(
11570
11568
  decodeURIComponent(
11571
11569
  document.cookie.split(";").find((s) => s.trim().startsWith("_tracking_consent")).split("=")[1]
@@ -11483,7 +11483,6 @@ var snippets = {
11483
11483
  if (x.checked) x.click();
11484
11484
  }) || true,
11485
11485
  EVAL_IUBENDA_1: () => !!document.cookie.match(/_iub_cs-\d+=/),
11486
- EVAL_MEDIAVINE_0: () => document.querySelectorAll('[data-name="mediavine-gdpr-cmp"] input[type=checkbox]').forEach((x) => x.checked && x.click()) || true,
11487
11486
  EVAL_MICROSOFT_0: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Reject|Ablehnen"))[0].click() || true,
11488
11487
  EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
11489
11488
  EVAL_MICROSOFT_2: () => !!document.cookie.match("MSCC|GHCC"),
@@ -11499,7 +11498,6 @@ var snippets = {
11499
11498
  ).status === "deny",
11500
11499
  EVAL_POVR_GOBACK: () => window.history.back() || true,
11501
11500
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
11502
- EVAL_REMARKABLE_TEST: () => !!localStorage.getItem("rmCookieConsent"),
11503
11501
  EVAL_SHOPIFY_TEST: () => document.cookie.includes("gdpr_cookie_consent=0") || document.cookie.includes("_tracking_consent=") && JSON.parse(
11504
11502
  decodeURIComponent(
11505
11503
  document.cookie.split(";").find((s) => s.trim().startsWith("_tracking_consent")).split("=")[1]
@@ -555,7 +555,6 @@
555
555
  if (x.checked) x.click();
556
556
  }) || true,
557
557
  EVAL_IUBENDA_1: () => !!document.cookie.match(/_iub_cs-\d+=/),
558
- EVAL_MEDIAVINE_0: () => document.querySelectorAll('[data-name="mediavine-gdpr-cmp"] input[type=checkbox]').forEach((x) => x.checked && x.click()) || true,
559
558
  EVAL_MICROSOFT_0: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Reject|Ablehnen"))[0].click() || true,
560
559
  EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
561
560
  EVAL_MICROSOFT_2: () => !!document.cookie.match("MSCC|GHCC"),
@@ -571,7 +570,6 @@
571
570
  ).status === "deny",
572
571
  EVAL_POVR_GOBACK: () => window.history.back() || true,
573
572
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
574
- EVAL_REMARKABLE_TEST: () => !!localStorage.getItem("rmCookieConsent"),
575
573
  EVAL_SHOPIFY_TEST: () => document.cookie.includes("gdpr_cookie_consent=0") || document.cookie.includes("_tracking_consent=") && JSON.parse(
576
574
  decodeURIComponent(
577
575
  document.cookie.split(";").find((s) => s.trim().startsWith("_tracking_consent")).split("=")[1]
@@ -42,7 +42,6 @@ export declare const snippets: {
42
42
  EVAL_GDPR_LEGAL_COOKIE_TEST: () => boolean;
43
43
  EVAL_IUBENDA_0: () => boolean;
44
44
  EVAL_IUBENDA_1: () => boolean;
45
- EVAL_MEDIAVINE_0: () => boolean;
46
45
  EVAL_MICROSOFT_0: () => any;
47
46
  EVAL_MICROSOFT_1: () => any;
48
47
  EVAL_MICROSOFT_2: () => boolean;
@@ -52,7 +51,6 @@ export declare const snippets: {
52
51
  EVAL_PANDECTES_TEST: () => boolean;
53
52
  EVAL_POVR_GOBACK: () => boolean;
54
53
  EVAL_PUBTECH_0: () => false | RegExpMatchArray | null;
55
- EVAL_REMARKABLE_TEST: () => boolean;
56
54
  EVAL_SHOPIFY_TEST: () => boolean;
57
55
  EVAL_SKYSCANNER_TEST: () => boolean | null;
58
56
  EVAL_SIRDATA_UNBLOCK_SCROLL: () => boolean;
@@ -127,8 +127,6 @@ export const snippets = {
127
127
  if (x.checked) x.click();
128
128
  }) || true,
129
129
  EVAL_IUBENDA_1: () => !!document.cookie.match(/_iub_cs-\d+=/),
130
- EVAL_MEDIAVINE_0: () =>
131
- document.querySelectorAll('[data-name="mediavine-gdpr-cmp"] input[type=checkbox]').forEach((x) => x.checked && x.click()) || true,
132
130
  EVAL_MICROSOFT_0: () =>
133
131
  Array.from(document.querySelectorAll('div > button'))
134
132
  .filter((el) => el.innerText.match('Reject|Ablehnen'))[0]
@@ -158,7 +156,6 @@ export const snippets = {
158
156
  EVAL_PUBTECH_0: () =>
159
157
  document.cookie.includes('euconsent-v2') &&
160
158
  (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
161
- EVAL_REMARKABLE_TEST: () => !!localStorage.getItem('rmCookieConsent'),
162
159
  EVAL_SHOPIFY_TEST: () =>
163
160
  document.cookie.includes('gdpr_cookie_consent=0') ||
164
161
  (document.cookie.includes('_tracking_consent=') &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "14.67.0",
3
+ "version": "14.68.0",
4
4
  "description": "",
5
5
  "types": "./dist/types/web.d.ts",
6
6
  "exports": {
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "elsevier-pure",
3
+ "prehideSelectors": ["div[role='dialog'][aria-modal='true']:has([data-qa='accept-all-button'])"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": "[data-qa='accept-all-button']"
7
+ }
8
+ ],
9
+ "detectPopup": [
10
+ {
11
+ "visible": "[data-qa='accept-all-button']"
12
+ }
13
+ ],
14
+ "optIn": [
15
+ {
16
+ "waitForThenClick": "[data-qa='accept-all-button']"
17
+ }
18
+ ],
19
+ "optOut": [
20
+ {
21
+ "waitForThenClick": "[data-qa='reject-non-essential-button']"
22
+ }
23
+ ],
24
+ "test": [
25
+ {
26
+ "waitForVisible": "[data-qa='accept-all-button']",
27
+ "timeout": 1000,
28
+ "check": "none"
29
+ }
30
+ ]
31
+ }
@@ -3,19 +3,33 @@
3
3
  "runContext": {
4
4
  "urlPattern": "^https://([a-z0-9-]+\\.)?facebook\\.com/"
5
5
  },
6
- "prehideSelectors": ["div[data-testid=\"cookie-policy-manage-dialog\"]"],
7
- "detectCmp": [{ "exists": "div[data-testid=\"cookie-policy-manage-dialog\"]" }],
8
- "detectPopup": [{ "visible": "div[data-testid=\"cookie-policy-manage-dialog\"]" }],
6
+ "prehideSelectors": [],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "body > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(1):not([id]) > div:nth-child(2):not([id])"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "body > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(1):not([id]) > div:nth-child(2):not([id])"
15
+ }
16
+ ],
9
17
  "optIn": [
10
18
  {
11
- "waitForThenClick": "body:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(3):not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:nth-child(1):not([id])"
19
+ "waitForThenClick": "body > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:nth-child(1):not([id])"
12
20
  },
13
- { "waitForVisible": "div[data-testid=\"cookie-policy-manage-dialog\"]", "check": "none" }
21
+ {
22
+ "waitForVisible": "body > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:nth-child(1):not([id])",
23
+ "check": "none"
24
+ }
14
25
  ],
15
26
  "optOut": [
16
27
  {
17
- "waitForThenClick": "body:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(3):not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(1):not([id]) > div:nth-child(2):not([id])"
28
+ "waitForThenClick": "body > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(1):not([id]) > div:nth-child(2):not([id])"
18
29
  },
19
- { "waitForVisible": "div[data-testid=\"cookie-policy-manage-dialog\"]", "check": "none" }
30
+ {
31
+ "waitForVisible": "body > div:not([id]) > div:nth-child(1):not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:not([id]) > div:nth-child(2):not([id]) > div:not([id]) > div:nth-child(1):not([id]) > div:nth-child(2):not([id])",
32
+ "check": "none"
33
+ }
20
34
  ]
21
35
  }
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "fullertonhotels.com",
3
+ "cosmetic": false,
4
+ "_metadata": {
5
+ "vendorUrl": "http://www.fullertonhotels.com/"
6
+ },
7
+ "runContext": {
8
+ "main": true,
9
+ "frame": false
10
+ },
11
+ "prehideSelectors": [],
12
+ "detectCmp": [
13
+ {
14
+ "exists": ["#ifrmCookieBanner", "#sp-decline"]
15
+ }
16
+ ],
17
+ "detectPopup": [
18
+ {
19
+ "visible": ["#ifrmCookieBanner", "#sp-decline"]
20
+ }
21
+ ],
22
+ "optIn": [
23
+ {
24
+ "waitForThenClick": ["#ifrmCookieBanner", "#sp-accept"]
25
+ }
26
+ ],
27
+ "optOut": [
28
+ {
29
+ "wait": 500
30
+ },
31
+ {
32
+ "waitForThenClick": ["#ifrmCookieBanner", "#sp-decline"],
33
+ "comment": "Decline"
34
+ }
35
+ ],
36
+ "test": []
37
+ }
@@ -2,25 +2,28 @@
2
2
  "name": "geni.com",
3
3
  "vendorUrl": "https://www.geni.com/",
4
4
  "cosmetic": true,
5
- "prehideSelectors": [".cookie-notify-anchor"],
5
+ "runContext": {
6
+ "urlPattern": "^https://(www\\.)?geni\\.com/"
7
+ },
8
+ "prehideSelectors": [".modal-cookie"],
6
9
  "detectCmp": [
7
10
  {
8
- "exists": ".cookie-notify-anchor .cookie-notify"
11
+ "exists": ".modal-cookie"
9
12
  }
10
13
  ],
11
14
  "detectPopup": [
12
15
  {
13
- "visible": ".cookie-notify-anchor .cookie-notify"
16
+ "visible": ".modal-cookie"
14
17
  }
15
18
  ],
16
19
  "optIn": [
17
20
  {
18
- "waitForThenClick": ".cookie-notify-anchor .cookie-notify button"
21
+ "waitForThenClick": ".modal-cookie #accept-all"
19
22
  }
20
23
  ],
21
24
  "optOut": [
22
25
  {
23
- "hide": ".cookie-notify-anchor"
26
+ "hide": ".modal-cookie"
24
27
  }
25
28
  ]
26
29
  }
@@ -1,50 +1,29 @@
1
1
  {
2
2
  "name": "remarkable.com",
3
3
  "vendorUrl": "https://www.remarkable.com/",
4
- "cosmetic": false,
4
+ "cosmetic": true,
5
5
  "runContext": {
6
6
  "urlPattern": "^https://(www\\.)?remarkable\\.com/"
7
7
  },
8
- "prehideSelectors": [".overlay-cookies"],
8
+ "prehideSelectors": ["div:has(> button#cookieBar-button)"],
9
9
  "detectCmp": [
10
10
  {
11
- "exists": ".overlay-cookies,#cookieBar-button"
11
+ "exists": "#cookieBar-button"
12
12
  }
13
13
  ],
14
14
  "detectPopup": [
15
15
  {
16
- "visible": ".overlay-cookies,#cookieBar-button"
16
+ "visible": "#cookieBar-button"
17
17
  }
18
18
  ],
19
19
  "optIn": [
20
20
  {
21
- "waitForThenClick": ".overlay-cookies .ark-button--primary-neutral,#cookieBar-button"
21
+ "waitForThenClick": "#cookieBar-button"
22
22
  }
23
23
  ],
24
24
  "optOut": [
25
25
  {
26
- "if": { "exists": "#cookieBar-button" },
27
- "then": [
28
- {
29
- "hide": "div:has(> button#cookieBar-button)"
30
- }
31
- ],
32
- "else": [
33
- {
34
- "waitForThenClick": ".overlay-cookies .ark-button--tertiary-neutral"
35
- },
36
- {
37
- "waitFor": ".overlay-cookies #cookie-group-control-necessary"
38
- },
39
- {
40
- "waitForThenClick": ".overlay-cookies .ark-button--secondary"
41
- }
42
- ]
43
- }
44
- ],
45
- "test": [
46
- {
47
- "eval": "EVAL_REMARKABLE_TEST"
26
+ "hide": "div:has(> button#cookieBar-button)"
48
27
  }
49
28
  ]
50
29
  }
@@ -5,25 +5,25 @@
5
5
  "runContext": {
6
6
  "urlPattern": "^https://(www\\.)?unicourt\\.com/"
7
7
  },
8
- "prehideSelectors": [".cookie-notification"],
8
+ "prehideSelectors": [".cookie-banner"],
9
9
  "detectCmp": [
10
10
  {
11
- "exists": ".cookie-notification"
11
+ "exists": ".cookie-banner"
12
12
  }
13
13
  ],
14
14
  "detectPopup": [
15
15
  {
16
- "visible": ".cookie-notification"
16
+ "visible": ".cookie-banner"
17
17
  }
18
18
  ],
19
19
  "optIn": [
20
20
  {
21
- "waitForThenClick": ".cookie-notification button"
21
+ "waitForThenClick": ".cookie-banner .button"
22
22
  }
23
23
  ],
24
24
  "optOut": [
25
25
  {
26
- "hide": ".cookie-notification"
26
+ "hide": ".cookie-banner"
27
27
  }
28
28
  ]
29
29
  }