@duckduckgo/autoconsent 16.18.0 → 16.19.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/CHANGELOG.md +36 -0
- package/data/coverage.json +1763 -2065
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +0 -1
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rule-index.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +0 -1
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.cjs.js +0 -1
- package/dist/autoconsent.esm.js +0 -1
- package/dist/autoconsent.playwright.js +0 -1
- package/dist/autoconsent.standalone.js +1 -2
- package/lib/heuristic-patterns.ts +0 -1
- package/package.json +1 -1
- package/rules/autoconsent/bbb.json +10 -10
- package/rules/autoconsent/gmx-permission.json +65 -0
- package/rules/autoconsent/pornhub-compact-cookie-banner.json +28 -0
- package/rules/autoconsent/pornhub.json +3 -27
- package/rules/autoconsent/simyo-nl.json +35 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/gmx-permission.spec.ts +5 -0
- package/tests/pornhub.spec.ts +1 -2
- package/tests/simyo-nl.spec.ts +3 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +4 -0
package/package.json
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bbb.org",
|
|
3
3
|
"cosmetic": false,
|
|
4
|
-
"prehideSelectors": ["
|
|
5
|
-
"detectCmp": [{ "exists": "
|
|
6
|
-
"detectPopup": [{ "visible": "
|
|
7
|
-
"optIn": [{ "click": "
|
|
4
|
+
"prehideSelectors": ["iabbb-cookies-message > section"],
|
|
5
|
+
"detectCmp": [{ "exists": "iabbb-cookies-message" }],
|
|
6
|
+
"detectPopup": [{ "visible": "iabbb-cookies-message > section [name='allow-all']" }],
|
|
7
|
+
"optIn": [{ "click": "iabbb-cookies-message > section [name='allow-all']" }],
|
|
8
8
|
"optOut": [
|
|
9
|
-
{ "waitForVisible": "
|
|
9
|
+
{ "waitForVisible": "iabbb-cookies-message > section button.bds-button-unstyled" },
|
|
10
10
|
{ "wait": 500 },
|
|
11
|
-
{ "click": "
|
|
12
|
-
{ "waitFor": "
|
|
11
|
+
{ "click": "iabbb-cookies-message > section button.bds-button-unstyled" },
|
|
12
|
+
{ "waitFor": "iabbb-cookies-message dialog[open]" },
|
|
13
13
|
{
|
|
14
|
-
"click": "
|
|
14
|
+
"click": "iabbb-cookies-message dialog fieldset input[type=radio][value=false]:not(:checked)",
|
|
15
15
|
"all": true,
|
|
16
16
|
"optional": true
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"click": "
|
|
19
|
+
"click": "iabbb-cookies-message dialog button.bds-button"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
"waitForThenClick": "
|
|
22
|
+
"waitForThenClick": "iabbb-cookies-message > section button.bds-button:not([name])"
|
|
23
23
|
}
|
|
24
24
|
]
|
|
25
25
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "gmx-permission",
|
|
3
|
+
"vendorUrl": "https://www.gmx.com",
|
|
4
|
+
"runContext": {
|
|
5
|
+
"main": false,
|
|
6
|
+
"frame": true,
|
|
7
|
+
"urlPattern": "^https://plus\\.gmx\\.com/lt(?:[?#]|$)"
|
|
8
|
+
},
|
|
9
|
+
"prehideSelectors": ["#overlay.cmp"],
|
|
10
|
+
"detectCmp": [
|
|
11
|
+
{
|
|
12
|
+
"exists": "#overlay.cmp"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"detectPopup": [
|
|
16
|
+
{
|
|
17
|
+
"visible": "#overlay[role=dialog]"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optIn": [
|
|
21
|
+
{
|
|
22
|
+
"waitForThenClick": "#save-all-conditionally, #save-all"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"optOut": [
|
|
26
|
+
{
|
|
27
|
+
"if": {
|
|
28
|
+
"exists": "#deny"
|
|
29
|
+
},
|
|
30
|
+
"then": [
|
|
31
|
+
{
|
|
32
|
+
"waitForThenClick": "#deny"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"else": [
|
|
36
|
+
{
|
|
37
|
+
"if": {
|
|
38
|
+
"exists": "#edit-purpose-settings"
|
|
39
|
+
},
|
|
40
|
+
"then": [
|
|
41
|
+
{
|
|
42
|
+
"waitForThenClick": "#edit-purpose-settings"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"waitForVisible": "#save-purpose-settings"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"waitForThenClick": "#save-purpose-settings"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"else": [
|
|
52
|
+
{
|
|
53
|
+
"waitForThenClick": "#save-purpose-settings"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"test": [
|
|
61
|
+
{
|
|
62
|
+
"cookieContains": "ui_cid=OPTOUT"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -4,17 +4,15 @@
|
|
|
4
4
|
"urlPattern": "^https://(www\\.)?pornhub\\.com/"
|
|
5
5
|
},
|
|
6
6
|
"cosmetic": false,
|
|
7
|
-
"prehideSelectors": ["#cookieBanner #cookieBannerContent"
|
|
7
|
+
"prehideSelectors": ["#cookieBanner #cookieBannerContent"],
|
|
8
8
|
"detectCmp": [
|
|
9
9
|
{
|
|
10
|
-
"
|
|
11
|
-
"check": "any"
|
|
10
|
+
"exists": "#cookieBanner #cookieBannerContent, #globalCookieBanner"
|
|
12
11
|
}
|
|
13
12
|
],
|
|
14
13
|
"detectPopup": [
|
|
15
14
|
{
|
|
16
|
-
"visible": "#cookieBanner #cookieBannerContent, #globalCookieBanner
|
|
17
|
-
"check": "any"
|
|
15
|
+
"visible": "#cookieBanner #cookieBannerContent, #globalCookieBanner"
|
|
18
16
|
}
|
|
19
17
|
],
|
|
20
18
|
"optIn": [
|
|
@@ -23,16 +21,6 @@
|
|
|
23
21
|
}
|
|
24
22
|
],
|
|
25
23
|
"optOut": [
|
|
26
|
-
{
|
|
27
|
-
"if": {
|
|
28
|
-
"visible": "#cookieBanner.cbShort .cbCloseButton"
|
|
29
|
-
},
|
|
30
|
-
"then": [
|
|
31
|
-
{
|
|
32
|
-
"waitForThenClick": "#cookieBanner.cbShort .cbCloseButton"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
"if": {
|
|
38
26
|
"exists": "#globalCookieBanner .js-customizeGlobalCookies"
|
|
@@ -58,17 +46,5 @@
|
|
|
58
46
|
}
|
|
59
47
|
]
|
|
60
48
|
}
|
|
61
|
-
],
|
|
62
|
-
"test": [
|
|
63
|
-
{
|
|
64
|
-
"any": [
|
|
65
|
-
{
|
|
66
|
-
"cookieContains": "cookieConsent=2"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"cookieContains": "cookieBannerState"
|
|
70
|
-
}
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
49
|
]
|
|
74
50
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "simyo-nl",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"main": true,
|
|
5
|
+
"frame": false,
|
|
6
|
+
"urlPattern": "^https?://(www\\.)?simyo\\.nl/"
|
|
7
|
+
},
|
|
8
|
+
"prehideSelectors": ["[data-testid=\"cookie-wall\"]"],
|
|
9
|
+
"detectCmp": [
|
|
10
|
+
{
|
|
11
|
+
"visible": "[data-testid=\"cookie-wall\"]"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"detectPopup": [
|
|
15
|
+
{
|
|
16
|
+
"visible": "[data-testid=\"cookie-wall\"]"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optIn": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": "[data-testid=\"cookie-wall\"] [data-testid=\"cookie-accept-action\"]"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"optOut": [
|
|
25
|
+
{
|
|
26
|
+
"waitForThenClick": "[data-testid=\"cookie-wall\"] .cookie-bar__footer button[data-id=\"0\"]",
|
|
27
|
+
"comment": "Weigeren"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"test": [
|
|
31
|
+
{
|
|
32
|
+
"cookieContains": "acceptCookies=0"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|