@duckduckgo/autoconsent 2.1.0 → 2.2.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/Jenkinsfile +1 -1
- package/dist/addon-firefox/background.bundle.js +1 -1
- package/dist/addon-firefox/content.bundle.js +1 -1
- package/dist/addon-firefox/manifest.json +32 -0
- package/dist/addon-firefox/rules.json +905 -54
- package/dist/addon-mv3/background.bundle.js +1 -1
- package/dist/addon-mv3/content.bundle.js +1 -1
- package/dist/addon-mv3/manifest.json +34 -0
- package/dist/addon-mv3/rules.json +905 -54
- package/dist/autoconsent.cjs.js +1 -1
- package/dist/autoconsent.esm.js +1 -1
- package/dist/autoconsent.playwright.js +1 -1
- package/lib/cmps/all.ts +7 -0
- package/lib/cmps/base.ts +37 -24
- package/lib/cmps/consentmanager.ts +27 -4
- package/lib/cmps/conversant.ts +60 -0
- package/lib/cmps/klaro.ts +66 -0
- package/lib/cmps/sourcepoint-frame.ts +9 -8
- package/lib/cmps/sourcepoint-top.ts +5 -0
- package/lib/cmps/uniconsent.ts +70 -0
- package/lib/rules.ts +8 -1
- package/lib/web.ts +35 -25
- package/package.json +1 -1
- package/readme.md +29 -0
- package/rollup.config.js +10 -2
- package/rules/autoconsent/adroll.json +11 -0
- package/rules/autoconsent/affinity-serif-com.json +40 -0
- package/rules/autoconsent/aws-amazon.json +6 -1
- package/rules/autoconsent/axeptio.json +41 -0
- package/rules/autoconsent/clickio.json +18 -0
- package/rules/autoconsent/complianz-banner.json +13 -0
- package/rules/autoconsent/complianz-categories.json +17 -0
- package/rules/autoconsent/complianz-notice.json +14 -0
- package/rules/autoconsent/complianz-optin.json +20 -0
- package/rules/autoconsent/cookie-notice.json +3 -1
- package/rules/autoconsent/cookieinformation.json +14 -0
- package/rules/autoconsent/dsgvo.json +16 -0
- package/rules/autoconsent/eu-cookie-law.json +20 -0
- package/rules/autoconsent/ezoic.json +19 -0
- package/rules/autoconsent/iubenda.json +23 -0
- package/rules/autoconsent/jquery-cookiebar.json +25 -0
- package/rules/autoconsent/mediavine.json +20 -0
- package/rules/autoconsent/monzo-com.json +22 -0
- package/rules/autoconsent/moove.json +28 -0
- package/rules/autoconsent/paypal.json +4 -1
- package/rules/autoconsent/primebox.json +19 -0
- package/rules/autoconsent/sirdata.json +11 -0
- package/rules/autoconsent/tarteaucitron.json +18 -0
- package/rules/autoconsent/tealium.json +0 -1
- package/rules/autoconsent/termly.json +31 -0
- package/rules/autoconsent/testcmp.json +4 -1
- package/rules/autoconsent/uk-cookie-consent.json +15 -0
- package/rules/autoconsent/{usercentrics-1.json → usercentrics-api.json} +2 -2
- package/rules/autoconsent/usercentrics-button.json +14 -0
- package/rules/autoconsent/vodafone-de.json +5 -5
- package/rules/autoconsent/wp-cookie-notice.json +12 -0
- package/rules/rules.json +905 -54
- package/tests/adroll.spec.ts +15 -0
- package/tests/affinity-serif-com.spec.ts +5 -0
- package/tests/axeptio.spec.ts +9 -0
- package/tests/clickio.spec.ts +10 -0
- package/tests/complianz-banner.spec.ts +9 -0
- package/tests/complianz-categories.spec.ts +14 -0
- package/tests/{cookieconsent.spec.ts → complianz-notice.spec.ts} +1 -2
- package/tests/complianz-optin.spec.ts +6 -0
- package/tests/consentmanager.spec.ts +2 -1
- package/tests/conversant.spec.ts +10 -0
- package/tests/{cookienotice.spec.ts → cookie-notice.spec.ts} +0 -0
- package/tests/cookieinformation.spec.ts +10 -0
- package/tests/dsgvo.spec.ts +6 -0
- package/tests/eu-cookie-law.spec.ts +6 -0
- package/tests/ezoic.spec.ts +8 -0
- package/tests/iubenda.spec.ts +8 -0
- package/tests/jquery-cookiebar.spec.ts +6 -0
- package/tests/klaro.spec.ts +6 -2
- package/tests/mediavine.spec.ts +8 -0
- package/tests/monzo-com.spec.ts +5 -0
- package/tests/moove.spec.ts +13 -0
- package/tests/onetrust.spec.ts +2 -2
- package/tests/primebox.spec.ts +7 -0
- package/tests/sirdata.spec.ts +8 -0
- package/tests/tarteaucitron.spec.ts +9 -0
- package/tests/tealium.spec.ts +1 -1
- package/tests/termly.spec.ts +12 -0
- package/tests/trustarc.spec.ts +1 -9
- package/tests/uk-cookie-consent.spec.ts +7 -0
- package/tests/uniconsent.spec.ts +12 -0
- package/tests/{usercentrics-1.spec.ts → usercentrics-api.spec.ts} +3 -2
- package/tests/usercentrics-button.spec.ts +8 -0
- package/tests/wp-cookie-notice.spec.ts +8 -0
- package/rules/autoconsent/cookieconsent.json +0 -8
- package/rules/autoconsent/destatis-de.json +0 -8
- package/rules/autoconsent/klaro.json +0 -10
- package/tests/destatis.spec.ts +0 -7
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
|
+
|
|
3
|
+
generateCMPTests('Adroll', [
|
|
4
|
+
'https://www.adroll.com/',
|
|
5
|
+
'https://www.appliancewhse.com/',
|
|
6
|
+
'https://www.michiganhumane.org/',
|
|
7
|
+
'https://audioplugin.deals/',
|
|
8
|
+
'https://www.mhu.edu/',
|
|
9
|
+
], {
|
|
10
|
+
skipRegions: ['US']
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
generateCMPTests('Adroll', [
|
|
14
|
+
'https://agoraeufalo.mykajabi.com/',
|
|
15
|
+
], {});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
|
+
|
|
3
|
+
generateCMPTests('Complianz categories', [
|
|
4
|
+
'https://www.expatica.com/de',
|
|
5
|
+
'https://carnavaldecadiztv.com/',
|
|
6
|
+
], {
|
|
7
|
+
skipRegions: ['GB']
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
generateCMPTests('Complianz categories', [
|
|
11
|
+
'https://hypotheses.org/',
|
|
12
|
+
], {
|
|
13
|
+
skipRegions: ['US', 'GB']
|
|
14
|
+
});
|
|
@@ -3,8 +3,9 @@ import generateCMPTests from "../playwright/runner";
|
|
|
3
3
|
generateCMPTests('consentmanager.net',
|
|
4
4
|
[
|
|
5
5
|
// 'https://sourceforge.net/', // disabled because of a botwall
|
|
6
|
-
|
|
6
|
+
'https://www.dastelefonbuch.de/',
|
|
7
7
|
'https://www.history.de/',
|
|
8
|
+
'https://www.consentmanager.net/',
|
|
8
9
|
]
|
|
9
10
|
, {
|
|
10
11
|
skipRegions: ["US", "GB"]
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
|
+
|
|
3
|
+
generateCMPTests('Cookie Information Banner', [
|
|
4
|
+
'https://water.org/',
|
|
5
|
+
// 'https://www.phaseone.com/', // appears only on user iteraction
|
|
6
|
+
'https://www.georgjensen.com/',
|
|
7
|
+
'https://www.power.no/',
|
|
8
|
+
'https://www.yourhearing.com/',
|
|
9
|
+
], {}
|
|
10
|
+
);
|
package/tests/klaro.spec.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import generateCMPTests from "../playwright/runner";
|
|
2
2
|
|
|
3
|
-
generateCMPTests('
|
|
4
|
-
'https://heyklaro.com/'
|
|
3
|
+
generateCMPTests('Klaro', [
|
|
4
|
+
'https://heyklaro.com/',
|
|
5
|
+
'https://www.zeitraum-moebel.de/',
|
|
6
|
+
'https://repisalud.isciii.es/',
|
|
7
|
+
'https://www.innogames.com/',
|
|
8
|
+
// 'https://dspace.library.stonybrook.edu', // polyfills Promise so playwright doesn't work
|
|
5
9
|
]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
|
+
|
|
3
|
+
generateCMPTests('Moove', [
|
|
4
|
+
'https://impact.parkinson.org/',
|
|
5
|
+
'https://wamu.org/',
|
|
6
|
+
'https://www.phorest.com/',
|
|
7
|
+
], {});
|
|
8
|
+
|
|
9
|
+
generateCMPTests('Moove', [
|
|
10
|
+
'https://www.yourcloudlibrary.com/',
|
|
11
|
+
], {
|
|
12
|
+
skipRegions: ['US', 'GB']
|
|
13
|
+
});
|
package/tests/onetrust.spec.ts
CHANGED
|
@@ -9,7 +9,7 @@ generateCMPTests('Onetrust', [
|
|
|
9
9
|
]);
|
|
10
10
|
|
|
11
11
|
generateCMPTests('Onetrust', [
|
|
12
|
-
'https://mailchimp.com/',
|
|
12
|
+
// 'https://mailchimp.com/', // polyfills Promise so playwright doesn't work
|
|
13
13
|
"https://www.accenture.com/",
|
|
14
14
|
'https://www.zoom.us',
|
|
15
15
|
], {
|
|
@@ -18,7 +18,7 @@ generateCMPTests('Onetrust', [
|
|
|
18
18
|
|
|
19
19
|
// opt-in is not necessary in the US on this sites
|
|
20
20
|
generateCMPTests('Onetrust', [
|
|
21
|
-
'https://mailchimp.com/',
|
|
21
|
+
// 'https://mailchimp.com/', // polyfills Promise so playwright doesn't work
|
|
22
22
|
"https://www.accenture.com/",
|
|
23
23
|
'https://www.zoom.us',
|
|
24
24
|
], {
|
package/tests/tealium.spec.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import generateCMPTests from "../playwright/runner";
|
|
2
2
|
|
|
3
3
|
generateCMPTests('Tealium', [
|
|
4
|
-
'https://www.bahn.de/',
|
|
4
|
+
// 'https://www.bahn.de/', // uses shadow DOM, see https://app.asana.com/0/1201844467387842/1202635343225979/f
|
|
5
5
|
'https://www.lufthansa.com/de/en/homepage',
|
|
6
6
|
]);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
|
+
|
|
3
|
+
generateCMPTests('Termly', [
|
|
4
|
+
'https://itsalovelylife.com/',
|
|
5
|
+
'https://www.iccsafe.org/',
|
|
6
|
+
], {});
|
|
7
|
+
|
|
8
|
+
generateCMPTests('Termly', [
|
|
9
|
+
'https://visualsbyimpulse.com/',
|
|
10
|
+
], {
|
|
11
|
+
skipRegions: ['DE']
|
|
12
|
+
});
|
package/tests/trustarc.spec.ts
CHANGED
|
@@ -13,15 +13,7 @@ generateCMPTests('TrustArc-top', [
|
|
|
13
13
|
], {
|
|
14
14
|
testOptOut: true,
|
|
15
15
|
testSelfTest: false,
|
|
16
|
-
skipRegions: ["US"
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
generateCMPTests('TrustArc-frame', [
|
|
20
|
-
'https://www.garmin.com/de-DE/',
|
|
21
|
-
], {
|
|
22
|
-
testOptOut: true,
|
|
23
|
-
testSelfTest: false,
|
|
24
|
-
onlyRegions: ["FR"]
|
|
16
|
+
skipRegions: ["US"]
|
|
25
17
|
});
|
|
26
18
|
|
|
27
19
|
generateCMPTests('TrustArc-frame', [
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
|
+
|
|
3
|
+
generateCMPTests('Uniconsent', [
|
|
4
|
+
'https://sport-stimme.de/',
|
|
5
|
+
'https://www.sharethrough.com/',
|
|
6
|
+
], {});
|
|
7
|
+
|
|
8
|
+
generateCMPTests('Uniconsent', [
|
|
9
|
+
'https://www.vivobarefoot.com/eu/',
|
|
10
|
+
], {
|
|
11
|
+
skipRegions: ['US']
|
|
12
|
+
});
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import generateCMPTests from "../playwright/runner";
|
|
2
2
|
|
|
3
|
-
generateCMPTests('usercentrics-
|
|
3
|
+
generateCMPTests('usercentrics-api', [
|
|
4
4
|
'https://hornbach.de',
|
|
5
|
-
'https://dm.de'
|
|
5
|
+
'https://dm.de',
|
|
6
|
+
'https://usercentrics.com/',
|
|
6
7
|
], {
|
|
7
8
|
skipRegions: ["US", "GB", "FR"]
|
|
8
9
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cookieconsent",
|
|
3
|
-
"prehideSelectors": ["[aria-label=\"cookieconsent\"][aria-describedby=\"cookieconsent:desc\"]"],
|
|
4
|
-
"detectCmp": [{ "exists": "[aria-label=\"cookieconsent\"][aria-describedby=\"cookieconsent:desc\"]" }],
|
|
5
|
-
"detectPopup": [{ "visible": "[aria-label=\"cookieconsent\"][aria-describedby=\"cookieconsent:desc\"]" }],
|
|
6
|
-
"optIn": [{ "click": ".cc-dismiss" }],
|
|
7
|
-
"optOut": [{ "hide": ["[aria-label=\"cookieconsent\"][aria-describedby=\"cookieconsent:desc\"]"] }]
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "destatis.de",
|
|
3
|
-
"prehideSelectors": ["div[aria-labelledby=cookiebannerhead]"],
|
|
4
|
-
"detectCmp": [{ "exists": ".cookiebannerbox" }],
|
|
5
|
-
"detectPopup": [{ "visible": ".cookiebannerbox" }],
|
|
6
|
-
"optOut": [{ "hide": [".cookiebannerbox"] }],
|
|
7
|
-
"optIn": [{ "click": [".cookiebannerbox .close"] }]
|
|
8
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "klaro",
|
|
3
|
-
"detectCmp": [{ "exists": ".klaro > .cookie-notice" }],
|
|
4
|
-
"detectPopup": [{ "visible": ".klaro > .cookie-notice" }],
|
|
5
|
-
"optIn": [{ "click": ".cm-btn-success" }],
|
|
6
|
-
"optOut": [{ "click": ".cn-decline" }],
|
|
7
|
-
"test": [
|
|
8
|
-
{ "eval": "Object.values(klaro.getManager().consents).every(c => !c)" }
|
|
9
|
-
]
|
|
10
|
-
}
|