@duckduckgo/autoconsent 12.11.0 → 12.12.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 (74) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/addon-firefox/background.bundle.js +16 -1
  3. package/dist/addon-firefox/content.bundle.js +19 -4
  4. package/dist/addon-firefox/manifest.json +1 -1
  5. package/dist/addon-firefox/rules.json +957 -38
  6. package/dist/addon-mv3/background.bundle.js +16 -1
  7. package/dist/addon-mv3/content.bundle.js +19 -4
  8. package/dist/addon-mv3/manifest.json +1 -1
  9. package/dist/addon-mv3/rules.json +957 -38
  10. package/dist/autoconsent.cjs.js +17 -2
  11. package/dist/autoconsent.esm.js +17 -2
  12. package/dist/autoconsent.extra.cjs.js +19 -4
  13. package/dist/autoconsent.extra.esm.js +19 -4
  14. package/dist/autoconsent.playwright.js +974 -40
  15. package/lib/cmps/cookiebot.ts +1 -1
  16. package/lib/eval-snippets.ts +15 -0
  17. package/lib/filterlist-engine.ts +2 -2
  18. package/package.json +1 -1
  19. package/rules/autoconsent/adultfriendfinder.json +33 -0
  20. package/rules/autoconsent/ally.json +29 -0
  21. package/rules/autoconsent/anthropic.json +30 -0
  22. package/rules/autoconsent/borlabs.json +25 -19
  23. package/rules/autoconsent/bswhealth.json +42 -0
  24. package/rules/autoconsent/ckies.json +30 -0
  25. package/rules/autoconsent/cookiejs-banner.json +30 -0
  26. package/rules/autoconsent/cookiejs-modal.json +30 -0
  27. package/rules/autoconsent/depop.json +42 -0
  28. package/rules/autoconsent/glastonburyfestivals.json +29 -0
  29. package/rules/autoconsent/leafly.json +29 -0
  30. package/rules/autoconsent/macaron.json +38 -0
  31. package/rules/autoconsent/nhnieuws.json +37 -0
  32. package/rules/autoconsent/overleaf.json +30 -0
  33. package/rules/autoconsent/paychex.json +29 -0
  34. package/rules/autoconsent/plos.json +39 -0
  35. package/rules/autoconsent/ratemyprofessors.json +29 -0
  36. package/rules/autoconsent/ring.json +36 -0
  37. package/rules/autoconsent/sas.json +30 -0
  38. package/rules/autoconsent/synology.json +42 -0
  39. package/rules/autoconsent/tplink.json +36 -0
  40. package/rules/autoconsent/u12-data-protection-notice.json +25 -0
  41. package/rules/autoconsent/unicourt.json +29 -0
  42. package/rules/autoconsent/wikiwand.json +29 -0
  43. package/rules/autoconsent/wix.json +30 -0
  44. package/rules/autoconsent/xhamster-eu.json +8 -9
  45. package/rules/autoconsent/xhamster-us.json +6 -6
  46. package/rules/autoconsent/zinio.json +37 -0
  47. package/rules/create-rule.mjs +0 -1
  48. package/rules/filterlist.txt +73 -63
  49. package/rules/rules.json +957 -38
  50. package/tests/adultfriendfinder.spec.ts +3 -0
  51. package/tests/ally.spec.ts +3 -0
  52. package/tests/anthropic.spec.ts +3 -0
  53. package/tests/bswhealth.spec.ts +3 -0
  54. package/tests/ckies.spec.ts +7 -0
  55. package/tests/cookiejs-banner.spec.ts +3 -0
  56. package/tests/cookiejs-modal.spec.ts +3 -0
  57. package/tests/depop.spec.ts +3 -0
  58. package/tests/glastonburyfestivals.spec.ts +3 -0
  59. package/tests/leafly.spec.ts +3 -0
  60. package/tests/macaron.spec.ts +7 -0
  61. package/tests/nhnieuws.spec.ts +3 -0
  62. package/tests/overleaf.spec.ts +3 -0
  63. package/tests/paychex.spec.ts +3 -0
  64. package/tests/plos.spec.ts +3 -0
  65. package/tests/ratemyprofessors.spec.ts +3 -0
  66. package/tests/ring.spec.ts +3 -0
  67. package/tests/sas.spec.ts +3 -0
  68. package/tests/synology.spec.ts +3 -0
  69. package/tests/tplink.spec.ts +3 -0
  70. package/tests/u12-data-protection-notice.spec.ts +3 -0
  71. package/tests/unicourt.spec.ts +3 -0
  72. package/tests/wikiwand.spec.ts +3 -0
  73. package/tests/wix.spec.ts +3 -0
  74. package/tests/zinio.spec.ts +3 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,39 @@
1
+ # v12.12.0 (Fri Feb 28 2025)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - Update EasyList Cookie to 1f078adcab61d59e006a1b16847c07bcede57ea3 [#664](https://github.com/duckduckgo/autoconsent/pull/664) ([@sammacbeth](https://github.com/sammacbeth) [@github-actions[bot]](https://github.com/github-actions[bot]))
6
+ - add rule for tplink sites [#662](https://github.com/duckduckgo/autoconsent/pull/662) ([@muodov](https://github.com/muodov))
7
+ - Add rule for synology sites [#661](https://github.com/duckduckgo/autoconsent/pull/661) ([@muodov](https://github.com/muodov))
8
+ - add rule for wix.com [#666](https://github.com/duckduckgo/autoconsent/pull/666) ([@muodov](https://github.com/muodov))
9
+ - Site-specific rules for several top domains [#657](https://github.com/duckduckgo/autoconsent/pull/657) ([@muodov](https://github.com/muodov))
10
+ - Fix rules for xhamster [#649](https://github.com/duckduckgo/autoconsent/pull/649) ([@muodov](https://github.com/muodov))
11
+ - Support another flavor of borlabs [#650](https://github.com/duckduckgo/autoconsent/pull/650) ([@muodov](https://github.com/muodov))
12
+ - Add rule for macaron CMP [#651](https://github.com/duckduckgo/autoconsent/pull/651) ([@muodov](https://github.com/muodov))
13
+ - add rule for a common cmp [#652](https://github.com/duckduckgo/autoconsent/pull/652) ([@muodov](https://github.com/muodov))
14
+ - Add rule for ring.com [#654](https://github.com/duckduckgo/autoconsent/pull/654) ([@muodov](https://github.com/muodov))
15
+ - add rule for nhnieuws.nl [#655](https://github.com/duckduckgo/autoconsent/pull/655) ([@muodov](https://github.com/muodov))
16
+ - add rule for plos.org [#656](https://github.com/duckduckgo/autoconsent/pull/656) ([@muodov](https://github.com/muodov))
17
+ - Add rule for help.twitter.com [#648](https://github.com/duckduckgo/autoconsent/pull/648) ([@muodov](https://github.com/muodov))
18
+ - Add rule for anthropic [#647](https://github.com/duckduckgo/autoconsent/pull/647) ([@muodov](https://github.com/muodov))
19
+ - add rule for adultfriendfinder.com [#646](https://github.com/duckduckgo/autoconsent/pull/646) ([@muodov](https://github.com/muodov))
20
+
21
+ #### 🐛 Bug Fix
22
+
23
+ - increase the timeout in cookiebot to prevent race conditions [#653](https://github.com/duckduckgo/autoconsent/pull/653) ([@muodov](https://github.com/muodov))
24
+
25
+ #### 🏠 Internal
26
+
27
+ - Do not print the rule in creation script [#660](https://github.com/duckduckgo/autoconsent/pull/660) ([@muodov](https://github.com/muodov))
28
+
29
+ #### Authors: 3
30
+
31
+ - [@github-actions[bot]](https://github.com/github-actions[bot])
32
+ - Maxim Tsoy ([@muodov](https://github.com/muodov))
33
+ - Sam Macbeth ([@sammacbeth](https://github.com/sammacbeth))
34
+
35
+ ---
36
+
1
37
  # v12.11.0 (Fri Feb 21 2025)
2
38
 
3
39
  #### 🚀 Enhancement
@@ -54,7 +54,9 @@
54
54
  EVAL_TRUSTARC_FRAME_GTM: () => window && window.QueryString && window.QueryString.gtm === "1",
55
55
  // declarative rules
56
56
  EVAL_ABC_TEST: () => document.cookie.includes("trackingconsent"),
57
+ EVAL_ANTHROPIC_TEST: () => !!document.cookie.includes("anthropic-consent-preferences"),
57
58
  EVAL_ADROLL_0: () => !document.cookie.includes("__adroll_fpc"),
59
+ EVAL_ADULTFRIENDFINDER_TEST: () => !!localStorage.getItem("cookieConsent"),
58
60
  EVAL_AFFINITY_SERIF_COM_0: () => document.cookie.includes("serif_manage_cookies_viewed") && !document.cookie.includes("serif_allow_analytics"),
59
61
  EVAL_ARBEITSAGENTUR_TEST: () => document.cookie.includes("cookie_consent=denied"),
60
62
  EVAL_AXEPTIO_0: () => document.cookie.includes("axeptio_authorized_vendors=%2C%2C"),
@@ -67,15 +69,19 @@
67
69
  document.cookie.split(";").find((c) => c.indexOf("borlabs-cookie") !== -1).split("=", 2)[1]
68
70
  )
69
71
  ).consents.statistics,
72
+ EVAL_BSWHEALTH_TEST: () => document.cookie.includes("x-bsw-consentCookie"),
70
73
  EVAL_BUNDESREGIERUNG_DE_0: () => document.cookie.match("cookie-allow-tracking=0"),
71
74
  EVAL_CANVA_0: () => !document.cookie.includes("gtm_fpc_engagement_event"),
72
75
  EVAL_CC_BANNER2_0: () => !!document.cookie.match(/sncc=[^;]+D%3Dtrue/),
76
+ EVAL_CKIES_TEST: () => document.cookie.includes("ckies_cookielaw"),
73
77
  EVAL_CLICKIO_0: () => document.cookie.includes("__lxG__consent__v2_daisybit="),
74
78
  EVAL_CLINCH_0: () => document.cookie.includes("ctc_rejected=1"),
75
79
  EVAL_COOKIECONSENT2_TEST: () => document.cookie.includes("cc_cookie="),
76
80
  EVAL_COOKIECONSENT3_TEST: () => document.cookie.includes("cc_cookie="),
77
81
  EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
78
82
  EVAL_COMPLIANZ_BANNER_0: () => document.cookie.includes("cmplz_banner-status=dismissed"),
83
+ EVAL_COOKIEJS_BANNER_TEST: () => document.cookie.includes("analytics_cookies=false"),
84
+ EVAL_COOKIEJS_MODAL_TEST: () => document.cookie.includes("cookiejs_preferences"),
79
85
  EVAL_COOKIE_LAW_INFO_0: () => CLI.disableAllCookies() || CLI.reject_close() || true,
80
86
  EVAL_COOKIE_LAW_INFO_1: () => document.cookie.indexOf("cookielawinfo-checkbox-non-necessary=yes") === -1,
81
87
  EVAL_COOKIE_LAW_INFO_DETECT: () => !!window.CLI,
@@ -99,6 +105,7 @@
99
105
  EVAL_COOKIEYES_0: () => document.cookie.includes("advertisement:no"),
100
106
  EVAL_CT_ULTIMATE_GDPR_TEST: () => document.cookie.includes("ct-ultimate-gdpr-cookie="),
101
107
  EVAL_DAILYMOTION_0: () => !!document.cookie.match("dm-euconsent-v2"),
108
+ EVAL_DEPOP_TEST: () => document.cookie.includes("gdpr__"),
102
109
  EVAL_DNDBEYOND_TEST: () => document.cookie.includes("cookie-consent=denied"),
103
110
  EVAL_DSGVO_0: () => !document.cookie.includes("sp_dsgvo_cookie_settings"),
104
111
  EVAL_DUNELM_0: () => document.cookie.includes("cc_functional=0") && document.cookie.includes("cc_targeting=0"),
@@ -124,6 +131,7 @@
124
131
  EVAL_IWINK_TEST: () => document.cookie.includes("cookie_permission_granted=no"),
125
132
  EVAL_JQUERY_COOKIEBAR_0: () => !document.cookie.includes("cookies-state=accepted"),
126
133
  EVAL_KETCH_TEST: () => document.cookie.includes("_ketch_consent_v1_"),
134
+ EVAL_MACARON_TEST: () => document.cookie.includes("_deCookiesConsent"),
127
135
  EVAL_MEDIAVINE_0: () => document.querySelectorAll('[data-name="mediavine-gdpr-cmp"] input[type=checkbox]').forEach((x) => x.checked && x.click()) || true,
128
136
  EVAL_MICROSOFT_0: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Reject|Ablehnen"))[0].click() || true,
129
137
  EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
@@ -131,20 +139,24 @@
131
139
  EVAL_MOOVE_0: () => document.querySelectorAll("#moove_gdpr_cookie_modal input").forEach((i) => {
132
140
  if (!i.disabled) i.checked = i.name === "moove_gdpr_strict_cookies" || i.id === "moove_gdpr_strict_cookies";
133
141
  }) || true,
142
+ EVAL_NHNIEUWS_TEST: () => !!localStorage.getItem("psh:cookies-seen"),
134
143
  EVAL_ONENINETWO_0: () => document.cookie.includes("CC_ADVERTISING=NO") && document.cookie.includes("CC_ANALYTICS=NO"),
135
144
  EVAL_OPENAI_TEST: () => document.cookie.includes("oai-allow-ne=false"),
136
145
  EVAL_OPERA_0: () => document.cookie.includes("cookie_consent_essential=true") && !document.cookie.includes("cookie_consent_marketing=true"),
146
+ EVAL_OVERLEAF_TEST: () => document.cookie.includes("oa"),
137
147
  EVAL_PANDECTES_TEST: () => document.cookie.includes("_pandectes_gdpr=") && JSON.parse(
138
148
  atob(
139
149
  document.cookie.split(";").find((s) => s.trim().startsWith("_pandectes_gdpr")).split("=")[1]
140
150
  )
141
151
  ).status === "deny",
142
152
  EVAL_PAYPAL_0: () => document.cookie.includes("cookie_prefs") === true,
153
+ EVAL_PLOS_TEST: () => document.cookie.includes("plosCookieConsentStatus=false"),
143
154
  EVAL_PRIMEBOX_0: () => !document.cookie.includes("cb-enabled=accepted"),
144
155
  EVAL_POSTNL_TEST: () => document.cookie.includes("CookiePermissionInfo"),
145
156
  EVAL_PUBTECH_0: () => document.cookie.includes("euconsent-v2") && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)),
146
157
  EVAL_REDDIT_0: () => document.cookie.includes("eu_cookie={%22opted%22:true%2C%22nonessential%22:false}"),
147
158
  EVAL_ROBLOX_TEST: () => document.cookie.includes("RBXcb"),
159
+ EVAL_SAS_TEST: () => document.cookie.includes("_cookieanalytics"),
148
160
  EVAL_SHOPIFY_TEST: () => document.cookie.includes("gdpr_cookie_consent=0") || document.cookie.includes("_tracking_consent=") && JSON.parse(
149
161
  decodeURIComponent(
150
162
  document.cookie.split(";").find((s) => s.trim().startsWith("_tracking_consent")).split("=")[1]
@@ -165,6 +177,7 @@
165
177
  )
166
178
  ).preference_state === 2,
167
179
  EVAL_SVT_TEST: () => document.cookie.includes('cookie-consent-1={"optedIn":true,"functionality":false,"statistics":false}'),
180
+ EVAL_SYNOLOGY_TEST: () => document.cookie.includes("syno_confirm_v5_answer") && document.cookie.includes('"targeting":false'),
168
181
  EVAL_TAKEALOT_0: () => document.body.classList.remove("freeze") || (document.body.style = "") || true,
169
182
  EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
170
183
  EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
@@ -183,6 +196,7 @@
183
196
  EVAL_THEFREEDICTIONARY_0: () => cmpUi.showPurposes() || cmpUi.rejectAll() || true,
184
197
  EVAL_THEFREEDICTIONARY_1: () => cmpUi.allowAll() || true,
185
198
  EVAL_THEVERGE_0: () => document.cookie.includes("_duet_gdpr_acknowledged=1"),
199
+ EVAL_TPLINK_TEST: () => document.cookie.includes("tp_privacy_base"),
186
200
  EVAL_TWCC_TEST: () => document.cookie.includes("twCookieConsent="),
187
201
  EVAL_UBUNTU_COM_0: () => document.cookie.includes("_cookies_accepted=essential"),
188
202
  EVAL_UK_COOKIE_CONSENT_0: () => !document.cookie.includes("catAccCookies"),
@@ -200,7 +214,8 @@
200
214
  EVAL_XE_TEST: () => document.cookie.includes("xeConsentState={%22performance%22:false%2C%22marketing%22:false%2C%22compliance%22:false}"),
201
215
  EVAL_XING_0: () => document.cookie.includes("userConsent=%7B%22marketing%22%3Afalse"),
202
216
  EVAL_YOUTUBE_DESKTOP_0: () => !!document.cookie.match(/SOCS=CAE/),
203
- EVAL_YOUTUBE_MOBILE_0: () => !!document.cookie.match(/SOCS=CAE/)
217
+ EVAL_YOUTUBE_MOBILE_0: () => !!document.cookie.match(/SOCS=CAE/),
218
+ EVAL_ZINIO_TEST: () => document.cookie.includes("zinio-cookie-consent")
204
219
  };
205
220
 
206
221
  // addon/mv-compat.ts