@duckduckgo/autoconsent 16.13.0 → 16.15.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duckduckgo/autoconsent",
3
- "version": "16.13.0",
3
+ "version": "16.15.0",
4
4
  "description": "",
5
5
  "types": "./dist/types/web.d.ts",
6
6
  "exports": {
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "cookieinfo",
3
+ "vendorUrl": "https://cookieinfoscript.com/",
4
+ "cosmetic": true,
5
+ "prehideSelectors": [".cookieinfo"],
6
+ "detectCmp": [{ "exists": ".cookieinfo" }],
7
+ "detectPopup": [{ "visible": ".cookieinfo" }],
8
+ "optOut": [{ "waitForThenClick": ".cookieinfo-close" }],
9
+ "optIn": [{ "waitForThenClick": ".cookieinfo-close" }]
10
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "interia",
3
+ "runContext": {
4
+ "urlPattern": "^https://(www\\.)?interia\\.pl/"
5
+ },
6
+ "prehideSelectors": ["form.rodo-popup"],
7
+ "detectCmp": [{ "exists": "form.rodo-popup" }],
8
+ "detectPopup": [{ "visible": "form.rodo-popup" }],
9
+ "optIn": [{ "waitForThenClick": "form.rodo-popup button.rodo-popup-main-agree" }],
10
+ "optOut": [
11
+ { "waitForThenClick": "form.rodo-popup button.rodo-popup-main-settings" },
12
+ { "waitForThenClick": "form.rodo-popup button.rodo-popup-reject" }
13
+ ],
14
+ "test": [{ "waitForVisible": "form.rodo-popup", "check": "none", "timeout": 3000 }]
15
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "pornhub-compact-cookie-banner",
3
+ "runContext": {
4
+ "urlPattern": "^https://(www\\.)?pornhub\\.com/"
5
+ },
6
+ "cosmetic": false,
7
+ "prehideSelectors": ["#cookieBanner.cbShort"],
8
+ "detectCmp": [
9
+ {
10
+ "exists": "#cookieBanner.cbShort .cbCloseButton"
11
+ }
12
+ ],
13
+ "detectPopup": [
14
+ {
15
+ "visible": "#cookieBanner.cbShort .cbCloseButton"
16
+ }
17
+ ],
18
+ "optIn": [
19
+ {
20
+ "click": "#cookieBanner.cbShort .cbCloseButton"
21
+ }
22
+ ],
23
+ "optOut": [
24
+ {
25
+ "click": "#cookieBanner.cbShort .cbCloseButton"
26
+ }
27
+ ]
28
+ }
@@ -3,9 +3,12 @@
3
3
  "runContext": {
4
4
  "urlPattern": "^https://(\\w+\\.)?xhamster\\d?\\.com"
5
5
  },
6
- "prehideSelectors": ["[class*=modal]"],
7
- "detectCmp": [{ "exists": "[class*=modal] a[href*='/cookie-policy']" }],
8
- "detectPopup": [{ "visible": "[class*=modal] a[href*='/cookie-policy']" }],
9
- "optIn": [{ "waitForThenClick": "[class*=modal]:has(a[href*='/cookie-policy']) button:nth-child(3)" }],
10
- "optOut": [{ "waitForThenClick": "[class*=modal]:has(a[href*='/cookie-policy']) button:nth-child(2)" }]
6
+ "prehideSelectors": ["[data-role=\"cookies-modal\"]"],
7
+ "detectCmp": [{ "exists": "[data-role=\"cookies-modal\"] [data-opt-hydration=\"cookies-dialog-eu\"]" }],
8
+ "detectPopup": [{ "visible": "[data-role=\"cookies-modal\"] [data-opt-hydration=\"cookies-dialog-eu\"]" }],
9
+ "optIn": [{ "waitForThenClick": "[data-role=\"cookies-modal\"] [class*=experimentalButtons] button:nth-of-type(1)" }],
10
+ "optOut": [
11
+ { "waitForThenClick": "[data-role=\"cookies-modal\"] [class*=experimentalButtons] button:nth-of-type(2)" },
12
+ { "hide": "[data-role=\"cookies-modal\"] [class*=container]", "optional": true }
13
+ ]
11
14
  }
@@ -2,8 +2,28 @@
2
2
  "name": "xnxx-com",
3
3
  "cosmetic": true,
4
4
  "prehideSelectors": ["#cookies-use-alert"],
5
- "detectCmp": [{ "exists": "#cookies-use-alert" }],
6
- "detectPopup": [{ "visible": "#cookies-use-alert" }],
7
- "optIn": [{ "click": "#cookies-use-alert .close" }],
8
- "optOut": [{ "hide": "#cookies-use-alert" }]
5
+ "detectCmp": [
6
+ {
7
+ "any": [{ "exists": "#cookies-use-alert" }, { "exists": ".disclaimer-opened #disclaimer-cookies" }]
8
+ }
9
+ ],
10
+ "detectPopup": [
11
+ {
12
+ "any": [{ "visible": "#cookies-use-alert" }, { "visible": ".disclaimer-opened #disclaimer-cookies" }]
13
+ }
14
+ ],
15
+ "optIn": [
16
+ {
17
+ "if": { "visible": ".disclaimer-opened #disclaimer-cookies" },
18
+ "then": [{ "waitForThenClick": "#disclaimer-accept_cookies" }],
19
+ "else": [{ "click": "#cookies-use-alert .close" }]
20
+ }
21
+ ],
22
+ "optOut": [
23
+ {
24
+ "if": { "visible": ".disclaimer-opened #disclaimer-cookies" },
25
+ "then": [{ "waitForThenClick": "#disclaimer-reject_cookies" }],
26
+ "else": [{ "hide": "#cookies-use-alert" }]
27
+ }
28
+ ]
9
29
  }