@duckduckgo/autoconsent 18.3.0 → 18.5.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 (107) hide show
  1. package/.github/workflows/ddg-release.yml +3 -1
  2. package/CHANGELOG.md +72 -0
  3. package/ci/asana-create-platform-release-tasks.js +9 -2
  4. package/ci/asana-update-tasks.js +17 -3
  5. package/ci/create-pr-template.js +1 -1
  6. package/dist/addon-firefox/compact-rules.json +1 -1
  7. package/dist/addon-firefox/manifest.json +1 -1
  8. package/dist/addon-firefox/rule-index.json +1 -1
  9. package/dist/addon-firefox/rules.json +1 -1
  10. package/dist/addon-mv3/compact-rules.json +1 -1
  11. package/dist/addon-mv3/manifest.json +1 -1
  12. package/dist/addon-mv3/rule-index.json +1 -1
  13. package/dist/addon-mv3/rules.json +1 -1
  14. package/dist/autoconsent.standalone.js +1 -1
  15. package/package.json +1 -1
  16. package/rules/autoconsent/amasty-gdpr-sidebar.json +61 -0
  17. package/rules/autoconsent/arena-pl.json +16 -0
  18. package/rules/autoconsent/bannercookie-dashboard.json +10 -0
  19. package/rules/autoconsent/blastingnews.json +36 -0
  20. package/rules/autoconsent/bn-org-pl.json +37 -0
  21. package/rules/autoconsent/ccconsent-holder.json +56 -0
  22. package/rules/autoconsent/cloudcms-cookie-alert-notice.json +12 -0
  23. package/rules/autoconsent/cloudcms-cookie-alert.json +13 -0
  24. package/rules/autoconsent/cookie-button-basic.json +47 -0
  25. package/rules/autoconsent/cookiesck.json +31 -0
  26. package/rules/autoconsent/didomi.json +5 -0
  27. package/rules/autoconsent/doc24-ch.json +33 -0
  28. package/rules/autoconsent/ernesto.json +30 -0
  29. package/rules/autoconsent/eu-cookie-compliance-legacy.json +15 -0
  30. package/rules/autoconsent/fora-se.json +13 -0
  31. package/rules/autoconsent/fusedeck.json +38 -0
  32. package/rules/autoconsent/gjerrigknark.json +38 -0
  33. package/rules/autoconsent/hemsol.se.json +22 -0
  34. package/rules/autoconsent/historiskatlas.dk.json +35 -0
  35. package/rules/autoconsent/hmi-basen-dk.json +27 -0
  36. package/rules/autoconsent/jobbland.json +17 -0
  37. package/rules/autoconsent/kadokawa-ascii.json +34 -0
  38. package/rules/autoconsent/kglakademi.json +37 -0
  39. package/rules/autoconsent/kredittbanken.json +14 -0
  40. package/rules/autoconsent/matspar-se.json +34 -0
  41. package/rules/autoconsent/mitrejsevejr.dk.json +13 -0
  42. package/rules/autoconsent/morgenlevering.no.json +46 -0
  43. package/rules/autoconsent/multicalcolo.json +37 -0
  44. package/rules/autoconsent/nutri.se.json +40 -0
  45. package/rules/autoconsent/onecall-no.json +44 -0
  46. package/rules/autoconsent/peppes.json +38 -0
  47. package/rules/autoconsent/planteportalen-no.json +32 -0
  48. package/rules/autoconsent/sian-it.json +35 -0
  49. package/rules/autoconsent/skisport.json +22 -0
  50. package/rules/autoconsent/skogforsk.json +9 -0
  51. package/rules/autoconsent/skovborghogh-cookies.json +17 -0
  52. package/rules/autoconsent/sportstiming.json +37 -0
  53. package/rules/autoconsent/squarespace-cookie-banner.json +3 -3
  54. package/rules/autoconsent/vardgivarguiden.json +45 -0
  55. package/rules/autoconsent/wbd-consent-modal.json +54 -0
  56. package/rules/autoconsent/welcome-city-yokohama.json +75 -0
  57. package/rules/autoconsent/wordpress-wordads.json +20 -0
  58. package/rules/compact-rules.json +1 -1
  59. package/rules/rule-index.json +1 -1
  60. package/rules/rules.json +1 -1
  61. package/tests/amasty-gdpr-sidebar.spec.ts +16 -0
  62. package/tests/arena-pl.spec.ts +3 -0
  63. package/tests/bannercookie-dashboard.spec.ts +3 -0
  64. package/tests/blastingnews.spec.ts +3 -0
  65. package/tests/bn-org-pl.spec.ts +3 -0
  66. package/tests/ccconsent-holder.spec.ts +11 -0
  67. package/tests/cloudcms-cookie-alert-notice.spec.ts +10 -0
  68. package/tests/cloudcms-cookie-alert.spec.ts +6 -0
  69. package/tests/cookie-button-basic.spec.ts +9 -0
  70. package/tests/cookiesck.spec.ts +5 -0
  71. package/tests/didomi.spec.ts +9 -0
  72. package/tests/doc24-ch.spec.ts +3 -0
  73. package/tests/ernesto.spec.ts +8 -0
  74. package/tests/eu-cookie-compliance-legacy.spec.ts +8 -0
  75. package/tests/fora-se.spec.ts +3 -0
  76. package/tests/fusedeck.spec.ts +9 -0
  77. package/tests/gjerrigknark.spec.ts +6 -0
  78. package/tests/hemsol.se.spec.ts +3 -0
  79. package/tests/historiskatlas.dk.spec.ts +3 -0
  80. package/tests/hmi-basen-dk.spec.ts +5 -0
  81. package/tests/jobbland.spec.ts +5 -0
  82. package/tests/kadokawa-ascii.spec.ts +5 -0
  83. package/tests/kglakademi.spec.ts +3 -0
  84. package/tests/kredittbanken.spec.ts +3 -0
  85. package/tests/matspar-se.spec.ts +3 -0
  86. package/tests/mitrejsevejr.dk.spec.ts +3 -0
  87. package/tests/morgenlevering.no.spec.ts +3 -0
  88. package/tests/multicalcolo.spec.ts +3 -0
  89. package/tests/nutri.se.spec.ts +3 -0
  90. package/tests/onecall-no.spec.ts +3 -0
  91. package/tests/peppes.spec.ts +5 -0
  92. package/tests/planteportalen-no.spec.ts +3 -0
  93. package/tests/sian-it.spec.ts +3 -0
  94. package/tests/skisport.spec.ts +9 -0
  95. package/tests/skogforsk.spec.ts +3 -0
  96. package/tests/skovborghogh-cookies.spec.ts +9 -0
  97. package/tests/sportstiming.spec.ts +8 -0
  98. package/tests/squarespace-cookie-banner.spec.ts +1 -0
  99. package/tests/vardgivarguiden.spec.ts +3 -0
  100. package/tests/wbd-consent-modal.spec.ts +6 -0
  101. package/tests/welcome-city-yokohama.spec.ts +3 -0
  102. package/tests/wordpress-wordads.spec.ts +9 -0
  103. package/tests-wtr/rules/cmp-test-urls.json +0 -1
  104. package/rules/autoconsent/delta-com.json +0 -12
  105. package/rules/generated/auto_CH_fhgr.ch_9nr.json +0 -40
  106. package/tests/delta.spec.ts +0 -3
  107. package/tests/generated/auto_CH_fhgr.ch_9nr.spec.ts +0 -2
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "kadokawa-ascii",
3
+ "cosmetic": true,
4
+ "runContext": {
5
+ "urlPattern": "^https?://(weekly\\.ascii|mobileascii)\\.jp/"
6
+ },
7
+ "prehideSelectors": ["#cookie-pop-bn"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#cookie-pop-bn"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "exists": "#cookie-pop-bn"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#cookie-pop-bn a[onclick=\"acceptClick()\"]"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "hide": "#cookie-pop-bn"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "visible": "#cookie-pop-bn",
31
+ "check": "none"
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "kglakademi.dk",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?kglakademi\\.dk/"
5
+ },
6
+ "prehideSelectors": [],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "#b14cookieconsent"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "#b14cookieconsent-dialog"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "#b14cookieconsent .b14cookieconsent__button[data-action=all]"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "click": "#b14cookieconsent .b14cookieconsent__checkbox:checked:not([disabled])",
25
+ "all": true,
26
+ "optional": true
27
+ },
28
+ {
29
+ "waitForThenClick": "#b14cookieconsent .b14cookieconsent__button[data-action=selected]"
30
+ }
31
+ ],
32
+ "test": [
33
+ {
34
+ "cookieContains": "b14cookieconsent=necessary%2C1"
35
+ }
36
+ ]
37
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "kredittbanken",
3
+ "_metadata": { "vendorUrl": "https://kredittbanken.no/" },
4
+ "runContext": { "urlPattern": "^https?://(www\\.)?kredittbanken\\.no/" },
5
+ "prehideSelectors": ["kb-cookie-consent-dialog"],
6
+ "detectCmp": [{ "exists": ["kb-cookie-consent-dialog", "#decline-all"] }],
7
+ "detectPopup": [{ "visible": ["kb-cookie-consent-dialog", "dialog[open]"] }],
8
+ "optIn": [{ "waitForThenClick": ["kb-cookie-consent-dialog", "#accept-all"], "retry": 10, "retryInterval": 500 }],
9
+ "optOut": [{ "waitForThenClick": ["kb-cookie-consent-dialog", "#decline-all"], "retry": 10, "retryInterval": 500 }],
10
+ "test": [
11
+ { "cookieContains": "sb1-optin-v3=" },
12
+ { "waitForVisible": ["kb-cookie-consent-dialog", "dialog"], "check": "none", "timeout": 2000 }
13
+ ]
14
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "matspar-se",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(www\\.)?matspar\\.se/"
5
+ },
6
+ "prehideSelectors": ["#app div:has(> div > img[src*='/illustrations/cookie.'])"],
7
+ "detectCmp": [{ "exists": "xpath///div[@id='app']//div[div/img[contains(@src, '/illustrations/cookie.')]]" }],
8
+ "detectPopup": [{ "visible": "xpath///div[@id='app']//div[div/img[contains(@src, '/illustrations/cookie.')]]" }],
9
+ "optIn": [
10
+ {
11
+ "waitForThenClick": "xpath///div[@id='app']//div[div/img[contains(@src, '/illustrations/cookie.')]]//button[normalize-space(.)='Jag godkänner']"
12
+ }
13
+ ],
14
+ "optOut": [
15
+ {
16
+ "waitForThenClick": "xpath///div[@id='app']//div[div/img[contains(@src, '/illustrations/cookie.')]]//button[normalize-space(.)='Mina val']"
17
+ },
18
+ { "waitFor": "input[name='privacySettings']" },
19
+ {
20
+ "if": { "exists": "input[name='privacySettings']:checked" },
21
+ "then": [{ "click": "input[name='privacySettings']" }]
22
+ },
23
+ {
24
+ "click": "xpath///div[@id='app']//div[div/img[contains(@src, '/illustrations/cookie.')]]//button[normalize-space(.)='Jag godkänner']"
25
+ }
26
+ ],
27
+ "test": [
28
+ {
29
+ "waitForVisible": "xpath///div[@id='app']//div[div/img[contains(@src, '/illustrations/cookie.')]]",
30
+ "check": "none",
31
+ "timeout": 5000
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "mitrejsevejr.dk",
3
+ "vendorUrl": "https://www.mitrejsevejr.dk/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?mitrejsevejr\\.dk/"
6
+ },
7
+ "prehideSelectors": ["#cookie-overlay"],
8
+ "detectCmp": [{ "exists": "#cookie-bar #cookieButtonSome" }],
9
+ "detectPopup": [{ "visible": "#cookie-bar" }],
10
+ "optIn": [{ "waitForThenClick": "#cookie-bar #cookie-bar-button" }],
11
+ "optOut": [{ "waitForThenClick": "#cookie-bar #cookieButtonSome" }],
12
+ "test": [{ "cookieContains": "mrvdk_cookies_ads=false" }]
13
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "morgenlevering.no",
3
+ "vendorUrl": "https://morgenlevering.no/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?morgenlevering\\.no/"
7
+ },
8
+ "prehideSelectors": [".cookie-consent__container"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": ".cookie-consent__container .cookie-consent__button-container"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": ".cookie-consent__container .cookie-consent__button-container"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": ".cookie-consent__container .cookie-consent__button-container .button--primary"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "waitForThenClick": ".cookie-consent__container .cookie-consent__button-container .button--ghost"
27
+ },
28
+ {
29
+ "waitForVisible": ".cookie-consent__container .cookie-consent__consent-switch",
30
+ "timeout": 2000
31
+ },
32
+ {
33
+ "click": ".cookie-consent__cookie-information:not(:last-child) .cookie-consent__consent-switch input:checked",
34
+ "all": true,
35
+ "optional": true
36
+ },
37
+ {
38
+ "waitForThenClick": ".cookie-consent__scroll-on-mobile ~ .cookie-consent__button-container .button--ghost"
39
+ }
40
+ ],
41
+ "test": [
42
+ {
43
+ "cookieContains": "_cookieConsent=none"
44
+ }
45
+ ]
46
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "multicalcolo",
3
+ "vendorUrl": "https://www.multicalcolo.it/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?multicalcolo\\.it/"
6
+ },
7
+ "prehideSelectors": [".js-cookie-consent"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".js-cookie-consent #customize"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".js-cookie-consent #customize"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".js-cookie-consent #accepted"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "click": ".js-cookie-consent #rejected"
26
+ },
27
+ {
28
+ "waitForVisible": ".js-cookie-consent",
29
+ "check": "none"
30
+ }
31
+ ],
32
+ "test": [
33
+ {
34
+ "cookieContains": "laravel_cookie_consent=rejected"
35
+ }
36
+ ]
37
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "nutri.se",
3
+ "vendorUrl": "https://nutri.se/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?nutri\\.se/"
7
+ },
8
+ "prehideSelectors": [".nutri-consent-dialog"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "xpath///div[contains(@class, 'nutri-consent-dialog') and not(ancestor::*[@id='nutri-consent-shell'])]"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "xpath///div[contains(@class, 'nutri-consent-dialog') and not(ancestor::*[@id='nutri-consent-shell'])]"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "xpath///div[contains(@class, 'nutri-consent-dialog') and not(ancestor::*[@id='nutri-consent-shell'])]/div/button[last()]"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "waitForThenClick": "xpath///div[contains(@class, 'nutri-consent-dialog') and not(ancestor::*[@id='nutri-consent-shell'])]/div/button[1]"
27
+ },
28
+ {
29
+ "waitForThenClick": "xpath///div[@role='dialog' and .//button[@role='switch']]/div[last()]/div/button[1]"
30
+ }
31
+ ],
32
+ "test": [
33
+ {
34
+ "cookieContains": "nutri_consent_v1="
35
+ },
36
+ {
37
+ "cookieContains": "%22marketing%22%3Afalse"
38
+ }
39
+ ]
40
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "onecall-no",
3
+ "vendorUrl": "https://onecall.no/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?onecall\\.no/"
7
+ },
8
+ "prehideSelectors": [".modal--cookie-consent"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": ".modal--cookie-consent #cookies-tracking"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": ".modal--cookie-consent"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": ".modal--cookie-consent button.btn-primary"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "if": {
27
+ "exists": ".modal--cookie-consent #cookies-tracking:checked"
28
+ },
29
+ "then": [
30
+ {
31
+ "click": ".modal--cookie-consent #cookies-tracking"
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "waitForThenClick": ".modal--cookie-consent button.btn-gray"
37
+ }
38
+ ],
39
+ "test": [
40
+ {
41
+ "cookieContains": "oc_allow_tracking=0"
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "peppes.no",
3
+ "vendorUrl": "https://order.peppes.no/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?peppes\\.no/"
6
+ },
7
+ "prehideSelectors": [".consent-dialog-root"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".consent-dialog-root .allow-selection-btn"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".consent-dialog-root .allow-selection-btn"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".consent-dialog-root .allow-all-btn"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "click": ".consent-dialog-root .p-inputswitch:not(.p-disabled) input:checked",
26
+ "all": true,
27
+ "optional": true
28
+ },
29
+ {
30
+ "waitForThenClick": ".consent-dialog-root .allow-selection-btn"
31
+ },
32
+ {
33
+ "waitForVisible": ".consent-dialog-root",
34
+ "check": "none",
35
+ "timeout": 2000
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "planteportalen.no",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(www\\.)?planteportalen\\.no/"
5
+ },
6
+ "prehideSelectors": [],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "div.cookies > .grid-container > span.icon-cross"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "div.cookies.active"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "div.cookies span.icon-cross"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": "div.cookies span.icon-cross"
25
+ }
26
+ ],
27
+ "test": [
28
+ {
29
+ "cookieContains": "cookies=cookies"
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "sian-it",
3
+ "vendorUrl": "https://www.sian.it/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?sian\\.it/"
7
+ },
8
+ "prehideSelectors": ["section.cookie-banner"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "section.cookie-banner .cookie-content > .btn-toolbar"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "section.cookie-banner"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "section.cookie-banner .cookie-content > .btn-toolbar .btn-primary"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "section.cookie-banner"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "visible": "section.cookie-banner",
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "skisport",
3
+ "vendorUrl": "https://www.skisport.dk/",
4
+ "cosmetic": false,
5
+ "prehideSelectors": [],
6
+ "detectCmp": [{ "exists": "#cookieBannerModal #cookie_consent_manage_accept_modal" }],
7
+ "detectPopup": [{ "visible": "#cookieBannerModal.is-open .cc-dialog" }],
8
+ "optIn": [{ "waitForThenClick": "#cookie_consent_manage_accept_modal" }],
9
+ "optOut": [
10
+ { "waitForThenClick": "#cookieBannerModal [data-cc-open=cookieConsentModal]" },
11
+ { "waitForVisible": "#cookieConsentModal.is-shown .cc-dialog" },
12
+ { "click": "#cookieConsentModal input[type=checkbox]:checked:not(:disabled)", "all": true, "optional": true },
13
+ {
14
+ "waitForThenClick": "#cookieConsentModal #cookie_consent_manager_confirm_top, #cookieConsentModal #cookie_consent_manager_confirm"
15
+ }
16
+ ],
17
+ "test": [
18
+ { "cookieContains": "consent_set=true" },
19
+ { "cookieContains": "consent_marketing=false" },
20
+ { "cookieContains": "consent_analytics=false" }
21
+ ]
22
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "skogforsk",
3
+ "prehideSelectors": [".block-cookie:has(.cookiebtns #cookie-required)"],
4
+ "detectCmp": [{ "exists": ".block-cookie .cookiebtns #cookie-required" }],
5
+ "detectPopup": [{ "visible": ".block-cookie .cookiebtns #cookie-required" }],
6
+ "optIn": [{ "waitForThenClick": ".block-cookie .cookiebtns #cookie-accept" }],
7
+ "optOut": [{ "waitForThenClick": ".block-cookie .cookiebtns #cookie-required" }],
8
+ "test": [{ "cookieContains": "cookie-disclaimer=0" }, { "cookieContains": "cookie-disclaimer=0%2C", "negated": true }]
9
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "skovborghogh-cookies",
3
+ "cosmetic": false,
4
+ "runContext": {
5
+ "main": true,
6
+ "frame": false
7
+ },
8
+ "prehideSelectors": [".cookiePopup:has(#cookies .cookieWrapper)"],
9
+ "detectCmp": [{ "exists": ".cookiePopup #cookies .cookie-actions .cookie-btn.deny" }],
10
+ "detectPopup": [{ "visible": ".cookiePopup #cookies .cookieWrapper" }],
11
+ "optIn": [{ "waitForThenClick": ".cookiePopup #cookies .cookie-btn.accept span" }],
12
+ "optOut": [
13
+ { "waitForThenClick": ".cookiePopup #cookies .cookie-btn.deny span" },
14
+ { "waitForVisible": ".cookiePopup", "check": "none", "timeout": 3000, "optional": true }
15
+ ],
16
+ "test": [{ "cookieContains": "%22marketingOnOff%22%3Afalse" }]
17
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "sportstiming",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(www\\.)?sportstiming\\.(dk|se|no|de)/"
5
+ },
6
+ "prehideSelectors": [".bootbox.modal:has(#btnCookiesAcceptSelected)"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "#btnCookiesAcceptSelected"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "#btnCookiesAcceptSelected"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "#btnCookiesAcceptAll"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "click": "#chkCookiesStatistics:checked, #chkCookiesSettings:checked",
25
+ "all": true,
26
+ "optional": true
27
+ },
28
+ {
29
+ "waitForThenClick": "#btnCookiesAcceptSelected"
30
+ }
31
+ ],
32
+ "test": [
33
+ {
34
+ "cookieContains": "cookies_allowed=required"
35
+ }
36
+ ]
37
+ }
@@ -3,12 +3,12 @@
3
3
  "prehideSelectors": [".cookie-banner-mount-point"],
4
4
  "detectCmp": [
5
5
  {
6
- "exists": ".cookie-banner-mount-point section[aria-label='Cookie banner'] :is(button.decline, button.manage)"
6
+ "exists": ".cookie-banner-mount-point section.gdpr-cookie-banner :is(button.decline, button.manage)"
7
7
  }
8
8
  ],
9
9
  "detectPopup": [
10
10
  {
11
- "visible": ".cookie-banner-mount-point section[aria-label='Cookie banner']"
11
+ "visible": ".cookie-banner-mount-point section.gdpr-cookie-banner"
12
12
  }
13
13
  ],
14
14
  "optIn": [
@@ -46,7 +46,7 @@
46
46
  ],
47
47
  "test": [
48
48
  {
49
- "waitForVisible": ".cookie-banner-mount-point section[aria-label='Cookie banner']",
49
+ "waitForVisible": ".cookie-banner-mount-point section.gdpr-cookie-banner",
50
50
  "timeout": 1000,
51
51
  "check": "none"
52
52
  }
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "vardgivarguiden.se",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?vardgivarguiden\\.se/"
5
+ },
6
+ "prehideSelectors": ["app-cookiewindow"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "app-cookiewindow #accept-choice"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "app-cookiewindow #accept-choice"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "click": "app-cookiewindow input.cookie-checkbox:not(:checked):not([disabled])",
20
+ "all": true,
21
+ "optional": true
22
+ },
23
+ {
24
+ "waitForThenClick": "app-cookiewindow #accept-choice"
25
+ }
26
+ ],
27
+ "optOut": [
28
+ {
29
+ "waitForVisible": "app-cookiewindow #accept-choice"
30
+ },
31
+ {
32
+ "click": "app-cookiewindow input.cookie-checkbox:checked:not([disabled])",
33
+ "all": true,
34
+ "optional": true
35
+ },
36
+ {
37
+ "waitForThenClick": "app-cookiewindow #accept-choice"
38
+ }
39
+ ],
40
+ "test": [
41
+ {
42
+ "cookieContains": "cookie-consent=%5B%5D"
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "wbd-consent-modal",
3
+ "vendorUrl": "https://www.wbd.com/",
4
+ "comment": "Warner Bros. Discovery TCF consent modal. Buttons carry no stable attributes, so they are matched by position: Accept, Essential only (some locales), Manage. The single-button US 'Legal Terms' notice shares the modal and is not matched.",
5
+ "detectCmp": [
6
+ {
7
+ "exists": "#modal-test-id-consent-modal .consent-description-container"
8
+ },
9
+ {
10
+ "exists": "#modal-test-id-consent-modal .modal-buttons button:nth-of-type(2)"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#modal-test-id-consent-modal .modal-buttons"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "#modal-test-id-consent-modal .modal-buttons button:nth-of-type(1)"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "if": {
26
+ "exists": "#modal-test-id-consent-modal .modal-buttons button:nth-of-type(3)"
27
+ },
28
+ "then": [
29
+ {
30
+ "click": "#modal-test-id-consent-modal .modal-buttons button:nth-of-type(2)"
31
+ }
32
+ ],
33
+ "else": [
34
+ {
35
+ "click": "#modal-test-id-consent-modal .modal-buttons button:nth-of-type(2)"
36
+ },
37
+ {
38
+ "waitForThenClick": "#modal-test-id-consent-modal .consent-description-container button:nth-of-type(2)"
39
+ }
40
+ ]
41
+ },
42
+ {
43
+ "waitForVisible": "#modal-test-id-consent-modal",
44
+ "check": "none",
45
+ "timeout": 5000,
46
+ "optional": true
47
+ }
48
+ ],
49
+ "test": [
50
+ {
51
+ "cookieContains": "anonymousConsentElections="
52
+ }
53
+ ]
54
+ }