@duckduckgo/autoconsent 17.1.0 → 17.2.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 (97) hide show
  1. package/CHANGELOG.md +49 -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/autoscout24.json +34 -0
  13. package/rules/autoconsent/bigcommerce-consent-manager.json +3 -2
  14. package/rules/autoconsent/cookie-info-banner.json +33 -0
  15. package/rules/autoconsent/doktorabc.json +44 -0
  16. package/rules/autoconsent/dola.json +35 -0
  17. package/rules/autoconsent/dolphinfitness.json +17 -0
  18. package/rules/autoconsent/econda-pp2.json +33 -0
  19. package/rules/autoconsent/ekd-de.json +32 -0
  20. package/rules/autoconsent/etracker.json +35 -0
  21. package/rules/autoconsent/foto-erhardt.json +35 -0
  22. package/rules/autoconsent/futoncompany.json +18 -0
  23. package/rules/autoconsent/in2cookiemodal.json +65 -0
  24. package/rules/autoconsent/islington-council.json +16 -0
  25. package/rules/autoconsent/jurahilfe-de.json +23 -0
  26. package/rules/autoconsent/justwatch-com.json +3 -2
  27. package/rules/autoconsent/klimatabelle.com.json +13 -0
  28. package/rules/autoconsent/kuendigung.org.json +14 -0
  29. package/rules/autoconsent/moebel-de-group.json +20 -0
  30. package/rules/autoconsent/ncsoft-cookie-toast.json +30 -0
  31. package/rules/autoconsent/nuxt-cookie-manager.json +22 -0
  32. package/rules/autoconsent/om.json +3 -3
  33. package/rules/autoconsent/pandectes.json +1 -2
  34. package/rules/autoconsent/pcloud.json +18 -0
  35. package/rules/autoconsent/pcspecialist.json +13 -0
  36. package/rules/autoconsent/plumrocket-cookie-consent.json +22 -0
  37. package/rules/autoconsent/react-cookie-consent.json +34 -0
  38. package/rules/autoconsent/rittal.json +33 -0
  39. package/rules/autoconsent/scotland-police-uk.json +13 -0
  40. package/rules/autoconsent/shimano-bike.json +29 -0
  41. package/rules/autoconsent/shoezone.json +35 -0
  42. package/rules/autoconsent/sitepark-sitekit.json +27 -0
  43. package/rules/autoconsent/tplink.json +50 -10
  44. package/rules/autoconsent/tradecalculator.json +49 -0
  45. package/rules/autoconsent/unicity.json +22 -0
  46. package/rules/autoconsent/vgn-de.json +53 -0
  47. package/rules/autoconsent/westminster.ac.uk.json +46 -0
  48. package/rules/autoconsent/yourspares.json +39 -0
  49. package/rules/compact-rules.json +1 -1
  50. package/rules/rule-index.json +1 -1
  51. package/rules/rules.json +1 -1
  52. package/tests/autoscout24.spec.ts +14 -0
  53. package/tests/bigcommerce-consent-manager.spec.ts +1 -0
  54. package/tests/cookie-info-banner.spec.ts +8 -0
  55. package/tests/doktorabc.spec.ts +3 -0
  56. package/tests/dola.spec.ts +5 -0
  57. package/tests/dolphinfitness.spec.ts +3 -0
  58. package/tests/econda-pp2.spec.ts +3 -0
  59. package/tests/ekd-de.spec.ts +5 -0
  60. package/tests/etracker.spec.ts +8 -0
  61. package/tests/foto-erhardt.spec.ts +3 -0
  62. package/tests/futoncompany.spec.ts +3 -0
  63. package/tests/in2cookiemodal.spec.ts +13 -0
  64. package/tests/islington-council.spec.ts +8 -0
  65. package/tests/jurahilfe-de.spec.ts +3 -0
  66. package/tests/klimatabelle.com.spec.ts +3 -0
  67. package/tests/kuendigung.org.spec.ts +3 -0
  68. package/tests/moebel-de-group.spec.ts +9 -0
  69. package/tests/ncsoft-cookie-toast.spec.ts +6 -0
  70. package/tests/nuxt-cookie-manager.spec.ts +11 -0
  71. package/tests/om.spec.ts +3 -1
  72. package/tests/pandectes.spec.ts +6 -0
  73. package/tests/pcloud.spec.ts +5 -0
  74. package/tests/pcspecialist.spec.ts +12 -0
  75. package/tests/plumrocket-cookie-consent.spec.ts +3 -0
  76. package/tests/react-cookie-consent.spec.ts +3 -0
  77. package/tests/rittal.spec.ts +6 -0
  78. package/tests/scotland-police-uk.spec.ts +6 -0
  79. package/tests/shimano-bike.spec.ts +6 -0
  80. package/tests/shoezone.spec.ts +3 -0
  81. package/tests/sitepark-sitekit.spec.ts +9 -0
  82. package/tests/tplink.spec.ts +1 -1
  83. package/tests/tradecalculator.spec.ts +3 -0
  84. package/tests/unicity.spec.ts +9 -0
  85. package/tests/vgn-de.spec.ts +3 -0
  86. package/tests/westminster.ac.uk.spec.ts +3 -0
  87. package/tests/yourspares.spec.ts +3 -0
  88. package/rules/generated/auto_CH_moebel24.ch_fck.json +0 -40
  89. package/rules/generated/auto_DE_moebel.de_yf1.json +0 -40
  90. package/rules/generated/auto_DE_nanu-nana.de_7my.json +0 -40
  91. package/rules/generated/auto_GB_partscentre.co.uk_s70.json +0 -40
  92. package/rules/generated/auto_NO_pcsx2.net_grl.json +0 -40
  93. package/tests/generated/auto_CH_moebel24.ch_fck.spec.ts +0 -2
  94. package/tests/generated/auto_DE_moebel.de_yf1.spec.ts +0 -2
  95. package/tests/generated/auto_DE_nanu-nana.de_7my.spec.ts +0 -2
  96. package/tests/generated/auto_GB_partscentre.co.uk_s70.spec.ts +0 -6
  97. package/tests/generated/auto_NO_pcsx2.net_grl.spec.ts +0 -2
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "plumrocket-cookie-consent",
3
+ "vendorUrl": "https://plumrocket.com/magento-cookie-consent",
4
+ "prehideSelectors": [],
5
+ "detectCmp": [{ "exists": "#pr-cookie-notice #btn-cookie-allow" }],
6
+ "detectPopup": [
7
+ { "visible": "#pr-cookie-notice #btn-cookie-allow" },
8
+ { "exists": ".pr-cookie-modal:not(._show) #pr-cookie-notice", "negated": true }
9
+ ],
10
+ "optIn": [{ "waitForThenClick": "#pr-cookie-notice #btn-cookie-allow" }],
11
+ "optOut": [
12
+ {
13
+ "if": { "exists": "#pr-cookie-notice #btn-cookie-decline" },
14
+ "then": [{ "waitForThenClick": "#pr-cookie-notice #btn-cookie-decline" }],
15
+ "else": [
16
+ { "waitForThenClick": "#pr-cookie-notice .pr-cookie-setting-btn" },
17
+ { "waitForThenClick": "#pr-cookie-setting-bar .pr-actions-buttons button.decline" }
18
+ ]
19
+ }
20
+ ],
21
+ "test": [{ "cookieContains": "pr-cookie-consent=%5B%5D" }]
22
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "react-cookie-consent",
3
+ "_metadata": {
4
+ "vendorUrl": "https://github.com/Mastermindzh/react-cookie-consent"
5
+ },
6
+ "prehideSelectors": [],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "#rcc-decline-button"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "#rcc-decline-button"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "#rcc-confirm-button"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": "#rcc-decline-button"
25
+ }
26
+ ],
27
+ "test": [
28
+ {
29
+ "waitForVisible": "#rcc-decline-button",
30
+ "timeout": 1000,
31
+ "check": "none"
32
+ }
33
+ ]
34
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "rittal",
3
+ "vendorUrl": "https://www.rittal.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?rittal\\.com/"
6
+ },
7
+ "prehideSelectors": [".cookie-overlay"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".cookie-overlay .cookie-consent .cc-controls"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".cookie-overlay .cookie-consent .cc-controls"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".cookie-consent .cc-controls .custom-button.--primary"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ".cookie-consent .cc-controls .custom-button.--secondary-option + .custom-button.--secondary-option"
26
+ }
27
+ ],
28
+ "test": [
29
+ {
30
+ "cookieContains": "rittalCC=1"
31
+ }
32
+ ]
33
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "scotland-police-uk",
3
+ "cosmetic": true,
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?scotland\\.police\\.uk/"
6
+ },
7
+ "prehideSelectors": ["#panelAsk"],
8
+ "detectCmp": [{ "exists": "#panelAsk #btnAcceptAllCookies" }],
9
+ "detectPopup": [{ "visible": "#panelAsk #btnAcceptAllCookies" }],
10
+ "optIn": [{ "waitForThenClick": "#panelAsk #btnAcceptAllCookies" }],
11
+ "optOut": [{ "hide": "#panelAsk" }],
12
+ "test": [{ "visible": "#panelAsk", "check": "none" }]
13
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "shimano-bike",
3
+ "vendorUrl": "https://bike.shimano.com/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://bike\\.shimano\\.com/"
7
+ },
8
+ "prehideSelectors": [".cmp-cookies-notification"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": ".cmp-cookies-notification .cmp-cookies-notification__btn-cookie-accept"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": ".cmp-cookies-notification"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": ".cmp-cookies-notification .cmp-cookies-notification__btn-cookie-accept"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": ".cmp-cookies-notification"
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "shoezone",
3
+ "vendorUrl": "https://www.shoezone.com/",
4
+ "cosmetic": true,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(www\\.)?shoezone\\.com/"
7
+ },
8
+ "prehideSelectors": ["#pnlCookieAcceptance"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": "#pnlCookieAcceptance #divCookiesManage"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": "#pnlCookieAcceptance"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": "#divCookiesAllow"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "hide": "#pnlCookieAcceptance"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "visible": "#pnlCookieAcceptance",
32
+ "check": "none"
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "sitepark-sitekit",
3
+ "vendorUrl": "https://www.sitepark.com/",
4
+ "prehideSelectors": [".SP-CookieUsageNotification"],
5
+ "detectCmp": [{ "exists": ".SP-CookieUsageNotification" }],
6
+ "detectPopup": [{ "visible": ".SP-CookieUsageNotification" }],
7
+ "optIn": [
8
+ { "waitFor": ".SP-CookieUsageNotification[data-sp-cookie-usage-notification-bootstrapped]", "timeout": 5000, "optional": true },
9
+ { "waitForThenClick": ".SP-CookieUsageNotification__ok", "retry": 5, "retryInterval": 500 }
10
+ ],
11
+ "optOut": [
12
+ {
13
+ "if": {
14
+ "exists": "xpath///button[contains(@class,'SP-CookieUsageNotification__ok')][normalize-space(.)='OK' or normalize-space(.)='Ok' or normalize-space(.)='Okay']"
15
+ },
16
+ "then": [
17
+ {
18
+ "waitFor": ".SP-CookieUsageNotification[data-sp-cookie-usage-notification-bootstrapped]",
19
+ "timeout": 5000,
20
+ "optional": true
21
+ },
22
+ { "waitForThenClick": ".SP-CookieUsageNotification__ok", "retry": 5, "retryInterval": 500 }
23
+ ],
24
+ "else": [{ "hide": ".SP-CookieUsageNotification" }]
25
+ }
26
+ ]
27
+ }
@@ -5,7 +5,7 @@
5
5
  "prehideSelectors": [".tp-dialog.cookie-dialog", ".tp-cookie-banner"],
6
6
  "detectCmp": [
7
7
  {
8
- "exists": ".tp-dialog.cookie-dialog, :not(.tp-cookie-banner-tpl) > .tp-cookie-banner .show-cookie-dialog"
8
+ "exists": ".tp-dialog.cookie-dialog, :not(.tp-cookie-banner-tpl) > .tp-cookie-banner .show-cookie-dialog, #tp-cookie-banner > .tp-cookie-banner + .el-dialog__wrapper"
9
9
  }
10
10
  ],
11
11
  "detectPopup": [
@@ -16,6 +16,9 @@
16
16
  },
17
17
  {
18
18
  "visible": ":not(.tp-cookie-banner-tpl) > .tp-cookie-banner .show-cookie-dialog"
19
+ },
20
+ {
21
+ "visible": "#tp-cookie-banner > .tp-cookie-banner .tp-cookie-button-box"
19
22
  }
20
23
  ]
21
24
  }
@@ -32,7 +35,19 @@
32
35
  ],
33
36
  "else": [
34
37
  {
35
- "waitForThenClick": ".tp-dialog-box .tp-cookie-accept-all"
38
+ "if": {
39
+ "exists": "#tp-cookie-banner > .el-dialog__wrapper"
40
+ },
41
+ "then": [
42
+ {
43
+ "waitForThenClick": "#tp-cookie-banner > .tp-cookie-banner .tp-cookie-button-box .el-button--primary"
44
+ }
45
+ ],
46
+ "else": [
47
+ {
48
+ "waitForThenClick": ".tp-dialog-box .tp-cookie-accept-all"
49
+ }
50
+ ]
36
51
  }
37
52
  ]
38
53
  }
@@ -49,32 +64,57 @@
49
64
  ]
50
65
  },
51
66
  {
52
- "waitForVisible": ".tp-dialog.cookie-dialog .tp-dialog-box"
67
+ "if": {
68
+ "visible": "#tp-cookie-banner > .tp-cookie-banner .tp-cookie-button-box .el-button--default"
69
+ },
70
+ "then": [
71
+ {
72
+ "click": "#tp-cookie-banner > .tp-cookie-banner .tp-cookie-button-box .el-button--default"
73
+ }
74
+ ]
53
75
  },
54
76
  {
55
77
  "if": {
56
- "exists": ".tp-dialog-box .tp-cookie-opt-out"
78
+ "exists": "#tp-cookie-banner > .el-dialog__wrapper"
57
79
  },
58
80
  "then": [
59
81
  {
60
- "waitForThenClick": ".tp-dialog-box .tp-cookie-opt-out"
82
+ "waitForVisible": "#tp-cookie-banner > .el-dialog__wrapper .el-dialog__footer"
83
+ },
84
+ {
85
+ "waitForThenClick": "#tp-cookie-banner > .el-dialog__wrapper .el-dialog__footer button.is-plain:first-child"
61
86
  }
62
87
  ],
63
88
  "else": [
64
89
  {
65
- "click": ".tp-dialog-box .checkbox.clickable.checked",
66
- "all": true,
67
- "optional": true
90
+ "waitForVisible": ".tp-dialog.cookie-dialog .tp-dialog-box"
68
91
  },
69
92
  {
70
- "waitForThenClick": ".tp-dialog-box .tp-cookie-save"
93
+ "if": {
94
+ "exists": ".tp-dialog-box .tp-cookie-opt-out"
95
+ },
96
+ "then": [
97
+ {
98
+ "waitForThenClick": ".tp-dialog-box .tp-cookie-opt-out"
99
+ }
100
+ ],
101
+ "else": [
102
+ {
103
+ "click": ".tp-dialog-box .checkbox.clickable.checked",
104
+ "all": true,
105
+ "optional": true
106
+ },
107
+ {
108
+ "waitForThenClick": ".tp-dialog-box .tp-cookie-save"
109
+ }
110
+ ]
71
111
  }
72
112
  ]
73
113
  }
74
114
  ],
75
115
  "test": [
76
116
  {
77
- "cookieContains": "_privacy_banner=1"
117
+ "cookieContains": "_privacy_base=1"
78
118
  },
79
119
  {
80
120
  "negated": true,
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "tradecalculator.co.uk",
3
+ "vendorUrl": "https://tradecalculator.co.uk/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(www\\.)?tradecalculator\\.co\\.uk/"
6
+ },
7
+ "prehideSelectors": [],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "div[role=dialog][aria-labelledby=privacy-notice-title]"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "div[role=dialog][aria-labelledby=privacy-notice-title]"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": "div[aria-labelledby=privacy-notice-title] button:not([role=switch]):first-child"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "if": {
26
+ "exists": "div[aria-labelledby=privacy-notice-title] button[role=switch][aria-checked=true]"
27
+ },
28
+ "then": [
29
+ {
30
+ "click": "div[aria-labelledby=privacy-notice-title] button[role=switch][aria-checked=true]"
31
+ },
32
+ {
33
+ "waitFor": "div[aria-labelledby=privacy-notice-title] button[role=switch][aria-checked=false]",
34
+ "timeout": 1000
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ "waitForThenClick": "div[aria-labelledby=privacy-notice-title] button:not([role=switch]):last-child"
40
+ }
41
+ ],
42
+ "test": [
43
+ {
44
+ "waitForVisible": "div[role=dialog][aria-labelledby=privacy-notice-title]",
45
+ "check": "none",
46
+ "timeout": 1000
47
+ }
48
+ ]
49
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "unicity",
3
+ "vendorUrl": "https://www.unicitysolutions.co.uk/",
4
+ "prehideSelectors": ["#cookieControlWrapper"],
5
+ "detectCmp": [{ "exists": "#cookieControlWrapper #cookieControlBannerManage" }],
6
+ "detectPopup": [{ "visible": "#cookieControlWrapper #cookieControlBanner" }],
7
+ "optIn": [{ "waitForThenClick": "#cookieControlBannerContent a[onclick*=unicityCookiesAcceptAll]" }],
8
+ "optOut": [
9
+ {
10
+ "if": { "exists": "#cookieControlBannerContent a[onclick*=unicityCookiesRejectAll]" },
11
+ "then": [{ "click": "#cookieControlBannerContent a[onclick*=unicityCookiesRejectAll]" }],
12
+ "else": [
13
+ { "click": "#cookieControlBannerContent a[onclick*=unicityCookiesManage]" },
14
+ { "waitForVisible": "#cookieControlBannerManage" },
15
+ { "click": "#cookieControlBannerManage input[type=checkbox]:checked:not(:disabled)", "all": true, "optional": true },
16
+ { "click": "#cookieControlBannerManage a[onclick*=unicityCookiesSave]" }
17
+ ]
18
+ },
19
+ { "waitForVisible": "#cookieControlWrapper", "check": "none", "timeout": 2000, "optional": true }
20
+ ],
21
+ "test": [{ "cookieContains": "uni_cookies=0,0,0,0" }]
22
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "vgn.de",
3
+ "vendorUrl": "https://www.vgn.de/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?vgn\\.de/"
6
+ },
7
+ "prehideSelectors": [".CookieBanner"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".CookieBanner #Cookie_Selected"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".CookieBanner:not(.out) #Cookie_Selected"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".CookieBanner #Cookie_All"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "if": {
26
+ "exists": ".CookieBanner input[type=checkbox]:checked"
27
+ },
28
+ "then": [
29
+ {
30
+ "click": ".CookieBanner input[type=checkbox]:checked",
31
+ "all": true
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "waitForThenClick": ".CookieBanner #Cookie_Selected"
37
+ },
38
+ {
39
+ "waitForVisible": ".CookieBanner:not(.out) #Cookie_Selected",
40
+ "check": "none",
41
+ "timeout": 2000
42
+ }
43
+ ],
44
+ "test": [
45
+ {
46
+ "cookieContains": "CookieConsent=required"
47
+ },
48
+ {
49
+ "cookieContains": "CookieConsent=required,",
50
+ "negated": true
51
+ }
52
+ ]
53
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "westminster.ac.uk",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?westminster\\.ac\\.uk/"
5
+ },
6
+ "prehideSelectors": [".gdpr-popup"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": ".gdpr-popup #gdpr-popup__show-preferences"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": ".gdpr-popup.gdpr-popup--show"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": ".gdpr-popup__entry button[data-gdpr=button][value=accept]"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": "#gdpr-popup__show-preferences"
25
+ },
26
+ {
27
+ "waitForVisible": "#gdpr-popup__preferences button[data-gdpr=button][value=save]"
28
+ },
29
+ {
30
+ "click": "#gdpr-popup__preferences button[data-gdpr=switch][aria-checked=true]",
31
+ "all": true,
32
+ "optional": true
33
+ },
34
+ {
35
+ "click": "#gdpr-popup__preferences button[data-gdpr=button][value=save]"
36
+ }
37
+ ],
38
+ "test": [
39
+ {
40
+ "cookieContains": "%22interactedWith%22:true"
41
+ },
42
+ {
43
+ "cookieContains": "%22marketing%22:%22revoked%22"
44
+ }
45
+ ]
46
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "yourspares",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(www\\.)?yourspares\\.co\\.uk/"
5
+ },
6
+ "prehideSelectors": ["#colorbox.colorbox-cookie-consent", "#cboxOverlay.colorbox-cookie-consent"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "#cookie-consent form.cookie-consent"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "#colorbox.colorbox-cookie-consent"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "#colorbox input.cookie-consent-accept-all"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitFor": "#colorbox input.cookie-consent-reject-all"
25
+ },
26
+ {
27
+ "click": "#colorbox input.cookie-consent-reject-all"
28
+ },
29
+ {
30
+ "waitForVisible": "#colorbox.colorbox-cookie-consent",
31
+ "check": "none"
32
+ }
33
+ ],
34
+ "test": [
35
+ {
36
+ "cookieContains": "ConsentMarketing=False"
37
+ }
38
+ ]
39
+ }