@duckduckgo/autoconsent 4.1.3 → 4.3.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 (108) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/addon-firefox/content.bundle.js +3 -2
  3. package/dist/addon-firefox/manifest.json +1 -1
  4. package/dist/addon-firefox/rules.json +1496 -75
  5. package/dist/addon-mv3/content.bundle.js +3 -2
  6. package/dist/addon-mv3/manifest.json +1 -1
  7. package/dist/addon-mv3/rules.json +1496 -75
  8. package/dist/autoconsent.cjs.js +1 -1
  9. package/dist/autoconsent.esm.js +1 -1
  10. package/dist/autoconsent.playwright.js +1 -1
  11. package/lib/cmps/trustarc-top.ts +4 -3
  12. package/package.json +2 -2
  13. package/rules/autoconsent/1password-com.json +11 -0
  14. package/rules/autoconsent/agolde-com.json +13 -0
  15. package/rules/autoconsent/altium-com.json +9 -0
  16. package/rules/autoconsent/aquasana-com.json +9 -0
  17. package/rules/autoconsent/athlinks-com.json +12 -0
  18. package/rules/autoconsent/automattic-cmp-optout.json +19 -0
  19. package/rules/autoconsent/bbb.json +12 -0
  20. package/rules/autoconsent/burpee-com.json +13 -0
  21. package/rules/autoconsent/canva.json +25 -0
  22. package/rules/autoconsent/civic-cookie-control.json +12 -0
  23. package/rules/autoconsent/clustrmaps-com.json +12 -0
  24. package/rules/autoconsent/complianz-optin.json +2 -2
  25. package/rules/autoconsent/cookiefirst.json +41 -0
  26. package/rules/autoconsent/crossfit-com.json +10 -0
  27. package/rules/autoconsent/dailymotion-us.json +9 -0
  28. package/rules/autoconsent/delta-com.json +12 -0
  29. package/rules/autoconsent/dmgmedia-us.json +20 -0
  30. package/rules/autoconsent/geeks-for-geeks.json +12 -0
  31. package/rules/autoconsent/healthline-media.json +18 -0
  32. package/rules/autoconsent/itopvpn-com.json +13 -0
  33. package/rules/autoconsent/justwatch-com.json +15 -0
  34. package/rules/autoconsent/ketch.json +28 -17
  35. package/rules/autoconsent/macpaw-com.json +13 -0
  36. package/rules/autoconsent/midway-usa.json +12 -0
  37. package/rules/autoconsent/nrk-no.json +9 -0
  38. package/rules/autoconsent/onlyFans.json +18 -0
  39. package/rules/autoconsent/paypal-us.json +25 -0
  40. package/rules/autoconsent/pinetools-com.json +13 -0
  41. package/rules/autoconsent/pmc-cmp.json +9 -0
  42. package/rules/autoconsent/pornpics.json +9 -0
  43. package/rules/autoconsent/samsung-com.json +12 -0
  44. package/rules/autoconsent/similarweb-com.json +13 -0
  45. package/rules/autoconsent/takealot-com.json +13 -0
  46. package/rules/autoconsent/tidbits-com.json +9 -0
  47. package/rules/autoconsent/tractor-supply.json +12 -0
  48. package/rules/autoconsent/trader-joes-com.json +9 -0
  49. package/rules/autoconsent/true-car.json +12 -0
  50. package/rules/autoconsent/truyo.json +17 -0
  51. package/rules/autoconsent/tumblr-com.json +10 -0
  52. package/rules/autoconsent/urbanarmorgear-com.json +9 -0
  53. package/rules/autoconsent/whitepages.json +12 -0
  54. package/rules/autoconsent/woo-commerce-com.json +20 -0
  55. package/rules/autoconsent/wpcc.json +9 -0
  56. package/rules/autoconsent/xhamster-eu.json +15 -0
  57. package/rules/autoconsent/xhamster-us.json +12 -0
  58. package/rules/autoconsent/youporn.json +9 -0
  59. package/rules/rules.json +1496 -75
  60. package/tests/1password-com.spec.ts +5 -0
  61. package/tests/agolde-com.spec.ts +5 -0
  62. package/tests/altium-com.spec.ts +5 -0
  63. package/tests/aquasana-com.spec.ts +5 -0
  64. package/tests/athlinks-com.spec.ts +5 -0
  65. package/tests/automattic-cmp-optout.spec.ts +9 -0
  66. package/tests/bbb.spec.ts +5 -0
  67. package/tests/burpee-com.spec.ts +5 -0
  68. package/tests/canva.spec.ts +5 -0
  69. package/tests/civic-cookie-control.spec.ts +8 -0
  70. package/tests/clustrmaps-com.spec.ts +5 -0
  71. package/tests/complianz-optin.spec.ts +4 -4
  72. package/tests/cookiefirst.spec.ts +7 -0
  73. package/tests/crossfit-com.spec.ts +5 -0
  74. package/tests/dailymotion-us.spec.ts +6 -0
  75. package/tests/delta.spec.ts +6 -0
  76. package/tests/dmgmedia-us.spec.ts +7 -0
  77. package/tests/flex-orange-pl.spec.ts +5 -0
  78. package/tests/geeks-for-geeks.spec.ts +6 -0
  79. package/tests/healthline-media.spec.ts +6 -0
  80. package/tests/itopvpn-com.spec.ts +5 -0
  81. package/tests/justwatch-com.spec.ts +5 -0
  82. package/tests/ketch.spec.ts +1 -0
  83. package/tests/macpaw-com.spec.ts +5 -0
  84. package/tests/midway-usa.spec.ts +6 -0
  85. package/tests/nrk-no.spec.ts +5 -0
  86. package/tests/onlyFans.spec.ts +5 -0
  87. package/tests/paypal-us.spec.ts +5 -0
  88. package/tests/pinetools-com.spec.ts +5 -0
  89. package/tests/pmc-cmp.spec.ts +7 -0
  90. package/tests/pornpics.spec.ts +5 -0
  91. package/tests/samsung.spec.ts +6 -0
  92. package/tests/similarweb-com.spec.ts +5 -0
  93. package/tests/takealot-com.spec.ts +5 -0
  94. package/tests/tidbits-com.spec.ts +5 -0
  95. package/tests/tractor-supply.spec.ts +6 -0
  96. package/tests/trader-joes-com.spec.ts +5 -0
  97. package/tests/true-car.spec.ts +6 -0
  98. package/tests/truyo.spec.ts +5 -0
  99. package/tests/tumblr-com.spec.ts +5 -0
  100. package/tests/urbanarmorgear-com.spec.ts +5 -0
  101. package/tests/whitepages.spec.ts +5 -0
  102. package/tests/woo-commerce-com.spec.ts +5 -0
  103. package/tests/wpcc.spec.ts +10 -0
  104. package/tests/xhamster-eu.spec.ts +9 -0
  105. package/tests/xhamster-us.spec.ts +11 -0
  106. package/tests/youporn.spec.ts +5 -0
  107. package/rules/autoconsent/metoffice-gov-uk.json +0 -8
  108. package/tests/metoffice-gov-uk.spec.ts +0 -7
@@ -441,8 +441,9 @@
441
441
  return true;
442
442
  }
443
443
  async test() {
444
- // TODO: find out how to test TrustArc
445
- return true;
444
+ //Test JS variable to check the user's preference
445
+ //PrefCookie = undefined means no consent is set, PrefCookie = '0' means consent is set to required only
446
+ return await doEval("window && window.truste && window.truste.eu.bindMap.prefCookie === '0'");
446
447
  }
447
448
  }
448
449
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Autoconsent",
4
- "version": "2023.2.9",
4
+ "version": "2023.6.19",
5
5
  "background": {
6
6
  "service_worker": "background.bundle.js"
7
7
  },