@duckduckgo/autoconsent 16.18.0 → 16.18.1
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 +12 -0
- package/dist/addon-firefox/compact-rules.json +1 -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/manifest.json +1 -1
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.standalone.js +1 -1
- package/package.json +1 -1
- package/rules/autoconsent/pornhub-compact-cookie-banner.json +28 -0
- package/rules/autoconsent/pornhub.json +3 -27
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/pornhub.spec.ts +1 -2
package/package.json
CHANGED
|
@@ -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
|
}
|