@duckduckgo/autoconsent 16.61.0 → 16.63.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 (189) hide show
  1. package/.node-version +1 -1
  2. package/CHANGELOG.md +118 -0
  3. package/dist/addon-firefox/compact-rules.json +1 -1
  4. package/dist/addon-firefox/content.bundle.js +14 -1
  5. package/dist/addon-firefox/manifest.json +1 -1
  6. package/dist/addon-firefox/rule-index.json +1 -1
  7. package/dist/addon-firefox/rules.json +1 -1
  8. package/dist/addon-mv3/compact-rules.json +1 -1
  9. package/dist/addon-mv3/content.bundle.js +14 -1
  10. package/dist/addon-mv3/manifest.json +1 -1
  11. package/dist/addon-mv3/rule-index.json +1 -1
  12. package/dist/addon-mv3/rules.json +1 -1
  13. package/dist/autoconsent.cjs.js +14 -1
  14. package/dist/autoconsent.esm.js +14 -1
  15. package/dist/autoconsent.playwright.js +14 -1
  16. package/dist/autoconsent.standalone.js +15 -2
  17. package/dist/heuristics.cjs.js +14 -1
  18. package/dist/heuristics.mjs +14 -1
  19. package/lib/heuristic-patterns.ts +17 -1
  20. package/package.json +2 -2
  21. package/rules/autoconsent/acos-cms.json +14 -0
  22. package/rules/autoconsent/adnuntius.json +31 -0
  23. package/rules/autoconsent/adstate.json +32 -0
  24. package/rules/autoconsent/appconsent-legacy.json +22 -1
  25. package/rules/autoconsent/aslroma1-it.json +36 -0
  26. package/rules/autoconsent/bancaditalia.json +29 -0
  27. package/rules/autoconsent/banknorwegian.json +19 -0
  28. package/rules/autoconsent/batteriexperten-com.json +34 -0
  29. package/rules/autoconsent/beetle-tracking.json +22 -0
  30. package/rules/autoconsent/bold-cookie-consent.json +64 -0
  31. package/rules/autoconsent/bosch-dock-privacy-settings.json +10 -0
  32. package/rules/autoconsent/bullionbypost.json +113 -0
  33. package/rules/autoconsent/buonmedico.json +32 -0
  34. package/rules/autoconsent/casier-judiciaire-justice-gouv-fr.json +40 -0
  35. package/rules/autoconsent/civilservicejobs-service-gov-uk.json +38 -0
  36. package/rules/autoconsent/ckies.json +1 -1
  37. package/rules/autoconsent/coki61.json +29 -0
  38. package/rules/autoconsent/compricer.json +19 -0
  39. package/rules/autoconsent/concordia-ch.json +13 -0
  40. package/rules/autoconsent/consentaur.json +30 -0
  41. package/rules/autoconsent/consentmagic.json +62 -0
  42. package/rules/autoconsent/cookie-notice-checkboxes.json +28 -0
  43. package/rules/autoconsent/cookie-script.json +8 -6
  44. package/rules/autoconsent/cookiesinfo-closecookies.json +9 -0
  45. package/rules/autoconsent/dack365.json +35 -0
  46. package/rules/autoconsent/ecoprivacy.json +42 -0
  47. package/rules/autoconsent/emr-ch.json +16 -0
  48. package/rules/autoconsent/eu-cookie-law-popup.json +33 -0
  49. package/rules/autoconsent/evozen.fr.json +27 -0
  50. package/rules/autoconsent/fascicolosanitario-lombardia.json +14 -0
  51. package/rules/autoconsent/fideuram.json +13 -0
  52. package/rules/autoconsent/finsweet.json +15 -4
  53. package/rules/autoconsent/fondoest.it.json +16 -0
  54. package/rules/autoconsent/fonts-google-com.json +24 -0
  55. package/rules/autoconsent/fundingchoices.json +12 -2
  56. package/rules/autoconsent/giustizia-it.json +40 -0
  57. package/rules/autoconsent/gnoccaforum.json +12 -0
  58. package/rules/autoconsent/hyrabostad.json +21 -0
  59. package/rules/autoconsent/idoctors.it.json +21 -0
  60. package/rules/autoconsent/ihavecookies.json +20 -0
  61. package/rules/autoconsent/iisvaldagno.json +35 -0
  62. package/rules/autoconsent/incomit.json +30 -0
  63. package/rules/autoconsent/ing-de.json +1 -1
  64. package/rules/autoconsent/insided.json +15 -0
  65. package/rules/autoconsent/io.no.json +36 -0
  66. package/rules/autoconsent/jollyroom.json +47 -0
  67. package/rules/autoconsent/kartverket.json +46 -0
  68. package/rules/autoconsent/klp-cookie-banner.json +32 -0
  69. package/rules/autoconsent/krieger-consent-form.json +12 -0
  70. package/rules/autoconsent/kulturit-ccm.json +11 -0
  71. package/rules/autoconsent/lexbase-se.json +35 -0
  72. package/rules/autoconsent/luxmed.json +33 -0
  73. package/rules/autoconsent/massaggiamilano.json +15 -0
  74. package/rules/autoconsent/mercedes-benz-cmm.json +55 -0
  75. package/rules/autoconsent/meta-cookie-dialog.json +37 -0
  76. package/rules/autoconsent/mittanbud.json +33 -0
  77. package/rules/autoconsent/nojazz.json +25 -0
  78. package/rules/autoconsent/octopusenergy-it.json +24 -0
  79. package/rules/autoconsent/opencmp.json +70 -0
  80. package/rules/autoconsent/pharmasave.json +13 -0
  81. package/rules/autoconsent/poki.json +37 -0
  82. package/rules/autoconsent/polisen-se.json +26 -0
  83. package/rules/autoconsent/praktikertjanst.json +16 -0
  84. package/rules/autoconsent/qtip-jgrowl-cookies.json +31 -0
  85. package/rules/autoconsent/refurbed.json +40 -0
  86. package/rules/autoconsent/rinkabyror-se.json +29 -0
  87. package/rules/autoconsent/romeo.json +47 -0
  88. package/rules/autoconsent/sfanytime.json +47 -0
  89. package/rules/autoconsent/smartweb.json +18 -0
  90. package/rules/autoconsent/sourcepoint-top.json +6 -6
  91. package/rules/autoconsent/stockholm-stad.json +42 -0
  92. package/rules/autoconsent/stright.json +19 -1
  93. package/rules/autoconsent/stripchat.com.json +26 -5
  94. package/rules/autoconsent/trustarc-newcm.json +4 -4
  95. package/rules/autoconsent/tvp.json +27 -0
  96. package/rules/autoconsent/umcg.json +16 -0
  97. package/rules/autoconsent/unive.it.json +62 -0
  98. package/rules/autoconsent/urvaerket.json +33 -0
  99. package/rules/autoconsent/vergelijkgroep.json +37 -0
  100. package/rules/autoconsent/volvocars-com.json +23 -2
  101. package/rules/autoconsent/vue-cookie-accept-decline.json +42 -0
  102. package/rules/autoconsent/widiba.json +16 -0
  103. package/rules/autoconsent/wimc-gtm-consent.json +31 -0
  104. package/rules/autoconsent/xlbygg.se.json +44 -0
  105. package/rules/compact-rules.json +1 -1
  106. package/rules/rule-index.json +1 -1
  107. package/rules/rules.json +1 -1
  108. package/tests/acos-cms.spec.ts +9 -0
  109. package/tests/adnuntius.spec.ts +8 -0
  110. package/tests/adstate.spec.ts +7 -0
  111. package/tests/appconsent-legacy.spec.ts +1 -1
  112. package/tests/aslroma1-it.spec.ts +3 -0
  113. package/tests/bancaditalia.spec.ts +15 -0
  114. package/tests/banknorwegian.spec.ts +13 -0
  115. package/tests/batteriexperten-com.spec.ts +10 -0
  116. package/tests/beetle-tracking.spec.ts +3 -0
  117. package/tests/bold-cookie-consent.spec.ts +14 -0
  118. package/tests/bosch-dock-privacy-settings.spec.ts +8 -0
  119. package/tests/bullionbypost.spec.ts +17 -0
  120. package/tests/buonmedico.spec.ts +3 -0
  121. package/tests/casier-judiciaire-justice-gouv-fr.spec.ts +3 -0
  122. package/tests/civilservicejobs-service-gov-uk.spec.ts +3 -0
  123. package/tests/coki61.spec.ts +3 -0
  124. package/tests/compricer.spec.ts +3 -0
  125. package/tests/concordia-ch.spec.ts +3 -0
  126. package/tests/consentaur.spec.ts +6 -0
  127. package/tests/consentmagic.spec.ts +10 -0
  128. package/tests/cookie-notice-checkboxes.spec.ts +13 -0
  129. package/tests/cookie-script.spec.ts +4 -0
  130. package/tests/cookiesinfo-closecookies.spec.ts +8 -0
  131. package/tests/dack365.spec.ts +3 -0
  132. package/tests/ecoprivacy.spec.ts +8 -0
  133. package/tests/emr-ch.spec.ts +3 -0
  134. package/tests/eu-cookie-law-popup.spec.ts +8 -0
  135. package/tests/evozen.fr.spec.ts +3 -0
  136. package/tests/fascicolosanitario-lombardia.spec.ts +3 -0
  137. package/tests/fideuram.spec.ts +3 -0
  138. package/tests/finsweet.spec.ts +5 -1
  139. package/tests/fondoest.it.spec.ts +6 -0
  140. package/tests/fonts-google-com.spec.ts +5 -0
  141. package/tests/fundingchoices.spec.ts +7 -1
  142. package/tests/giustizia-it.spec.ts +15 -0
  143. package/tests/gnoccaforum.spec.ts +3 -0
  144. package/tests/hyrabostad.spec.ts +3 -0
  145. package/tests/idoctors.it.spec.ts +3 -0
  146. package/tests/ihavecookies.spec.ts +3 -0
  147. package/tests/iisvaldagno.spec.ts +3 -0
  148. package/tests/incomit.spec.ts +8 -0
  149. package/tests/insided.spec.ts +9 -0
  150. package/tests/io.no.spec.ts +3 -0
  151. package/tests/jollyroom.spec.ts +9 -0
  152. package/tests/kartverket.spec.ts +3 -0
  153. package/tests/klp-cookie-banner.spec.ts +5 -0
  154. package/tests/krieger-consent-form.spec.ts +3 -0
  155. package/tests/kulturit-ccm.spec.ts +3 -0
  156. package/tests/lexbase-se.spec.ts +5 -0
  157. package/tests/luxmed.spec.ts +3 -0
  158. package/tests/massaggiamilano.spec.ts +3 -0
  159. package/tests/mercedes-benz-cmm.spec.ts +12 -0
  160. package/tests/meta-cookie-dialog.spec.ts +14 -0
  161. package/tests/mittanbud.spec.ts +3 -0
  162. package/tests/nojazz.spec.ts +7 -0
  163. package/tests/octopusenergy-it.spec.ts +3 -0
  164. package/tests/opencmp.spec.ts +22 -0
  165. package/tests/pharmasave.spec.ts +3 -0
  166. package/tests/poki.spec.ts +6 -0
  167. package/tests/polisen-se.spec.ts +3 -0
  168. package/tests/praktikertjanst.spec.ts +3 -0
  169. package/tests/qtip-jgrowl-cookies.spec.ts +9 -0
  170. package/tests/refurbed.spec.ts +10 -0
  171. package/tests/rinkabyror-se.spec.ts +3 -0
  172. package/tests/romeo.spec.ts +3 -0
  173. package/tests/sfanytime.spec.ts +3 -0
  174. package/tests/smartweb.spec.ts +17 -0
  175. package/tests/stockholm-stad.spec.ts +7 -0
  176. package/tests/stright.spec.ts +11 -0
  177. package/tests/stripchat.com.spec.ts +4 -1
  178. package/tests/trustarc-newcm.spec.ts +9 -5
  179. package/tests/tvp.spec.ts +3 -0
  180. package/tests/umcg.spec.ts +3 -0
  181. package/tests/unive.it.spec.ts +3 -0
  182. package/tests/urvaerket.spec.ts +13 -0
  183. package/tests/vergelijkgroep.spec.ts +3 -0
  184. package/tests/volvocars-com.spec.ts +1 -1
  185. package/tests/vue-cookie-accept-decline.spec.ts +8 -0
  186. package/tests/widiba.spec.ts +3 -0
  187. package/tests/wimc-gtm-consent.spec.ts +3 -0
  188. package/tests/xlbygg.se.spec.ts +3 -0
  189. package/tests-wtr/heuristics/heuristics-utils.test.ts +49 -0
@@ -1,7 +1,11 @@
1
1
  import generateCMPTests from '../playwright/runner';
2
2
 
3
- generateCMPTests('TrustArc-newcm', ['https://www.gwr.com/', 'https://www.usa.philips.com/'], {
4
- testOptOut: true,
5
- testOptIn: false,
6
- testSelfTest: false,
7
- });
3
+ generateCMPTests(
4
+ 'TrustArc-newcm',
5
+ ['https://www.gwr.com/', 'https://www.avantiwestcoast.co.uk/', 'https://www.philips-hue.com/', 'https://www.signify.com/'],
6
+ {
7
+ testOptOut: true,
8
+ testOptIn: false,
9
+ testSelfTest: false,
10
+ },
11
+ );
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('tvp', ['https://vod.tvp.pl/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('umcg', ['https://www.umcg.nl/', 'https://umcgresearch.org/', 'https://werkenbijumcg.nl/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('unive.it', ['https://www.unive.it/', 'https://fondazione.unive.it/', 'https://pric.unive.it/']);
@@ -0,0 +1,13 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests(
4
+ 'urvaerket',
5
+ [
6
+ 'https://www.urvaerket.dk/',
7
+ 'https://www.uret.se/',
8
+ 'https://www.urverket.no/',
9
+ 'https://www.laatukellot.fi/',
10
+ 'https://www.thewatchagency.com/',
11
+ ],
12
+ {},
13
+ );
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('vergelijkgroep', ['https://www.keuze.nl/', 'https://www.privateleaseaanbiedingen.nl/']);
@@ -1,3 +1,3 @@
1
1
  import generateCMPTests from '../playwright/runner';
2
2
 
3
- generateCMPTests('volvocars-com', ['https://www.volvocars.com/uk/cars/ex60-electric/']);
3
+ generateCMPTests('volvocars-com', ['https://www.volvocars.com/uk/cars/ex60-electric/', 'https://www.volvocars.com/ch/']);
@@ -0,0 +1,8 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('vue-cookie-accept-decline', [
4
+ 'https://loopcv.pro/',
5
+ 'https://www.mennekes.com/',
6
+ 'https://magnaplate.com/',
7
+ 'https://mojo.vision/',
8
+ ]);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('widiba', ['https://www.widiba.it/']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('wimc-gtm-consent', ['https://www.coopmobile.ch/de', 'https://www.wingo.ch/de', 'https://mobile.migros.ch/de']);
@@ -0,0 +1,3 @@
1
+ import generateCMPTests from '../playwright/runner';
2
+
3
+ generateCMPTests('xlbygg.se', ['https://www.xlbygg.se/']);
@@ -4,6 +4,7 @@ import {
4
4
  cleanButtonText,
5
5
  classifyButtonTextRegex,
6
6
  classifyButtons,
7
+ classifyPopup,
7
8
  isExcludedPopup,
8
9
  } from '../../lib/heuristic-classify';
9
10
  import { getActionablePopups, isDisabled, excludeContainers, getButtonData, isDialogLikeElement } from '../../lib/heuristics';
@@ -387,6 +388,38 @@ describe('classifyButtonTextRegex', () => {
387
388
  expect(classifyButtonTextRegex('Сохранить и закрыть')).to.equal('acknowledge');
388
389
  });
389
390
 
391
+ it('matches Catalan acknowledge buttons', () => {
392
+ expect(classifyButtonTextRegex('Entenc')).to.equal('acknowledge');
393
+ expect(classifyButtonTextRegex('Ho entenc')).to.equal('acknowledge');
394
+ expect(classifyButtonTextRegex('Entès!')).to.equal('acknowledge');
395
+ expect(classifyButtonTextRegex('Entesos')).to.equal('acknowledge');
396
+ });
397
+
398
+ it('matches Catalan necessary-only buttons as reject', () => {
399
+ expect(classifyButtonTextRegex('Només les necessàries')).to.equal('reject');
400
+ expect(classifyButtonTextRegex('Només necessàries')).to.equal('reject');
401
+ expect(classifyButtonTextRegex('Necessàries')).to.equal('reject');
402
+ expect(classifyButtonTextRegex('Acceptar només les galetes necessàries')).to.equal('reject');
403
+ expect(classifyButtonTextRegex('Només galetes tècniques')).to.equal('reject');
404
+ expect(classifyButtonTextRegex('Només les essencials')).to.equal('reject');
405
+ expect(classifyButtonTextRegex('Continuar sense acceptar')).to.equal('reject');
406
+ });
407
+
408
+ it('matches Catalan settings buttons', () => {
409
+ expect(classifyButtonTextRegex('Configuració')).to.equal('settings');
410
+ expect(classifyButtonTextRegex('Personalitzar')).to.equal('settings');
411
+ expect(classifyButtonTextRegex('Preferències')).to.equal('settings');
412
+ expect(classifyButtonTextRegex('Més opcions')).to.equal('settings');
413
+ expect(classifyButtonTextRegex('Configuració de galetes')).to.equal('settings');
414
+ expect(classifyButtonTextRegex('Gestionar les meves preferències')).to.equal('settings');
415
+ expect(classifyButtonTextRegex('Gestiona les galetes')).to.equal('settings');
416
+ });
417
+
418
+ it('does not treat Catalan save or accept buttons as settings or reject', () => {
419
+ expect(classifyButtonTextRegex('Desar preferències')).to.not.equal('settings');
420
+ expect(classifyButtonTextRegex('Acceptar')).to.equal('accept');
421
+ });
422
+
390
423
  it('does not treat Russian subscription buttons as reject', () => {
391
424
  expect(classifyButtonTextRegex('Отказаться от подписки')).to.equal('other');
392
425
  });
@@ -412,6 +445,22 @@ describe('classifyButtonTextRegex', () => {
412
445
  });
413
446
  });
414
447
 
448
+ describe('classifyPopup', () => {
449
+ function classify(texts: string[]) {
450
+ return classifyPopup(texts.map((text) => ({ text, regexClassification: classifyButtonTextRegex(text) })));
451
+ }
452
+
453
+ it('dismisses a Catalan notice-only banner as tier1', () => {
454
+ expect(classify(['Entenc'])).to.equal('tier1');
455
+ });
456
+
457
+ it('does not acknowledge a Catalan banner that offers necessary-only or settings', () => {
458
+ expect(classify(['Entès', 'Només les necessàries'])).to.equal('reject');
459
+ expect(classify(['Entès', 'Preferències'])).to.equal('none');
460
+ expect(classify(['Entès', 'Personalitzar'])).to.equal('none');
461
+ });
462
+ });
463
+
415
464
  describe('classifyButtons', () => {
416
465
  it('separates reject buttons from other buttons', () => {
417
466
  const buttons: ButtonData[] = [