@duckduckgo/autoconsent 16.13.0 → 16.14.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/.node-version +1 -0
- package/CHANGELOG.md +20 -0
- package/Jenkinsfile +11 -6
- 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/interia.json +15 -0
- package/rules/autoconsent/xhamster-eu.json +8 -5
- package/rules/autoconsent/xnxx-com.json +24 -4
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/interia.spec.ts +3 -0
- package/tests/xhamster-eu.spec.ts +3 -1
package/package.json
CHANGED
|
@@ -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
|
+
}
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
"runContext": {
|
|
4
4
|
"urlPattern": "^https://(\\w+\\.)?xhamster\\d?\\.com"
|
|
5
5
|
},
|
|
6
|
-
"prehideSelectors": ["[
|
|
7
|
-
"detectCmp": [{ "exists": "[
|
|
8
|
-
"detectPopup": [{ "visible": "[
|
|
9
|
-
"optIn": [{ "waitForThenClick": "[
|
|
10
|
-
"optOut": [
|
|
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": [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
}
|