@duckduckgo/autoconsent 16.38.0 → 16.40.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 (55) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/addon-firefox/compact-rules.json +1 -1
  3. package/dist/addon-firefox/content.bundle.js +1 -63
  4. package/dist/addon-firefox/manifest.json +1 -1
  5. package/dist/addon-firefox/rule-index.json +1 -1
  6. package/dist/addon-firefox/rules.json +1 -1
  7. package/dist/addon-mv3/compact-rules.json +1 -1
  8. package/dist/addon-mv3/content.bundle.js +1 -63
  9. package/dist/addon-mv3/manifest.json +1 -1
  10. package/dist/addon-mv3/rule-index.json +1 -1
  11. package/dist/addon-mv3/rules.json +1 -1
  12. package/dist/autoconsent.cjs.js +1 -63
  13. package/dist/autoconsent.esm.js +1 -63
  14. package/dist/autoconsent.playwright.js +1 -63
  15. package/dist/autoconsent.standalone.js +2 -64
  16. package/dist/types/cmps/all.d.ts +1 -2
  17. package/lib/cmps/all.ts +0 -2
  18. package/lib/heuristic-patterns.ts +1 -1
  19. package/package.json +1 -1
  20. package/rules/autoconsent/epidemicsound-com.json +19 -0
  21. package/rules/autoconsent/godaddy-privacy-widget.json +9 -0
  22. package/rules/autoconsent/hometogo.json +18 -0
  23. package/rules/autoconsent/lendable.json +39 -0
  24. package/rules/autoconsent/massgeneralbrigham.json +35 -0
  25. package/rules/autoconsent/maticrobots-com.json +17 -0
  26. package/rules/autoconsent/pandectes.json +4 -2
  27. package/rules/autoconsent/rdc-concents.json +9 -0
  28. package/rules/autoconsent/readly.json +26 -17
  29. package/rules/autoconsent/rspb.json +42 -0
  30. package/rules/autoconsent/rug-nl.json +33 -0
  31. package/rules/autoconsent/scmp.json +11 -3
  32. package/rules/autoconsent/tumblr-com.json +31 -0
  33. package/rules/autoconsent/tumblr-custom-domain-gdpr-banner.json +32 -0
  34. package/rules/autoconsent/venngage.json +38 -0
  35. package/rules/autoconsent/vmock.json +41 -0
  36. package/rules/compact-rules.json +1 -1
  37. package/rules/rule-index.json +1 -1
  38. package/rules/rules.json +1 -1
  39. package/tests/epidemicsound-com.spec.ts +3 -0
  40. package/tests/godaddy-privacy-widget.spec.ts +8 -0
  41. package/tests/hometogo.spec.ts +8 -0
  42. package/tests/lendable.spec.ts +3 -0
  43. package/tests/massgeneralbrigham.spec.ts +3 -0
  44. package/tests/maticrobots-com.spec.ts +3 -0
  45. package/tests/pandectes.spec.ts +6 -1
  46. package/tests/rdc-concents.spec.ts +10 -0
  47. package/tests/readly.spec.ts +1 -1
  48. package/tests/rspb.spec.ts +3 -0
  49. package/tests/rug-nl.spec.ts +3 -0
  50. package/tests/tumblr-custom-domain-gdpr-banner.spec.ts +7 -0
  51. package/tests/venngage.spec.ts +3 -0
  52. package/tests/vmock.spec.ts +3 -0
  53. package/tests-wtr/heuristics/heuristics-utils.test.ts +7 -0
  54. package/dist/types/cmps/tumblr-com.d.ts +0 -15
  55. package/lib/cmps/tumblr-com.ts +0 -70
@@ -1,3 +1,2 @@
1
1
  import Evidon from './evidon';
2
- import Tumblr from './tumblr-com';
3
- export declare const dynamicCMPs: (typeof Evidon | typeof Tumblr)[];
2
+ export declare const dynamicCMPs: (typeof Evidon)[];
package/lib/cmps/all.ts CHANGED
@@ -8,7 +8,6 @@ import Klaro from './klaro';
8
8
  import Uniconsent from './uniconsent';
9
9
  import Conversant from './conversant';
10
10
  import Tiktok from './tiktok';
11
- import Tumblr from './tumblr-com';
12
11
  import Admiral from './admiral';
13
12
 
14
13
  export const dynamicCMPs = [
@@ -22,6 +21,5 @@ export const dynamicCMPs = [
22
21
  Uniconsent,
23
22
  Conversant,
24
23
  Tiktok,
25
- Tumblr,
26
24
  Admiral,
27
25
  ];
@@ -259,7 +259,7 @@ const REJECT_PATTERNS_GERMAN = [
259
259
  /^\s*(nur|ausschließlich|lediglich|weiter\s+mit|mit|akzeptiere?n?|unbedingt|es\s+werden\s+nur)?\s*(technisch\s+)?(notwendige?[nrs]?|essenzielle?[nrs]?|essentielle?[nrs]?|erforderliche?[nrs]?|funktionale?[nrs]?|funktionelle?[nrs]?|wesentliche?[nrs]?)\s*(cookies?|technologien|funktionscookies|dienste)?\s*(akzeptieren|erlauben|zulassen|verwenden|annehmen|setzen|speichern|zustimmen|auswählen)?\.?\s*$/is,
260
260
 
261
261
  // continue without consent
262
- /(^|\s)(ohne\s+(einwilligung|zustimmung|einverständnis|annahme)|(weiter|fortfahren)\s+ohne)/is,
262
+ /(^|\s)(ohne\s+(zu\s+)?(einwilligung|zustimmung|einverständnis|annahme|annehmen|akzeptanz|akzeptieren)|(weiter|fortfahren)\s+ohne)/is,
263
263
 
264
264
  // negations / refusals not covered by the regexes above
265
265
  'nein, danke',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "16.38.0",
3
+ "version": "16.40.0",
4
4
  "description": "",
5
5
  "types": "./dist/types/web.d.ts",
6
6
  "exports": {
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "epidemicsound.com",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?epidemicsound\\.com/"
5
+ },
6
+ "prehideSelectors": ["#es-cookie-banner"],
7
+ "detectCmp": [{ "exists": "#es-cookie-banner #es-consent-settings-btn" }],
8
+ "detectPopup": [{ "visible": "#es-consent-settings-btn" }],
9
+ "optIn": [{ "waitForThenClick": "#es-consent-accept-btn" }],
10
+ "optOut": [
11
+ { "waitFor": "#onetrust-pc-sdk .save-preference-btn-handler" },
12
+ { "waitForThenClick": "#es-consent-settings-btn" },
13
+ { "waitForVisible": "#onetrust-pc-sdk" },
14
+ { "click": "#onetrust-consent-sdk input.category-switch-handler:checked", "all": true, "optional": true },
15
+ { "waitForThenClick": "#onetrust-pc-sdk .save-preference-btn-handler" },
16
+ { "waitForVisible": "#es-consent-settings-btn", "check": "none" }
17
+ ],
18
+ "test": [{ "cookieContains": "OptanonAlertBoxClosed" }]
19
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "godaddy-privacy-widget",
3
+ "prehideSelectors": ["#gtm_privacy"],
4
+ "detectCmp": [{ "exists": ["#gtm_privacy", "#privacy_widget"] }],
5
+ "detectPopup": [{ "visible": ["#gtm_privacy", "#privacy_widget"] }],
6
+ "optIn": [{ "waitForThenClick": ["#gtm_privacy", "#pw_accept"] }],
7
+ "optOut": [{ "waitForThenClick": ["#gtm_privacy", "#pw_decline"] }],
8
+ "test": [{ "cookieContains": "pwinteraction=" }]
9
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "hometogo",
3
+ "prehideSelectors": ["[data-test=\"cookie-consent-notification\"]"],
4
+ "detectCmp": [{ "exists": "[data-test=\"cookie-consent-notification\"] [data-test=\"accept-button\"]" }],
5
+ "detectPopup": [{ "visible": "[data-test=\"cookie-consent-notification\"]" }],
6
+ "optIn": [{ "waitForThenClick": "[data-test=\"cookie-consent-notification\"] [data-test=\"accept-button\"]" }],
7
+ "optOut": [
8
+ {
9
+ "if": { "exists": "[data-test=\"cookie-consent-notification\"] [data-test=\"dismiss-button\"]" },
10
+ "then": [{ "waitForThenClick": "[data-test=\"cookie-consent-notification\"] [data-test=\"dismiss-button\"]" }],
11
+ "else": [
12
+ { "waitForThenClick": "[data-test=\"cookie-consent-notification\"] [data-test=\"settings-button\"]" },
13
+ { "waitForThenClick": "[data-test=\"cookie-consent-modal\"] [data-test=\"accept-button\"]" }
14
+ ]
15
+ }
16
+ ],
17
+ "test": [{ "cookieContains": "cookie_consent=" }]
18
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "lendable",
3
+ "runContext": {
4
+ "urlPattern": "^https?://([\\w-]+\\.)?lendable\\.co\\.uk/"
5
+ },
6
+ "prehideSelectors": ["[class*=\"CookiesBanner_cookies-banner\"]"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": "[class*=\"CookiesBanner_cookies-banner\"] [class*=\"CookiesBanner_buttons\"] button"
10
+ }
11
+ ],
12
+ "detectPopup": [
13
+ {
14
+ "visible": "[class*=\"CookiesBanner_cookies-banner\"]"
15
+ }
16
+ ],
17
+ "optIn": [
18
+ {
19
+ "waitForThenClick": "[class*=\"CookiesBanner_buttons\"] button:last-child"
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "waitForThenClick": "[class*=\"CookiesBanner_buttons\"] button:first-child"
25
+ },
26
+ {
27
+ "waitForThenClick": "[role=\"dialog\"] [class*=\"_actions_\"] button:first-child"
28
+ },
29
+ {
30
+ "waitForVisible": "[class*=\"CookiesBanner_cookies-banner\"]",
31
+ "check": "none"
32
+ }
33
+ ],
34
+ "test": [
35
+ {
36
+ "cookieContains": "%22marketing%22%3Afalse"
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "massgeneralbrigham",
3
+ "vendorUrl": "https://www.massgeneralbrigham.org/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "urlPattern": "^https?://(\\w+\\.)?massgeneralbrigham\\.org/"
7
+ },
8
+ "prehideSelectors": [".cookie-banner[data-block-name=\"cookie-banner\"]"],
9
+ "detectCmp": [
10
+ {
11
+ "exists": ".cookie-banner[data-block-name=\"cookie-banner\"] .alert-close"
12
+ }
13
+ ],
14
+ "detectPopup": [
15
+ {
16
+ "visible": ".cookie-banner[data-block-name=\"cookie-banner\"] .alert-close"
17
+ }
18
+ ],
19
+ "optIn": [
20
+ {
21
+ "waitForThenClick": ".cookie-banner[data-block-name=\"cookie-banner\"] .alert-close"
22
+ }
23
+ ],
24
+ "optOut": [
25
+ {
26
+ "waitForThenClick": ".cookie-banner[data-block-name=\"cookie-banner\"] .alert-close"
27
+ }
28
+ ],
29
+ "test": [
30
+ {
31
+ "exists": ".cookie-banner[data-block-name=\"cookie-banner\"]",
32
+ "negated": true
33
+ }
34
+ ]
35
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "maticrobots-com",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?maticrobots\\.com/"
5
+ },
6
+ "prehideSelectors": ["section[aria-label=\"Cookie preferences\"]"],
7
+ "detectCmp": [{ "exists": "section[aria-label=\"Cookie preferences\"]" }],
8
+ "detectPopup": [{ "visible": "section[aria-label=\"Cookie preferences\"]" }],
9
+ "optIn": [{ "waitForThenClick": "xpath///section[@aria-label=\"Cookie preferences\"]//button[normalize-space()=\"Accept All\"]" }],
10
+ "optOut": [
11
+ { "waitForThenClick": "xpath///section[@aria-label=\"Cookie preferences\"]//button[normalize-space()=\"Cookie Settings\"]" },
12
+ { "waitForVisible": "div[role=\"dialog\"][aria-labelledby=\"consent-settings-title\"]" },
13
+ { "waitForThenClick": "xpath///label[contains(., \"Necessary and functional cookies\")]//input[@name=\"cookie-tier\"]" },
14
+ { "waitForThenClick": "div[role=\"dialog\"][aria-labelledby=\"consent-settings-title\"] button:not([aria-label])" }
15
+ ],
16
+ "comment": "No self-test: saving the settings reloads the page, so the check would always run in a fresh context. Opt-out stores matic_consent=v1.a0.m0."
17
+ }
@@ -15,7 +15,8 @@
15
15
  "optIn": [
16
16
  {
17
17
  "waitForThenClick": "#pandectes-banner .cc-allow"
18
- }
18
+ },
19
+ { "hide": "#pandectes-banner", "optional": true }
19
20
  ],
20
21
  "optOut": [
21
22
  {
@@ -28,7 +29,8 @@
28
29
  { "waitForVisible": ".pd-cp-ui-save" },
29
30
  { "click": ".pd-cp-ui-save" }
30
31
  ]
31
- }
32
+ },
33
+ { "hide": "#pandectes-banner", "optional": true }
32
34
  ],
33
35
  "test": [{ "wait": 500 }, { "eval": "EVAL_PANDECTES_TEST" }]
34
36
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "rdc-concents",
3
+ "prehideSelectors": ["#concentBanner", "#concentPopup"],
4
+ "detectCmp": [{ "exists": "#concentBanner .rdc-save-preferences, #concentPopup .rdc-save-preferences" }],
5
+ "detectPopup": [{ "visible": "#concentBanner .rdc-save-preferences, #concentPopup .rdc-save-preferences" }],
6
+ "optIn": [{ "waitForThenClick": "#concentBanner .acceptConcentButton, #concentPopup .acceptConcentButton" }],
7
+ "optOut": [{ "waitForThenClick": "#concentBanner .rdc-save-preferences, #concentPopup .rdc-save-preferences" }],
8
+ "test": [{ "exists": "#concentBanner, #concentPopup", "negated": true }]
9
+ }
@@ -1,40 +1,49 @@
1
1
  {
2
2
  "name": "readly",
3
3
  "runContext": {
4
- "urlPattern": "^https://([a-z0-9-]+\\.)?readly\\.com/"
4
+ "urlPattern": "^https://([a-z0-9-]+\\.)?readly\\.(com|co)/"
5
5
  },
6
- "prehideSelectors": [".DialogHandlerContainer.visible:has(.cookie-dialog)"],
6
+ "prehideSelectors": [".DialogHandlerContainer.visible:has(.cookie-dialog)", "#cookiesStrip:has([data-testid='accept-cookies'])"],
7
7
  "detectCmp": [
8
8
  {
9
- "exists": ".DialogHandlerContainer.visible:has(.cookie-dialog)"
9
+ "exists": ".DialogHandlerContainer.visible:has(.cookie-dialog), #cookiesStrip:has([data-testid='accept-cookies'])"
10
10
  }
11
11
  ],
12
12
  "detectPopup": [
13
13
  {
14
- "visible": ".DialogHandlerContainer.visible:has(.cookie-dialog)"
14
+ "visible": ".DialogHandlerContainer.visible:has(.cookie-dialog), #cookiesStrip:has([data-testid='accept-cookies'])",
15
+ "check": "any"
15
16
  }
16
17
  ],
17
18
  "optIn": [
18
19
  {
19
- "waitForThenClick": "span.cookie-option-large+div+div>button.gui-button"
20
+ "if": { "exists": "#cookiesStrip [data-testid='accept-cookies']" },
21
+ "then": [{ "waitForThenClick": "#cookiesStrip [data-testid='accept-cookies']" }],
22
+ "else": [{ "waitForThenClick": "span.cookie-option-large+div+div>button.gui-button" }]
20
23
  }
21
24
  ],
22
25
  "optOut": [
23
26
  {
24
- "waitForThenClick": "span.cookie-option-large>div>span.link-no-decoration.gui-text"
25
- },
26
- {
27
- "if": { "exists": ".cookie-dialog form .CookieConsentOption input[type='checkbox']:not([name='permanent']):checked" },
28
- "then": [
27
+ "if": { "exists": "#cookiesStrip [data-testid='skip-cookies']" },
28
+ "then": [{ "waitForThenClick": "#cookiesStrip [data-testid='skip-cookies']" }],
29
+ "else": [
30
+ {
31
+ "waitForThenClick": "span.cookie-option-large>div>span.link-no-decoration.gui-text"
32
+ },
29
33
  {
30
- "waitForThenClick": ".cookie-dialog form .CookieConsentOption input[type='checkbox']:not([name='permanent']):checked",
31
- "all": true
34
+ "if": { "exists": ".cookie-dialog form .CookieConsentOption input[type='checkbox']:not([name='permanent']):checked" },
35
+ "then": [
36
+ {
37
+ "waitForThenClick": ".cookie-dialog form .CookieConsentOption input[type='checkbox']:not([name='permanent']):checked",
38
+ "all": true
39
+ }
40
+ ],
41
+ "else": []
42
+ },
43
+ {
44
+ "waitForThenClick": ".cookie-dialog button[type='submit']"
32
45
  }
33
- ],
34
- "else": []
35
- },
36
- {
37
- "waitForThenClick": ".cookie-dialog button[type='submit']"
46
+ ]
38
47
  }
39
48
  ]
40
49
  }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "rspb.org.uk",
3
+ "vendorUrl": "https://www.rspb.org.uk/",
4
+ "cosmetic": false,
5
+ "runContext": {
6
+ "main": true,
7
+ "frame": false,
8
+ "urlPattern": "^https://(\\w+\\.)?rspb\\.org\\.uk/"
9
+ },
10
+ "prehideSelectors": ["rspb-cookie-banner"],
11
+ "detectCmp": [
12
+ {
13
+ "exists": "rspb-cookie-banner"
14
+ }
15
+ ],
16
+ "detectPopup": [
17
+ {
18
+ "visible": "rspb-cookie-banner"
19
+ }
20
+ ],
21
+ "optIn": [
22
+ {
23
+ "waitForThenClick": "rspb-cookie-banner .buttons button.btn-primary"
24
+ }
25
+ ],
26
+ "optOut": [
27
+ {
28
+ "waitForThenClick": "rspb-cookie-banner .buttons button.btn-light"
29
+ },
30
+ {
31
+ "waitForVisible": "rspb-cookie-banner [data-testid=\"options\"]"
32
+ },
33
+ {
34
+ "waitForThenClick": "rspb-cookie-banner button[label=\"Save settings\"]"
35
+ }
36
+ ],
37
+ "test": [
38
+ {
39
+ "cookieContains": "RSPB.AllowMarketingCookies=No"
40
+ }
41
+ ]
42
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "rug-nl",
3
+ "_metadata": {
4
+ "vendorUrl": "https://www.rug.nl/"
5
+ },
6
+ "cosmetic": false,
7
+ "runContext": {
8
+ "main": true,
9
+ "frame": false,
10
+ "urlPattern": "^https?://(\\w+\\.)?rug\\.nl/"
11
+ },
12
+ "prehideSelectors": ["#ConsentBar"],
13
+ "detectCmp": [
14
+ {
15
+ "exists": "#ConsentBar [data-js--cookie=\"cookies-accept-functional\"]"
16
+ }
17
+ ],
18
+ "detectPopup": [
19
+ {
20
+ "visible": "#ConsentBar"
21
+ }
22
+ ],
23
+ "optIn": [
24
+ {
25
+ "waitForThenClick": "#ConsentBar [data-js--cookie=\"cookies-accept-all\"]"
26
+ }
27
+ ],
28
+ "optOut": [
29
+ {
30
+ "waitForThenClick": "#ConsentBar [data-js--cookie=\"cookies-accept-functional\"]"
31
+ }
32
+ ]
33
+ }
@@ -7,18 +7,21 @@
7
7
  "prehideSelectors": ["[data-qa=\"GDPRBanner-Container\"]"],
8
8
  "detectCmp": [
9
9
  {
10
- "exists": "[data-qa=\"GDPRBanner-Container\"] [data-qa=\"GDPRBanner-Button\"]"
10
+ "any": [{ "exists": "[data-qa=\"GDPRBanner-Container\"] [data-qa=\"GDPRBanner-Button\"]" }, { "exists": ".fc-consent-root" }]
11
11
  }
12
12
  ],
13
13
  "detectPopup": [
14
14
  {
15
- "visible": "[data-qa=\"GDPRBanner-Container\"] [data-qa=\"GDPRBanner-Button\"]"
15
+ "any": [
16
+ { "visible": "[data-qa=\"GDPRBanner-Container\"] [data-qa=\"GDPRBanner-Button\"]" },
17
+ { "visible": ".fc-consent-root .fc-dialog-container" }
18
+ ]
16
19
  }
17
20
  ],
18
21
  "optIn": [
19
22
  {
20
23
  "waitForVisible": ".fc-consent-root .fc-dialog-container",
21
- "timeout": 1000,
24
+ "timeout": 4000,
22
25
  "optional": true
23
26
  },
24
27
  {
@@ -60,6 +63,11 @@
60
63
  }
61
64
  ]
62
65
  },
66
+ {
67
+ "waitForVisible": "[data-qa=\"GDPRBanner-Container\"] [data-qa=\"GDPRBanner-Button\"]",
68
+ "timeout": 3000,
69
+ "optional": true
70
+ },
63
71
  {
64
72
  "hide": "[data-qa=\"GDPRBanner-Container\"]"
65
73
  }
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "tumblr-com",
3
+ "prehideSelectors": ["#cmp-app-container"],
4
+ "runContext": {
5
+ "urlPattern": "^https://(www\\.)?tumblr\\.com/",
6
+ "frame": true
7
+ },
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#cmp-app-container"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#cmp-app-container",
16
+ "check": "any"
17
+ }
18
+ ],
19
+ "optOut": [
20
+ {
21
+ "waitForThenClick": ["#cmp-app-container iframe", ".cmp-components-button.is-secondary"],
22
+ "timeout": 5000
23
+ }
24
+ ],
25
+ "optIn": [
26
+ {
27
+ "waitForThenClick": ["#cmp-app-container iframe", ".cmp-components-button.is-primary"],
28
+ "timeout": 5000
29
+ }
30
+ ]
31
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "tumblr-custom-domain-gdpr-banner",
3
+ "cosmetic": true,
4
+ "prehideSelectors": ["iframe.tmblr-iframe--gdpr-banner"],
5
+ "detectCmp": [
6
+ {
7
+ "exists": "iframe.tmblr-iframe--gdpr-banner"
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "visible": "iframe.tmblr-iframe--gdpr-banner"
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "click": "iframe.tmblr-iframe--gdpr-banner",
18
+ "optional": true
19
+ }
20
+ ],
21
+ "optOut": [
22
+ {
23
+ "hide": "iframe.tmblr-iframe--gdpr-banner"
24
+ }
25
+ ],
26
+ "test": [
27
+ {
28
+ "visible": "iframe.tmblr-iframe--gdpr-banner",
29
+ "check": "none"
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "venngage.com",
3
+ "runContext": {
4
+ "urlPattern": "^https?://(\\w+\\.)?venngage\\.com/"
5
+ },
6
+ "prehideSelectors": [".gdpr_container", ".gdpr_modal_container"],
7
+ "detectCmp": [
8
+ {
9
+ "exists": ".gdpr .gdpr_manage_cookies_button"
10
+ },
11
+ {
12
+ "visible": ".gdpr .gdpr_container"
13
+ }
14
+ ],
15
+ "detectPopup": [
16
+ {
17
+ "visible": ".gdpr .gdpr_container"
18
+ }
19
+ ],
20
+ "optIn": [
21
+ {
22
+ "waitForThenClick": ".gdpr .gdpr_accept_cookies_button"
23
+ }
24
+ ],
25
+ "optOut": [
26
+ {
27
+ "waitForThenClick": ".gdpr .gdpr_manage_cookies_button"
28
+ },
29
+ {
30
+ "waitForThenClick": ".gdpr_modal .gdpr_modal_button_reject"
31
+ }
32
+ ],
33
+ "test": [
34
+ {
35
+ "cookieContains": "vg_consent={\"functionality\":false,\"performance\":false,\"targeting\":false}"
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "vmock",
3
+ "vendorUrl": "https://www.vmock.com/",
4
+ "runContext": {
5
+ "urlPattern": "^https?://(\\w+\\.)?vmock\\.com/"
6
+ },
7
+ "prehideSelectors": [".cookie-policy-modal", ".manage-cookies-modal"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": ".cookie-policy-modal .cookie-policy-details button.manage"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": ".cookie-policy-modal .cookie-policy-details button.manage"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "waitForThenClick": ".cookie-policy-modal .cookie-policy-details button.accept"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "waitForThenClick": ".cookie-policy-modal .cookie-policy-details button.manage"
26
+ },
27
+ {
28
+ "waitForThenClick": ".manage-cookies-modal .manage-cookies-footer button.btn-outline-primary"
29
+ },
30
+ {
31
+ "waitForVisible": ".manage-cookies-modal",
32
+ "timeout": 2000,
33
+ "check": "none"
34
+ }
35
+ ],
36
+ "test": [
37
+ {
38
+ "cookieContains": "%22analytics%22:false"
39
+ }
40
+ ]
41
+ }