@duckduckgo/autoconsent 16.63.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 (180) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/dist/addon-firefox/background.bundle.js +1 -0
  3. package/dist/addon-firefox/compact-rules.json +1 -1
  4. package/dist/addon-firefox/content.bundle.js +177 -38
  5. package/dist/addon-firefox/manifest.json +1 -1
  6. package/dist/addon-firefox/popup.bundle.js +1 -0
  7. package/dist/addon-firefox/rule-index.json +1 -1
  8. package/dist/addon-firefox/rules.json +1 -1
  9. package/dist/addon-mv3/background.bundle.js +1 -0
  10. package/dist/addon-mv3/compact-rules.json +1 -1
  11. package/dist/addon-mv3/content.bundle.js +177 -38
  12. package/dist/addon-mv3/manifest.json +1 -1
  13. package/dist/addon-mv3/popup.bundle.js +1 -0
  14. package/dist/addon-mv3/rule-index.json +1 -1
  15. package/dist/addon-mv3/rules.json +1 -1
  16. package/dist/autoconsent.cjs.js +177 -38
  17. package/dist/autoconsent.esm.js +177 -38
  18. package/dist/autoconsent.playwright.js +180 -38
  19. package/dist/autoconsent.standalone.js +178 -39
  20. package/dist/heuristics.cjs.js +15 -3
  21. package/dist/heuristics.mjs +15 -3
  22. package/dist/types/heuristics.d.ts +12 -3
  23. package/dist/types/types.d.ts +12 -1
  24. package/lib/cmps/base.ts +5 -1
  25. package/lib/heuristic-patterns.ts +18 -2
  26. package/lib/heuristics.ts +240 -45
  27. package/lib/types.ts +16 -1
  28. package/lib/utils.ts +1 -0
  29. package/package.json +1 -1
  30. package/readme.md +1 -1
  31. package/rules/autoconsent/1pmobile.json +44 -0
  32. package/rules/autoconsent/amasty-gdpr-hyva.json +131 -0
  33. package/rules/autoconsent/amazonforum.json +86 -0
  34. package/rules/autoconsent/asrock.json +44 -0
  35. package/rules/autoconsent/babylist.json +23 -0
  36. package/rules/autoconsent/babylonbee.json +36 -0
  37. package/rules/autoconsent/bathnes-cookie-banner.json +31 -0
  38. package/rules/autoconsent/chairish.json +17 -0
  39. package/rules/autoconsent/chemicalbook.json +13 -0
  40. package/rules/autoconsent/chimnie-co-uk.json +21 -0
  41. package/rules/autoconsent/complianz-optin.json +5 -3
  42. package/rules/autoconsent/consentmo.json +5 -2
  43. package/rules/autoconsent/cookie-pref-form.json +48 -0
  44. package/rules/autoconsent/cookie-script.json +34 -15
  45. package/rules/autoconsent/endeavorhealth.json +31 -0
  46. package/rules/autoconsent/ensighten.json +3 -3
  47. package/rules/autoconsent/epaas.json +18 -1
  48. package/rules/autoconsent/fepblue-org.json +13 -0
  49. package/rules/autoconsent/fnsp-cookieconsent.json +30 -0
  50. package/rules/autoconsent/fod-fujitv.json +13 -0
  51. package/rules/autoconsent/fpl-com.json +34 -0
  52. package/rules/autoconsent/fuqer.json +11 -0
  53. package/rules/autoconsent/greatschools.json +13 -0
  54. package/rules/autoconsent/hamradio-com.json +13 -0
  55. package/rules/autoconsent/hkdir.json +33 -0
  56. package/rules/autoconsent/hubspot.json +7 -1
  57. package/rules/autoconsent/ibkr.json +16 -0
  58. package/rules/autoconsent/jetpens.json +44 -0
  59. package/rules/autoconsent/jokul-cookie-consent.json +28 -0
  60. package/rules/autoconsent/kanopy.json +88 -0
  61. package/rules/autoconsent/lego.json +27 -5
  62. package/rules/autoconsent/mainlinemenswear.json +39 -0
  63. package/rules/autoconsent/mars-cookies-prompt.json +20 -0
  64. package/rules/autoconsent/money-co-uk.json +21 -0
  65. package/rules/autoconsent/myjobquote.json +19 -0
  66. package/rules/autoconsent/niedziela-pl.json +35 -0
  67. package/rules/autoconsent/nikkeibp.json +10 -0
  68. package/rules/autoconsent/northwell-edu.json +29 -0
  69. package/rules/autoconsent/nts-org-uk.json +20 -0
  70. package/rules/autoconsent/nyu-langone.json +30 -0
  71. package/rules/autoconsent/ofsted-reports-cosmetic.json +13 -0
  72. package/rules/autoconsent/onecom-cookie-banner.json +25 -0
  73. package/rules/autoconsent/optum-legal-banner.json +10 -0
  74. package/rules/autoconsent/optum.json +35 -0
  75. package/rules/autoconsent/oslosportslager.no.json +34 -0
  76. package/rules/autoconsent/planned-parenthood.json +17 -0
  77. package/rules/autoconsent/plex.tv.json +52 -0
  78. package/rules/autoconsent/pornhub-compact-cookie-banner.json +1 -1
  79. package/rules/autoconsent/pornhub.json +1 -1
  80. package/rules/autoconsent/radio-canada.json +28 -0
  81. package/rules/autoconsent/regjeringen.no.json +13 -0
  82. package/rules/autoconsent/reviewsolicitors.json +41 -0
  83. package/rules/autoconsent/ring.json +1 -1
  84. package/rules/autoconsent/roll20.json +50 -0
  85. package/rules/autoconsent/sankei-digital.json +37 -0
  86. package/rules/autoconsent/sirdata.json +8 -3
  87. package/rules/autoconsent/site-notifications-cookie-usage.json +25 -0
  88. package/rules/autoconsent/sparebank1-optin.json +10 -0
  89. package/rules/autoconsent/texas-gov.json +22 -0
  90. package/rules/autoconsent/tiresize.com.json +17 -0
  91. package/rules/autoconsent/tri-table.json +6 -2
  92. package/rules/autoconsent/trillian.json +10 -0
  93. package/rules/autoconsent/tyreseeker.json +44 -0
  94. package/rules/autoconsent/uhcprovider.json +13 -0
  95. package/rules/autoconsent/united-online.json +66 -0
  96. package/rules/autoconsent/unitedutilities.json +52 -0
  97. package/rules/autoconsent/uttings.co.uk.json +22 -0
  98. package/rules/autoconsent/vinnova-se.json +50 -0
  99. package/rules/autoconsent/vortex-consent.json +33 -0
  100. package/rules/autoconsent/watchfinder.json +16 -0
  101. package/rules/compact-rules.json +1 -1
  102. package/rules/rule-index.json +1 -1
  103. package/rules/rules.json +1 -1
  104. package/tests/1pmobile.spec.ts +5 -0
  105. package/tests/amasty-gdpr-hyva.spec.ts +17 -0
  106. package/tests/amazonforum.spec.ts +9 -0
  107. package/tests/asrock.spec.ts +3 -0
  108. package/tests/babylist.spec.ts +3 -0
  109. package/tests/babylonbee.spec.ts +6 -0
  110. package/tests/bathnes-cookie-banner.spec.ts +3 -0
  111. package/tests/chairish.spec.ts +3 -0
  112. package/tests/chemicalbook.spec.ts +5 -0
  113. package/tests/chimnie-co-uk.spec.ts +3 -0
  114. package/tests/complianz-optin.spec.ts +2 -0
  115. package/tests/consentmo.spec.ts +2 -0
  116. package/tests/cookie-pref-form.spec.ts +8 -0
  117. package/tests/cookie-script.spec.ts +5 -0
  118. package/tests/endeavorhealth.spec.ts +3 -0
  119. package/tests/ensighten.spec.ts +7 -1
  120. package/tests/epaas.spec.ts +3 -0
  121. package/tests/fepblue-org.spec.ts +3 -0
  122. package/tests/fnsp-cookieconsent.spec.ts +9 -0
  123. package/tests/fod-fujitv.spec.ts +3 -0
  124. package/tests/fpl-com.spec.ts +3 -0
  125. package/tests/fuqer.spec.ts +3 -0
  126. package/tests/greatschools.spec.ts +3 -0
  127. package/tests/hamradio-com.spec.ts +3 -0
  128. package/tests/hkdir.spec.ts +10 -0
  129. package/tests/hubspot.spec.ts +6 -1
  130. package/tests/ibkr.spec.ts +18 -0
  131. package/tests/jetpens.spec.ts +5 -0
  132. package/tests/jokul-cookie-consent.spec.ts +3 -0
  133. package/tests/kanopy.spec.ts +5 -0
  134. package/tests/mainlinemenswear.spec.ts +3 -0
  135. package/tests/mars-cookies-prompt.spec.ts +3 -0
  136. package/tests/money-co-uk.spec.ts +3 -0
  137. package/tests/myjobquote.spec.ts +5 -0
  138. package/tests/niedziela-pl.spec.ts +3 -0
  139. package/tests/nikkeibp.spec.ts +8 -0
  140. package/tests/northwell-edu.spec.ts +3 -0
  141. package/tests/nts-org-uk.spec.ts +3 -0
  142. package/tests/nyu-langone.spec.ts +3 -0
  143. package/tests/ofsted-reports-cosmetic.spec.ts +3 -0
  144. package/tests/onecom-cookie-banner.spec.ts +5 -0
  145. package/tests/optum-legal-banner.spec.ts +9 -0
  146. package/tests/optum.spec.ts +6 -0
  147. package/tests/oslosportslager.no.spec.ts +3 -0
  148. package/tests/planned-parenthood.spec.ts +3 -0
  149. package/tests/plex.tv.spec.ts +5 -0
  150. package/tests/pornhub.spec.ts +1 -1
  151. package/tests/radio-canada.spec.ts +15 -0
  152. package/tests/regjeringen.no.spec.ts +3 -0
  153. package/tests/reviewsolicitors.spec.ts +3 -0
  154. package/tests/roll20.spec.ts +3 -0
  155. package/tests/sankei-digital.spec.ts +9 -0
  156. package/tests/sirdata.spec.ts +13 -1
  157. package/tests/site-notifications-cookie-usage.spec.ts +3 -0
  158. package/tests/sparebank1-optin.spec.ts +8 -0
  159. package/tests/texas-gov.spec.ts +3 -0
  160. package/tests/tiresize.com.spec.ts +3 -0
  161. package/tests/tri-table.spec.ts +1 -1
  162. package/tests/trillian.spec.ts +15 -0
  163. package/tests/tyreseeker.spec.ts +3 -0
  164. package/tests/uhcprovider.spec.ts +3 -0
  165. package/tests/united-online.spec.ts +4 -0
  166. package/tests/unitedutilities.spec.ts +11 -0
  167. package/tests/uttings.co.uk.spec.ts +3 -0
  168. package/tests/vinnova-se.spec.ts +6 -0
  169. package/tests/vortex-consent.spec.ts +18 -0
  170. package/tests/watchfinder.spec.ts +3 -0
  171. package/tests-wtr/heuristics/get-actionable-popups.ts +41 -7
  172. package/tests-wtr/heuristics/get-potential-popups.test.ts +235 -4
  173. package/tests-wtr/heuristics/heuristic-cmp.ts +16 -1
  174. package/tests-wtr/heuristics/heuristics-utils.test.ts +34 -4
  175. package/rules/generated/auto_CA_plex.tv_ee4.json +0 -40
  176. package/rules/generated/auto_CA_support.plex.tv_gn3.json +0 -40
  177. package/rules/generated/auto_US_interactivebrokers.com_0.json +0 -28
  178. package/tests/generated/auto_CA_plex.tv_ee4.spec.ts +0 -2
  179. package/tests/generated/auto_CA_support.plex.tv_gn3.spec.ts +0 -6
  180. package/tests/generated/auto_US_interactivebrokers.com_0.spec.ts +0 -3
@@ -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,50 @@
1
+ {
2
+ "name": "vinnova-se",
3
+ "vendorUrl": "https://www.vinnova.se/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?vinnova\\.se/"
6
+ },
7
+ "prehideSelectors": [".component-lightbox-gdpr"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".component-lightbox-gdpr .gdpr_cookie_settings_accept_cookies"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".component-lightbox-gdpr .gdpr_cookie_settings_accept_cookies"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".gdpr_cookie_settings_accept_cookies__button-container__button.button--solid--primary"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ".gdpr_cookie_settings_accept_cookies__button-container__button.button--solid--secondary"
26
+ },
27
+ {
28
+ "waitForVisible": ".gdpr_cookie_settings_cookie_settings"
29
+ },
30
+ {
31
+ "comment": "levels are cumulative: switching off the lowest level switches off all higher ones",
32
+ "if": {
33
+ "exists": ".gdpr_cookie_settings_cookie_settings .component-toggle-button[toggle_selected=True]"
34
+ },
35
+ "then": [
36
+ {
37
+ "click": ".gdpr_cookie_settings_cookie_settings .component-toggle-button[toggle_selected=True]"
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "waitForThenClick": ".gdpr_cookie_settings_cookie_settings__main-section__button-container__button"
43
+ }
44
+ ],
45
+ "test": [
46
+ {
47
+ "cookieContains": "_vinnova_gdpr=0"
48
+ }
49
+ ]
50
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "vortex-consent",
3
+ "prehideSelectors": [".consent-overlay", "div.consent[role=dialog]"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": "div.consent[role=dialog] .consent-main-buttons .consent-decline-all"
7
+ }
8
+ ],
9
+ "detectPopup": [
10
+ {
11
+ "visible": "div.consent[role=dialog] .consent-main-buttons .consent-decline-all"
12
+ }
13
+ ],
14
+ "optIn": [
15
+ {
16
+ "waitForThenClick": "div.consent[role=dialog] .consent-main-buttons .consent-accept-all"
17
+ }
18
+ ],
19
+ "optOut": [
20
+ {
21
+ "waitForThenClick": "div.consent[role=dialog] .consent-main-buttons .consent-decline-all"
22
+ }
23
+ ],
24
+ "test": [
25
+ {
26
+ "cookieContains": "PrivacyPolicyOptOut"
27
+ },
28
+ {
29
+ "cookieContains": "UsageAnalysisConsent=yes",
30
+ "negated": true
31
+ }
32
+ ]
33
+ }
@@ -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
+ }