@duckduckgo/autoconsent 16.56.0 → 16.58.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 (82) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/addon-firefox/compact-rules.json +1 -1
  3. package/dist/addon-firefox/manifest.json +1 -1
  4. package/dist/addon-firefox/rule-index.json +1 -1
  5. package/dist/addon-firefox/rules.json +1 -1
  6. package/dist/addon-mv3/compact-rules.json +1 -1
  7. package/dist/addon-mv3/manifest.json +1 -1
  8. package/dist/addon-mv3/rule-index.json +1 -1
  9. package/dist/addon-mv3/rules.json +1 -1
  10. package/dist/autoconsent.standalone.js +1 -1
  11. package/package.json +1 -1
  12. package/rules/autoconsent/abebooks.json +13 -0
  13. package/rules/autoconsent/aemet.json +35 -0
  14. package/rules/autoconsent/arto.json +30 -0
  15. package/rules/autoconsent/bakeca.json +13 -0
  16. package/rules/autoconsent/bleau-cookiecontrol.json +10 -0
  17. package/rules/autoconsent/bundesarchiv-cookiebanner.json +21 -0
  18. package/rules/autoconsent/chomikuj.json +13 -0
  19. package/rules/autoconsent/cookieconsent2.json +1 -1
  20. package/rules/autoconsent/cookieyes-legacy.json +24 -0
  21. package/rules/autoconsent/costco.json +5 -2
  22. package/rules/autoconsent/daikin.json +10 -0
  23. package/rules/autoconsent/django-gdpr-cookie-consent.json +23 -0
  24. package/rules/autoconsent/educamadrid.json +37 -0
  25. package/rules/autoconsent/elektro-material-ch.json +13 -0
  26. package/rules/autoconsent/fixpart.json +30 -0
  27. package/rules/autoconsent/ford-dse.json +12 -0
  28. package/rules/autoconsent/gobiernodecanarias.json +46 -0
  29. package/rules/autoconsent/groupama.fr.json +34 -0
  30. package/rules/autoconsent/kolibri-cookie-widget.json +12 -0
  31. package/rules/autoconsent/librus.json +21 -0
  32. package/rules/autoconsent/liferay-cookies-banner.json +34 -0
  33. package/rules/autoconsent/mega-io.json +24 -0
  34. package/rules/autoconsent/profiler-dk.json +29 -0
  35. package/rules/autoconsent/pubtech.json +13 -1
  36. package/rules/autoconsent/rabobank.json +62 -0
  37. package/rules/autoconsent/rcs-cpmt.json +28 -0
  38. package/rules/autoconsent/sc-cookie-banner.json +29 -0
  39. package/rules/autoconsent/soteshop.json +29 -0
  40. package/rules/autoconsent/stellantis-psa.json +50 -0
  41. package/rules/autoconsent/tealium.json +6 -4
  42. package/rules/autoconsent/tinder.json +23 -0
  43. package/rules/autoconsent/vd-ch.json +34 -0
  44. package/rules/autoconsent/warning-cookie-notice.json +9 -0
  45. package/rules/autoconsent/yle-consent-sdk.json +30 -0
  46. package/rules/compact-rules.json +1 -1
  47. package/rules/rule-index.json +1 -1
  48. package/rules/rules.json +1 -1
  49. package/tests/abebooks.spec.ts +10 -0
  50. package/tests/aemet.spec.ts +3 -0
  51. package/tests/arto.spec.ts +3 -0
  52. package/tests/bakeca.spec.ts +3 -0
  53. package/tests/bleau-cookiecontrol.spec.ts +3 -0
  54. package/tests/bundesarchiv-cookiebanner.spec.ts +7 -0
  55. package/tests/chomikuj.spec.ts +3 -0
  56. package/tests/cookieconsent2.spec.ts +2 -2
  57. package/tests/cookieyes-legacy.spec.ts +11 -0
  58. package/tests/costco.spec.ts +1 -1
  59. package/tests/daikin.spec.ts +3 -0
  60. package/tests/django-gdpr-cookie-consent.spec.ts +14 -0
  61. package/tests/educamadrid.spec.ts +7 -0
  62. package/tests/elektro-material-ch.spec.ts +3 -0
  63. package/tests/fixpart.spec.ts +6 -0
  64. package/tests/ford-dse.spec.ts +3 -0
  65. package/tests/gobiernodecanarias.spec.ts +10 -0
  66. package/tests/groupama.fr.spec.ts +3 -0
  67. package/tests/kolibri-cookie-widget.spec.ts +3 -0
  68. package/tests/librus.spec.ts +6 -0
  69. package/tests/liferay-cookies-banner.spec.ts +9 -0
  70. package/tests/mega-io.spec.ts +3 -0
  71. package/tests/profiler-dk.spec.ts +3 -0
  72. package/tests/pubtech.spec.ts +6 -4
  73. package/tests/rabobank.spec.ts +17 -0
  74. package/tests/rcs-cpmt.spec.ts +15 -0
  75. package/tests/sc-cookie-banner.spec.ts +12 -0
  76. package/tests/soteshop.spec.ts +3 -0
  77. package/tests/stellantis-psa.spec.ts +9 -0
  78. package/tests/tealium.spec.ts +6 -0
  79. package/tests/tinder.spec.ts +3 -0
  80. package/tests/vd-ch.spec.ts +3 -0
  81. package/tests/warning-cookie-notice.spec.ts +9 -0
  82. package/tests/yle-consent-sdk.spec.ts +3 -0
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "rcs-cpmt",
3
+ "vendorUrl": "https://www.rcsmediagroup.it/",
4
+ "prehideSelectors": ["#_cpmt-iframe"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": ["#_cpmt-iframe", "#_cpmt"]
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#_cpmt-iframe"
13
+ },
14
+ {
15
+ "visible": ["#_cpmt-iframe", "#_cpmt"]
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ["#_cpmt-iframe", "#_cpmt-accept"]
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ["#_cpmt-iframe", "#_cpmt-reject"]
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "sc-cookie-banner",
3
+ "prehideSelectors": ["#scCookieBanner:has(.sc-cookie-reject)"],
4
+ "detectCmp": [
5
+ {
6
+ "exists": "#scCookieBanner .sc-cookie-reject"
7
+ }
8
+ ],
9
+ "detectPopup": [
10
+ {
11
+ "visible": "#scCookieBanner"
12
+ }
13
+ ],
14
+ "optIn": [
15
+ {
16
+ "waitForThenClick": "#scCookieBanner .sc-cookie-accept"
17
+ }
18
+ ],
19
+ "optOut": [
20
+ {
21
+ "waitForThenClick": "#scCookieBanner .sc-cookie-reject"
22
+ }
23
+ ],
24
+ "test": [
25
+ {
26
+ "cookieContains": "_consent=denied"
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "soteshop",
3
+ "vendorUrl": "https://www.soteshop.com/",
4
+ "prehideSelectors": ["#cookies_message", "#cookies-message-modal"],
5
+ "detectCmp": [{ "exists": "#cookies-close-deny, #cookies_frame > #cookies_close" }],
6
+ "detectPopup": [{ "visible": "#cookies-close-deny, #cookies_frame > #cookies_close", "check": "any" }],
7
+ "optIn": [
8
+ {
9
+ "if": { "exists": "#cookies-close-accept" },
10
+ "then": [{ "waitForThenClick": "#cookies-close-accept" }],
11
+ "else": [{ "click": "#cookies_frame > #cookies_close" }]
12
+ }
13
+ ],
14
+ "optOut": [
15
+ {
16
+ "if": { "exists": "#cookies-close-deny" },
17
+ "then": [{ "waitForThenClick": "#cookies-close-deny" }],
18
+ "else": [{ "click": "#cookies_frame > #cookies_close" }]
19
+ },
20
+ { "waitForVisible": "#cookies-close-deny, #cookies_frame > #cookies_close", "check": "none" }
21
+ ],
22
+ "test": [
23
+ {
24
+ "if": { "exists": "#cookies-close-deny" },
25
+ "then": [{ "cookieContains": "cookies_message_bar_hidden=true" }, { "cookieContains": "cookies_google_targeting=false" }],
26
+ "else": [{ "cookieContains": "cookies_message_hidden=true" }]
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "stellantis-psa",
3
+ "vendorUrl": "https://www.stellantis.com/",
4
+ "prehideSelectors": ["#_psaihm_main_div", "#_psaihm_overlay"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#_psaihm_main_div #_psaihm_id_accept_all_btn"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#_psaihm_main_div #_psaihm_id_accept_all_btn"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#_psaihm_id_accept_all_btn"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "if": {
23
+ "exists": "#_psaihm_refuse_all"
24
+ },
25
+ "then": [
26
+ {
27
+ "waitForThenClick": "#_psaihm_refuse_all"
28
+ }
29
+ ],
30
+ "else": [
31
+ {
32
+ "waitForThenClick": "#_psaihm_continue_without_accepting"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "waitForVisible": "#_psaihm_main_div",
38
+ "check": "none",
39
+ "timeout": 3000
40
+ }
41
+ ],
42
+ "test": [
43
+ {
44
+ "cookieContains": "_psac_gdpr_consent_given=1"
45
+ },
46
+ {
47
+ "cookieContains": "_psac_gdpr_consent_purposes=;"
48
+ }
49
+ ]
50
+ }
@@ -7,12 +7,14 @@
7
7
  { "eval": "EVAL_TEALIUM_1" },
8
8
  { "eval": "EVAL_TEALIUM_DONOTSELL" },
9
9
  {
10
- "if": { "exists": "#__tealiumGDPRecModal #rejectAll" },
11
- "then": [{ "waitForThenClick": "#__tealiumGDPRecModal #rejectAll" }],
10
+ "if": { "exists": "#__tealiumGDPRecModal #rejectAll,#__tealiumGDPRcpPrefs #preferences_prompt_reject_all_submit" },
11
+ "then": [
12
+ { "waitForThenClick": "#__tealiumGDPRecModal #rejectAll,#__tealiumGDPRcpPrefs #preferences_prompt_reject_all_submit" }
13
+ ],
12
14
  "else": [
13
15
  { "hide": "#__tealiumGDPRecModal,#__tealiumGDPRcpPrefs,#__tealiumImplicitmodal" },
14
16
  {
15
- "waitForThenClick": "#cm-acceptNone,.js-accept-essential-cookies,#continueWithoutAccepting,#no_consent,#consent_prompt_decline,#teal-decline-consent",
17
+ "waitForThenClick": "#cm-acceptNone,.js-accept-essential-cookies,#continueWithoutAccepting,#no_consent,#consent_prompt_decline,#teal-decline-consent,#deny_full_submit_1",
16
18
  "timeout": 1000,
17
19
  "optional": true
18
20
  }
@@ -23,6 +25,6 @@
23
25
  "test": [
24
26
  { "eval": "EVAL_TEALIUM_3" },
25
27
  { "eval": "EVAL_TEALIUM_DONOTSELL_CHECK" },
26
- { "visible": "#__tealiumGDPRecModal,#__tealiumGDPRcpPrefs", "check": "none" }
28
+ { "visible": "#__tealiumGDPRecModal,#__tealiumGDPRcpPrefs > *", "check": "none" }
27
29
  ]
28
30
  }
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "tinder",
3
+ "vendorUrl": "https://tinder.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?tinder\\.com/"
6
+ },
7
+ "prehideSelectors": ["div[role=alertdialog][data-nosnippet][aria-describedby]"],
8
+ "detectCmp": [{ "exists": "div[role=alertdialog][data-nosnippet][aria-describedby]" }],
9
+ "detectPopup": [{ "visible": "div[role=alertdialog][data-nosnippet][aria-describedby]" }],
10
+ "optIn": [
11
+ { "waitForThenClick": "div[role=alertdialog][data-nosnippet][aria-describedby] > div > div:last-child > div:last-child > button" },
12
+ {
13
+ "waitForThenClick": "div[role=dialog][data-nosnippet][aria-labelledby] > div > div:last-of-type > div > div:nth-child(1) > button"
14
+ }
15
+ ],
16
+ "optOut": [
17
+ { "waitForThenClick": "div[role=alertdialog][data-nosnippet][aria-describedby] > div > div:last-child > div:last-child > button" },
18
+ {
19
+ "waitForThenClick": "div[role=dialog][data-nosnippet][aria-labelledby] > div > div:last-of-type > div > div:nth-child(2) > button"
20
+ }
21
+ ],
22
+ "test": [{ "waitForVisible": "div[role=alertdialog][data-nosnippet][aria-describedby]", "check": "none", "timeout": 2000 }]
23
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "vd-ch",
3
+ "vendorUrl": "https://www.vd.ch/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(\\w+\\.)?vd\\.ch/"
7
+ },
8
+ "prehideSelectors": [],
9
+ "detectCmp": [
10
+ {
11
+ "exists": ".alert-cookie #dismiss-cookie-banner-button"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": ".alert-cookie #dismiss-cookie-banner-button"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": ".alert-cookie #dismiss-cookie-banner-button"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "waitForThenClick": ".alert-cookie #dismiss-cookie-banner-button"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "cookieContains": "vd_cookie_warning=1"
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "warning-cookie-notice",
3
+ "cosmetic": true,
4
+ "prehideSelectors": [".warning.warning--active:has(.warning__apply)"],
5
+ "detectCmp": [{ "exists": ".warning:has(.warning__text) .warning__apply" }],
6
+ "detectPopup": [{ "visible": ".warning.warning--active:has(.warning__apply)" }],
7
+ "optIn": [{ "waitForThenClick": ".warning.warning--active .warning__apply" }],
8
+ "optOut": [{ "hide": ".warning.warning--active:has(.warning__apply)" }]
9
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "yle-consent-sdk",
3
+ "vendorUrl": "https://yle.fi/",
4
+ "prehideSelectors": ["#yle-consent-sdk-container .ycd-banner"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#yle-consent-sdk-container button[name=accept-necessary-consents]"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "#yle-consent-sdk-container .ycd-banner"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "waitForThenClick": "#yle-consent-sdk-container button[name=accept-all-consents]"
18
+ }
19
+ ],
20
+ "optOut": [
21
+ {
22
+ "waitForThenClick": "#yle-consent-sdk-container button[name=accept-necessary-consents]"
23
+ },
24
+ {
25
+ "waitForVisible": "#yle-consent-sdk-container .ycd-banner",
26
+ "timeout": 2000,
27
+ "check": "none"
28
+ }
29
+ ]
30
+ }