@duckduckgo/autoconsent 5.3.0 → 6.0.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/.eslintrc +1 -1
- package/CHANGELOG.md +17 -0
- package/data/coverage.json +958 -1010
- package/dist/addon-firefox/background.bundle.js +13 -12
- package/dist/addon-firefox/content.bundle.js +1074 -930
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +83 -83
- package/dist/addon-mv3/background.bundle.js +13 -12
- package/dist/addon-mv3/content.bundle.js +1074 -930
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/popup.bundle.js +38 -0
- package/dist/addon-mv3/popup.html +2 -1
- package/dist/addon-mv3/rules.json +83 -83
- package/dist/autoconsent.cjs.js +1074 -937
- package/dist/autoconsent.esm.js +1074 -932
- package/dist/autoconsent.playwright.js +1 -1
- package/lib/cmps/airbnb.ts +1 -3
- package/lib/cmps/all.ts +13 -22
- package/lib/cmps/base.ts +123 -92
- package/lib/cmps/consentmanager.ts +7 -10
- package/lib/cmps/conversant.ts +1 -4
- package/lib/cmps/cookiebot.ts +6 -10
- package/lib/cmps/evidon.ts +1 -3
- package/lib/cmps/klaro.ts +3 -7
- package/lib/cmps/onetrust.ts +3 -7
- package/lib/cmps/sourcepoint-frame.ts +1 -4
- package/lib/cmps/tiktok.ts +1 -3
- package/lib/cmps/trustarc-frame.ts +1 -3
- package/lib/cmps/trustarc-top.ts +6 -5
- package/lib/cmps/uniconsent.ts +1 -3
- package/lib/eval-snippets.ts +105 -0
- package/lib/rule-executors.ts +0 -8
- package/lib/rules.ts +3 -1
- package/lib/types.ts +1 -1
- package/lib/web.ts +26 -13
- package/package.json +1 -1
- package/readme.md +3 -3
- package/rules/autoconsent/192.json +1 -1
- package/rules/autoconsent/adroll.json +1 -1
- package/rules/autoconsent/affinity-serif-com.json +1 -1
- package/rules/autoconsent/axeptio.json +1 -1
- package/rules/autoconsent/bing.json +1 -1
- package/rules/autoconsent/borlabs.json +1 -1
- package/rules/autoconsent/bundesregierung-de.json +1 -1
- package/rules/autoconsent/canva.json +1 -1
- package/rules/autoconsent/clickio.json +1 -1
- package/rules/autoconsent/clinch.json +1 -1
- package/rules/autoconsent/coinbase.json +1 -1
- package/rules/autoconsent/complianz-banner.json +1 -1
- package/rules/autoconsent/complianz-categories.json +1 -1
- package/rules/autoconsent/complianz-optin.json +1 -1
- package/rules/autoconsent/cookie-law-info.json +2 -2
- package/rules/autoconsent/cookie-manager-popup.json +1 -1
- package/rules/autoconsent/cookiealert.json +3 -3
- package/rules/autoconsent/cookiefirst.json +7 -8
- package/rules/autoconsent/cookieinformation.json +3 -3
- package/rules/autoconsent/dailymotion.json +1 -1
- package/rules/autoconsent/dsgvo.json +1 -1
- package/rules/autoconsent/dunelm.json +1 -1
- package/rules/autoconsent/etsy.json +2 -2
- package/rules/autoconsent/eu-cookie-compliance.json +1 -1
- package/rules/autoconsent/eu-cookie-law.json +1 -1
- package/rules/autoconsent/ezoic.json +2 -2
- package/rules/autoconsent/google.json +1 -1
- package/rules/autoconsent/iubenda.json +2 -2
- package/rules/autoconsent/jquery-cookiebar.json +1 -1
- package/rules/autoconsent/mediavine.json +1 -1
- package/rules/autoconsent/microsoft.json +3 -3
- package/rules/autoconsent/moove.json +1 -1
- package/rules/autoconsent/paypal.json +1 -1
- package/rules/autoconsent/primebox.json +1 -1
- package/rules/autoconsent/pubtech.json +1 -1
- package/rules/autoconsent/reddit.json +1 -1
- package/rules/autoconsent/sibbo.json +1 -1
- package/rules/autoconsent/sirdata.json +1 -1
- package/rules/autoconsent/snigel.json +1 -1
- package/rules/autoconsent/steampowered.json +1 -1
- package/rules/autoconsent/tarteaucitron.json +3 -3
- package/rules/autoconsent/tealium.json +4 -4
- package/rules/autoconsent/testcmp-cosmetic.json +1 -1
- package/rules/autoconsent/testcmp.json +1 -1
- package/rules/autoconsent/thefreedictionary.json +2 -2
- package/rules/autoconsent/theverge.json +1 -1
- package/rules/autoconsent/twitter.json +1 -1
- package/rules/autoconsent/ubuntu.com.json +1 -1
- package/rules/autoconsent/uk-cookie-consent.json +1 -1
- package/rules/autoconsent/usercentrics-api.json +7 -7
- package/rules/autoconsent/usercentrics-button.json +1 -1
- package/rules/autoconsent/waitrose.json +2 -2
- package/rules/autoconsent/wp-cookie-notice.json +1 -1
- package/rules/autoconsent/xing.json +1 -1
- package/rules/autoconsent/youtube-desktop.json +1 -1
- package/rules/autoconsent/youtube-mobile.json +1 -1
- package/rules/rules.json +83 -83
- package/lib/index.ts +0 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"prehideSelectors": ["#wcpConsentBannerCtrl"],
|
|
4
4
|
"detectCmp": [{ "exists": "#wcpConsentBannerCtrl" }],
|
|
5
5
|
"detectPopup": [{ "exists": "#wcpConsentBannerCtrl" }],
|
|
6
|
-
"optOut": [{ "eval": "
|
|
7
|
-
"optIn": [{ "eval": "
|
|
8
|
-
"test": [{ "eval": "
|
|
6
|
+
"optOut": [{ "eval": "EVAL_MICROSOFT_0" }],
|
|
7
|
+
"optIn": [{ "eval": "EVAL_MICROSOFT_1" }],
|
|
8
|
+
"test": [{ "eval": "EVAL_MICROSOFT_2"}]
|
|
9
9
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"then": [
|
|
15
15
|
{ "click": "#moove_gdpr_cookie_info_bar .change-settings-button" },
|
|
16
16
|
{ "waitForVisible": "#moove_gdpr_cookie_modal" },
|
|
17
|
-
{ "eval": "
|
|
17
|
+
{ "eval": "EVAL_MOOVE_0" },
|
|
18
18
|
{ "click": ".moove-gdpr-modal-save-settings" }
|
|
19
19
|
],
|
|
20
20
|
"else": [
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
{ "waitForThenClick": "section:has(a[href^=\"https://www.reddit.com/policies/cookies\"]) section[class^='_'] > section:last-child form button" }
|
|
18
18
|
],
|
|
19
19
|
"test": [
|
|
20
|
-
{"eval": "
|
|
20
|
+
{"eval": "EVAL_REDDIT_0"}
|
|
21
21
|
]
|
|
22
22
|
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
"detectCmp": [{ "exists": ".snigel-cmp-framework" }],
|
|
4
4
|
"detectPopup": [{ "visible": ".snigel-cmp-framework" }],
|
|
5
5
|
"optOut": [{ "click": "#sn-b-custom" }, {"click": "#sn-b-save"}],
|
|
6
|
-
"test": [{ "eval": "
|
|
6
|
+
"test": [{ "eval": "EVAL_SNIGEL_0"}],
|
|
7
7
|
"optIn": [{ "click": ".snigel-cmp-framework #accept-choices" }]
|
|
8
8
|
}
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"check": "any"
|
|
8
8
|
}],
|
|
9
9
|
"optIn": [
|
|
10
|
-
{ "eval": "
|
|
10
|
+
{ "eval": "EVAL_TARTEAUCITRON_1" }
|
|
11
11
|
],
|
|
12
12
|
"optOut": [
|
|
13
|
-
{ "eval": "
|
|
13
|
+
{ "eval": "EVAL_TARTEAUCITRON_0" }
|
|
14
14
|
],
|
|
15
15
|
"test": [
|
|
16
|
-
{ "eval": "
|
|
16
|
+
{ "eval": "EVAL_TARTEAUCITRON_2", "comment": "sometimes there are required categories, so we check that at least something is false" }
|
|
17
17
|
]
|
|
18
18
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Tealium",
|
|
3
3
|
"prehideSelectors": ["#__tealiumGDPRecModal,#__tealiumGDPRcpPrefs,#consent-layer"],
|
|
4
|
-
"detectCmp": [{ "visible": "#__tealiumGDPRecModal" }, { "eval": "
|
|
4
|
+
"detectCmp": [{ "visible": "#__tealiumGDPRecModal" }, { "eval": "EVAL_TEALIUM_0" }],
|
|
5
5
|
"detectPopup": [{ "visible": "#__tealiumGDPRecModal" }],
|
|
6
6
|
"optOut": [
|
|
7
7
|
{ "waitForThenClick": "#cm-acceptNone,.js-accept-essential-cookies", "timeout": 1000 },
|
|
8
|
-
{ "eval": "
|
|
8
|
+
{ "eval": "EVAL_TEALIUM_1" }
|
|
9
9
|
],
|
|
10
10
|
"optIn": [
|
|
11
11
|
{ "hide": ["#__tealiumGDPRecModal"] },
|
|
12
|
-
{ "eval": "
|
|
12
|
+
{ "eval": "EVAL_TEALIUM_2" }
|
|
13
13
|
],
|
|
14
14
|
"test": [
|
|
15
|
-
{ "eval": "
|
|
15
|
+
{ "eval": "EVAL_TEALIUM_3" }
|
|
16
16
|
]
|
|
17
17
|
}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
"prehideSelectors": ["#cmpBanner"],
|
|
4
4
|
"detectCmp": [{ "exists": "#cmpBanner" }],
|
|
5
5
|
"detectPopup": [{ "visible": "#cmpBanner" }],
|
|
6
|
-
"optIn": [{ "eval": "
|
|
6
|
+
"optIn": [{ "eval": "EVAL_THEFREEDICTIONARY_1" }],
|
|
7
7
|
"optOut": [
|
|
8
8
|
{
|
|
9
|
-
"eval": "
|
|
9
|
+
"eval": "EVAL_THEFREEDICTIONARY_0"
|
|
10
10
|
}
|
|
11
11
|
]
|
|
12
12
|
}
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
{ "waitForThenClick": "[data-testid=\"BottomBar\"] > div:has(>div:first-child>div:last-child>span[role=button]) > div:last-child > div[role=button]:last-child" }
|
|
18
18
|
],
|
|
19
19
|
"TODOtest": [
|
|
20
|
-
{ "eval": "
|
|
20
|
+
{ "eval": "EVAL_document.cookie.includes('d_prefs=MjoxLGNvbnNlbnRfdmVyc2lvbjoy')" }
|
|
21
21
|
]
|
|
22
22
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"detectCmp": [{ "exists": "#usercentrics-root" }],
|
|
4
4
|
"detectPopup": [
|
|
5
5
|
{
|
|
6
|
-
"eval": "
|
|
6
|
+
"eval": "EVAL_USERCENTRICS_API_0"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"exists": [
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
}
|
|
14
14
|
],
|
|
15
15
|
"optIn": [
|
|
16
|
-
{ "eval": "
|
|
17
|
-
{ "eval": "
|
|
18
|
-
{ "eval": "
|
|
16
|
+
{ "eval": "EVAL_USERCENTRICS_API_3" },
|
|
17
|
+
{ "eval": "EVAL_USERCENTRICS_API_1" },
|
|
18
|
+
{ "eval": "EVAL_USERCENTRICS_API_5" }
|
|
19
19
|
],
|
|
20
20
|
"optOut": [
|
|
21
|
-
{ "eval": "
|
|
22
|
-
{ "eval": "
|
|
21
|
+
{ "eval": "EVAL_USERCENTRICS_API_1" },
|
|
22
|
+
{ "eval": "EVAL_USERCENTRICS_API_2" }
|
|
23
23
|
],
|
|
24
|
-
"test": [{ "eval": "
|
|
24
|
+
"test": [{ "eval": "EVAL_USERCENTRICS_API_6" }]
|
|
25
25
|
}
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
"optOut": [
|
|
11
11
|
{ "click": "#usercentrics-button #uc-btn-deny-banner" }
|
|
12
12
|
],
|
|
13
|
-
"test": [{ "eval": "
|
|
13
|
+
"test": [{ "eval": "EVAL_USERCENTRICS_BUTTON_0" }]
|
|
14
14
|
}
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"wait": 200
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"eval": "
|
|
19
|
+
"eval": "EVAL_WAITROSE_0"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"click": "button[data-test=submit]"
|
|
23
23
|
}
|
|
24
24
|
],
|
|
25
25
|
"test": [
|
|
26
|
-
{"eval": "
|
|
26
|
+
{"eval": "EVAL_WAITROSE_1"}
|
|
27
27
|
]
|
|
28
28
|
}
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
"optIn": [ { "waitForThenClick": "#gdpr-cookie-consent-bar #cookie_action_accept" } ],
|
|
8
8
|
"optOut": [ { "waitForThenClick": "#gdpr-cookie-consent-bar #cookie_action_reject" } ],
|
|
9
9
|
"test": [
|
|
10
|
-
{ "eval": "
|
|
10
|
+
{ "eval": "EVAL_WP_COOKIE_NOTICE_0" }
|
|
11
11
|
]
|
|
12
12
|
}
|