@duckduckgo/autoconsent 17.0.0 → 17.1.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 (115) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/addon-firefox/compact-rules.json +1 -1
  3. package/dist/addon-firefox/content.bundle.js +15 -3
  4. package/dist/addon-firefox/manifest.json +1 -1
  5. package/dist/addon-firefox/rule-index.json +1 -1
  6. package/dist/addon-firefox/rules.json +1 -1
  7. package/dist/addon-mv3/compact-rules.json +1 -1
  8. package/dist/addon-mv3/content.bundle.js +15 -3
  9. package/dist/addon-mv3/manifest.json +1 -1
  10. package/dist/addon-mv3/rule-index.json +1 -1
  11. package/dist/addon-mv3/rules.json +1 -1
  12. package/dist/autoconsent.cjs.js +15 -3
  13. package/dist/autoconsent.esm.js +15 -3
  14. package/dist/autoconsent.playwright.js +15 -3
  15. package/dist/autoconsent.standalone.js +16 -4
  16. package/dist/heuristics.cjs.js +15 -3
  17. package/dist/heuristics.mjs +15 -3
  18. package/lib/heuristic-patterns.ts +18 -2
  19. package/package.json +1 -1
  20. package/rules/autoconsent/1pmobile.json +44 -0
  21. package/rules/autoconsent/amasty-gdpr-hyva.json +131 -0
  22. package/rules/autoconsent/amazonforum.json +86 -0
  23. package/rules/autoconsent/babylist.json +23 -0
  24. package/rules/autoconsent/babylonbee.json +36 -0
  25. package/rules/autoconsent/bathnes-cookie-banner.json +31 -0
  26. package/rules/autoconsent/chairish.json +17 -0
  27. package/rules/autoconsent/chemicalbook.json +13 -0
  28. package/rules/autoconsent/chimnie-co-uk.json +21 -0
  29. package/rules/autoconsent/complianz-optin.json +5 -3
  30. package/rules/autoconsent/cookie-pref-form.json +48 -0
  31. package/rules/autoconsent/endeavorhealth.json +31 -0
  32. package/rules/autoconsent/ensighten.json +3 -3
  33. package/rules/autoconsent/fepblue-org.json +13 -0
  34. package/rules/autoconsent/fpl-com.json +34 -0
  35. package/rules/autoconsent/fuqer.json +11 -0
  36. package/rules/autoconsent/greatschools.json +13 -0
  37. package/rules/autoconsent/hamradio-com.json +13 -0
  38. package/rules/autoconsent/hubspot.json +7 -1
  39. package/rules/autoconsent/ibkr.json +16 -0
  40. package/rules/autoconsent/jetpens.json +44 -0
  41. package/rules/autoconsent/kanopy.json +88 -0
  42. package/rules/autoconsent/mainlinemenswear.json +39 -0
  43. package/rules/autoconsent/money-co-uk.json +21 -0
  44. package/rules/autoconsent/myjobquote.json +19 -0
  45. package/rules/autoconsent/northwell-edu.json +29 -0
  46. package/rules/autoconsent/nts-org-uk.json +20 -0
  47. package/rules/autoconsent/nyu-langone.json +30 -0
  48. package/rules/autoconsent/ofsted-reports-cosmetic.json +13 -0
  49. package/rules/autoconsent/optum-legal-banner.json +10 -0
  50. package/rules/autoconsent/optum.json +35 -0
  51. package/rules/autoconsent/planned-parenthood.json +17 -0
  52. package/rules/autoconsent/pornhub-compact-cookie-banner.json +1 -1
  53. package/rules/autoconsent/pornhub.json +1 -1
  54. package/rules/autoconsent/reviewsolicitors.json +41 -0
  55. package/rules/autoconsent/ring.json +1 -1
  56. package/rules/autoconsent/sankei-digital.json +37 -0
  57. package/rules/autoconsent/texas-gov.json +22 -0
  58. package/rules/autoconsent/tiresize.com.json +17 -0
  59. package/rules/autoconsent/trillian.json +10 -0
  60. package/rules/autoconsent/tyreseeker.json +44 -0
  61. package/rules/autoconsent/uhcprovider.json +13 -0
  62. package/rules/autoconsent/united-online.json +66 -0
  63. package/rules/autoconsent/unitedutilities.json +52 -0
  64. package/rules/autoconsent/uttings.co.uk.json +22 -0
  65. package/rules/autoconsent/watchfinder.json +16 -0
  66. package/rules/compact-rules.json +1 -1
  67. package/rules/rule-index.json +1 -1
  68. package/rules/rules.json +1 -1
  69. package/tests/1pmobile.spec.ts +5 -0
  70. package/tests/amasty-gdpr-hyva.spec.ts +17 -0
  71. package/tests/amazonforum.spec.ts +9 -0
  72. package/tests/babylist.spec.ts +3 -0
  73. package/tests/babylonbee.spec.ts +6 -0
  74. package/tests/bathnes-cookie-banner.spec.ts +3 -0
  75. package/tests/chairish.spec.ts +3 -0
  76. package/tests/chemicalbook.spec.ts +5 -0
  77. package/tests/chimnie-co-uk.spec.ts +3 -0
  78. package/tests/complianz-optin.spec.ts +2 -0
  79. package/tests/cookie-pref-form.spec.ts +8 -0
  80. package/tests/endeavorhealth.spec.ts +3 -0
  81. package/tests/ensighten.spec.ts +7 -1
  82. package/tests/fepblue-org.spec.ts +3 -0
  83. package/tests/fpl-com.spec.ts +3 -0
  84. package/tests/fuqer.spec.ts +3 -0
  85. package/tests/greatschools.spec.ts +3 -0
  86. package/tests/hamradio-com.spec.ts +3 -0
  87. package/tests/hubspot.spec.ts +6 -1
  88. package/tests/ibkr.spec.ts +18 -0
  89. package/tests/jetpens.spec.ts +5 -0
  90. package/tests/kanopy.spec.ts +5 -0
  91. package/tests/mainlinemenswear.spec.ts +3 -0
  92. package/tests/money-co-uk.spec.ts +3 -0
  93. package/tests/myjobquote.spec.ts +5 -0
  94. package/tests/northwell-edu.spec.ts +3 -0
  95. package/tests/nts-org-uk.spec.ts +3 -0
  96. package/tests/nyu-langone.spec.ts +3 -0
  97. package/tests/ofsted-reports-cosmetic.spec.ts +3 -0
  98. package/tests/optum-legal-banner.spec.ts +9 -0
  99. package/tests/optum.spec.ts +6 -0
  100. package/tests/planned-parenthood.spec.ts +3 -0
  101. package/tests/pornhub.spec.ts +1 -1
  102. package/tests/reviewsolicitors.spec.ts +3 -0
  103. package/tests/sankei-digital.spec.ts +9 -0
  104. package/tests/texas-gov.spec.ts +3 -0
  105. package/tests/tiresize.com.spec.ts +3 -0
  106. package/tests/trillian.spec.ts +15 -0
  107. package/tests/tyreseeker.spec.ts +3 -0
  108. package/tests/uhcprovider.spec.ts +3 -0
  109. package/tests/united-online.spec.ts +4 -0
  110. package/tests/unitedutilities.spec.ts +11 -0
  111. package/tests/uttings.co.uk.spec.ts +3 -0
  112. package/tests/watchfinder.spec.ts +3 -0
  113. package/tests-wtr/heuristics/heuristics-utils.test.ts +34 -4
  114. package/rules/generated/auto_US_interactivebrokers.com_0.json +0 -28
  115. package/tests/generated/auto_US_interactivebrokers.com_0.spec.ts +0 -3
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "sankei-digital",
3
+ "_metadata": {
4
+ "vendorUrl": "https://www.sankei-digital.co.jp/"
5
+ },
6
+ "cosmetic": false,
7
+ "runContext": {
8
+ "main": true,
9
+ "frame": false
10
+ },
11
+ "prehideSelectors": ["#consent-wrapper"],
12
+ "detectCmp": [
13
+ {
14
+ "exists": "#consent-wrapper > .button-container > button.close"
15
+ }
16
+ ],
17
+ "detectPopup": [
18
+ {
19
+ "visible": "#consent-wrapper > .button-container > button.close"
20
+ }
21
+ ],
22
+ "optIn": [
23
+ {
24
+ "waitForThenClick": "#consent-wrapper > .button-container > button.close"
25
+ }
26
+ ],
27
+ "optOut": [
28
+ {
29
+ "waitForThenClick": "#consent-wrapper > .button-container > button.close"
30
+ }
31
+ ],
32
+ "test": [
33
+ {
34
+ "cookieContains": "cookie_consent_status="
35
+ }
36
+ ]
37
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "texas.gov",
3
+ "runContext": { "urlPattern": "^https?://(www\\.)?texas\\.gov/" },
4
+ "prehideSelectors": ["[data-testid=\"cookies-banner\"]"],
5
+ "detectCmp": [{ "exists": "[data-testid=\"cookies-banner\"] .cookies-banner__close-icon-wrapper" }],
6
+ "detectPopup": [{ "visible": "[data-testid=\"cookies-banner\"] .cookies-banner__description", "check": "any" }],
7
+ "optOut": [
8
+ {
9
+ "if": { "visible": "[data-testid=\"desktop-close-button\"]" },
10
+ "then": [{ "click": "[data-testid=\"desktop-close-button\"]" }],
11
+ "else": [{ "click": "[data-testid=\"cookies-banner\"] .d-none-desktop .cookies-banner__close-icon-wrapper" }]
12
+ },
13
+ { "waitForVisible": "[data-testid=\"cookies-banner\"]", "check": "none" }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "if": { "visible": "[data-testid=\"desktop-close-button\"]" },
18
+ "then": [{ "click": "[data-testid=\"desktop-close-button\"]" }],
19
+ "else": [{ "click": "[data-testid=\"cookies-banner\"] .d-none-desktop .cookies-banner__close-icon-wrapper" }]
20
+ }
21
+ ]
22
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "tiresize.com",
3
+ "vendorUrl": "https://tiresize.com/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?tiresize\\.com/"
7
+ },
8
+ "prehideSelectors": ["#CookieNotice"],
9
+ "detectCmp": [{ "exists": "#CookieNotice > div[onclick]" }],
10
+ "detectPopup": [{ "visible": "#CookieNotice" }],
11
+ "optIn": [{ "waitForThenClick": "#CookieNotice > div[onclick]" }],
12
+ "optOut": [
13
+ { "waitForThenClick": "#CookieNotice > div[onclick]" },
14
+ { "waitForVisible": "#CookieNotice", "check": "none", "timeout": 2000 }
15
+ ],
16
+ "test": [{ "cookieContains": "Notice=yes" }]
17
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "trillian",
3
+ "vendorUrl": "https://www.ouh.nhs.uk/",
4
+ "prehideSelectors": [".trillian-cookie-consent-banner"],
5
+ "detectCmp": [{ "exists": ".trillian-cookie-consent-banner .tpc2-reject-all" }],
6
+ "detectPopup": [{ "visible": ".trillian-cookie-consent-banner" }],
7
+ "optIn": [{ "waitForThenClick": ".trillian-cookie-consent-banner .tpc2-accept-all" }],
8
+ "optOut": [{ "waitForThenClick": ".trillian-cookie-consent-banner .tpc2-reject-all" }],
9
+ "test": [{ "cookieContains": "t_privacy_confirmed=true" }]
10
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "tyreseeker",
3
+ "vendorUrl": "https://www.tyreseeker.co.uk/",
4
+ "cosmetic": false,
5
+ "prehideSelectors": [],
6
+ "detectCmp": [
7
+ {
8
+ "exists": "#cookieBanner #manage[data-bs-target='#cookieModalSettings']"
9
+ }
10
+ ],
11
+ "detectPopup": [
12
+ {
13
+ "visible": "#cookieBanner .modal-content"
14
+ }
15
+ ],
16
+ "optIn": [
17
+ {
18
+ "waitForThenClick": "#cookieBanner #confirm"
19
+ }
20
+ ],
21
+ "optOut": [
22
+ {
23
+ "waitForThenClick": "#cookieBanner #manage"
24
+ },
25
+ {
26
+ "waitForVisible": "#cookieModalSettings form button[type=submit]"
27
+ },
28
+ {
29
+ "wait": 500
30
+ },
31
+ {
32
+ "click": "#cookieModalSettings form input[type=checkbox]:checked",
33
+ "all": true,
34
+ "optional": true
35
+ },
36
+ {
37
+ "click": "#cookieModalSettings form button[type=submit]"
38
+ },
39
+ {
40
+ "waitForVisible": "#cookieModalSettings .modal-content",
41
+ "check": "none"
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "uhcprovider",
3
+ "vendorUrl": "https://www.uhcprovider.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?uhc(provider|dental)\\.com/"
6
+ },
7
+ "prehideSelectors": [".toasterAlert .toaster"],
8
+ "detectCmp": [{ "exists": ".toasterAlert .toaster-content a[href*='/npp/OSPP-']" }],
9
+ "detectPopup": [{ "visible": ".toasterAlert .toaster" }],
10
+ "optIn": [{ "waitForThenClick": ".toasterAlert .toaster-close" }],
11
+ "optOut": [{ "waitForThenClick": ".toasterAlert .toaster-close" }],
12
+ "test": [{ "waitForVisible": ".toasterAlert .toaster", "check": "none", "timeout": 2000 }]
13
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "united-online",
3
+ "vendorUrl": "https://www.juno.com/",
4
+ "prehideSelectors": ["#cookieDisclaimer.cookieDisc", "#cpra_banner_wrapper"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#cookieDisclaimer a[onclick*=\"handleUSPrivacyAction('reject')\"], #cpra_banner_wrapper #cpra_btn_reject, #userConsentForAdsPopup #allowButton, #gdprPopup #consent_dialog_allow"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "any": [
13
+ {
14
+ "visible": "#cookieDisclaimer, #cpra_banner_wrapper, #userConsentForAdsPopup",
15
+ "check": "any"
16
+ },
17
+ {
18
+ "exists": "#gdprPopup-popup.ui-popup-active"
19
+ }
20
+ ]
21
+ }
22
+ ],
23
+ "optIn": [
24
+ {
25
+ "waitForThenClick": "#cookieDisclaimer a[onclick*=\"handleUSPrivacyAction('accept')\"], #cpra_banner_wrapper #cpra_btn_accept"
26
+ }
27
+ ],
28
+ "optOut": [
29
+ {
30
+ "if": {
31
+ "visible": "#cookieDisclaimer, #cpra_banner_wrapper",
32
+ "check": "any"
33
+ },
34
+ "then": [
35
+ {
36
+ "waitForThenClick": "#cookieDisclaimer a[onclick*=\"handleUSPrivacyAction('reject')\"], #cpra_banner_wrapper #cpra_btn_reject"
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "if": {
42
+ "visible": "#userConsentForAdsPopup"
43
+ },
44
+ "then": [
45
+ {
46
+ "hide": "#userConsentForAdsPopup"
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "if": {
52
+ "exists": "#gdprPopup-popup.ui-popup-active"
53
+ },
54
+ "then": [
55
+ {
56
+ "click": "#gdprPopup a[data-rel=\"back\"]"
57
+ }
58
+ ]
59
+ }
60
+ ],
61
+ "test": [
62
+ {
63
+ "cookieContains": "usprivacy=1YYN"
64
+ }
65
+ ]
66
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "unitedutilities",
3
+ "vendorUrl": "https://www.unitedutilities.com/",
4
+ "runContext": {
5
+ "main": true,
6
+ "frame": false,
7
+ "urlPattern": "^https?://(www\\.)?unitedutilities\\.com/"
8
+ },
9
+ "prehideSelectors": [".js-cookie-preferences"],
10
+ "detectCmp": [
11
+ {
12
+ "exists": ".js-cookie-preferences .js-manage-cta"
13
+ }
14
+ ],
15
+ "detectPopup": [
16
+ {
17
+ "visible": ".js-cookie-preferences.is-active"
18
+ }
19
+ ],
20
+ "optIn": [
21
+ {
22
+ "waitForThenClick": ".js-cookie-preferences .js-accept-all-cta"
23
+ }
24
+ ],
25
+ "optOut": [
26
+ {
27
+ "waitForThenClick": ".js-cookie-preferences .js-manage-cta"
28
+ },
29
+ {
30
+ "waitForVisible": ".js-cookie-preferences .js-manage-panel button[type=submit]"
31
+ },
32
+ {
33
+ "click": "label[for=performace-no]",
34
+ "optional": true
35
+ },
36
+ {
37
+ "click": "label[for=targeted-advertising-no]",
38
+ "optional": true
39
+ },
40
+ {
41
+ "click": ".js-cookie-preferences .js-manage-panel button[type=submit]"
42
+ }
43
+ ],
44
+ "test": [
45
+ {
46
+ "cookieContains": "advertisingCookies=false"
47
+ },
48
+ {
49
+ "cookieContains": "performanceAnalyticsCookies=false"
50
+ }
51
+ ]
52
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "uttings.co.uk",
3
+ "vendorUrl": "https://www.uttings.co.uk/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?uttings\\.co\\.uk/"
6
+ },
7
+ "prehideSelectors": ["#cookie-notice", "#cookie-blur"],
8
+ "detectCmp": [{ "exists": "#cookie-notice #cookie_notice_manage" }],
9
+ "detectPopup": [{ "visible": "#cookie-notice #cookie_notice_manage" }],
10
+ "optIn": [{ "waitForThenClick": "#cookie-notice #cookie_notice_accept" }],
11
+ "optOut": [
12
+ { "waitForThenClick": "#cookie-notice #cookie_notice_manage" },
13
+ { "waitForVisible": ["#colorbox iframe.cboxIframe", "#cookie_notice_save"], "timeout": 10000 },
14
+ {
15
+ "click": ["#colorbox iframe.cboxIframe", ".cookie-field input[type=checkbox]:checked:not(:disabled)"],
16
+ "all": true,
17
+ "optional": true
18
+ },
19
+ { "waitForThenClick": ["#colorbox iframe.cboxIframe", "#cookie_notice_save"], "timeout": 10000, "retry": 5, "retryInterval": 1000 }
20
+ ],
21
+ "test": [{ "cookieContains": "COOKIES_ADVERTISING=0" }]
22
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "watchfinder",
3
+ "vendorUrl": "https://www.watchfinder.co.uk/",
4
+ "cosmetic": false,
5
+ "prehideSelectors": ["#cookie-notice:has(.btn-configure)"],
6
+ "detectCmp": [{ "exists": "#cookie-notice .btn-configure" }, { "exists": "#modal_cookie-consent" }],
7
+ "detectPopup": [{ "visible": "#cookie-notice .btn-configure" }],
8
+ "optIn": [{ "waitForThenClick": "#cookie-notice .btn-accept-all" }],
9
+ "optOut": [
10
+ { "waitForThenClick": "#cookie-notice .btn-configure" },
11
+ { "waitForVisible": "#modal_cookie-consent" },
12
+ { "click": "#modal_cookie-consent input.cookie-toggle:checked:not(:disabled)", "all": true, "optional": true },
13
+ { "waitForThenClick": ".cookie_preferences .modal-footer button.fill-primary" }
14
+ ],
15
+ "test": [{ "cookieContains": "%22ConsentAnalytical%22%3Afalse" }, { "cookieContains": "%22ConsentAdvertising%22%3Afalse" }]
16
+ }