@duckduckgo/autoconsent 1.0.8 → 2.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.cjs +14 -0
- package/.vscode/settings.json +7 -0
- package/Jenkinsfile +68 -39
- package/api.md +104 -0
- package/dist/autoconsent.cjs.js +1 -1387
- package/dist/autoconsent.esm.js +1 -1379
- package/dist/autoconsent.playwright.js +1 -0
- package/dist/autoconsent.standalone.js +1 -0
- package/lib/cmps/all.ts +15 -10
- package/lib/cmps/base.ts +91 -91
- package/lib/cmps/consentmanager.ts +31 -19
- package/lib/cmps/consentomatic.ts +89 -0
- package/lib/cmps/cookiebot.ts +58 -55
- package/lib/cmps/evidon.ts +29 -18
- package/lib/cmps/onetrust.ts +32 -20
- package/lib/cmps/sourcepoint-frame.ts +102 -0
- package/lib/cmps/sourcepoint-top.ts +47 -0
- package/lib/cmps/trustarc-frame.ts +115 -0
- package/lib/cmps/trustarc-top.ts +91 -0
- package/lib/consentomatic/index.ts +233 -70
- package/lib/{web/consentomatic → consentomatic}/tools.ts +0 -0
- package/lib/eval-handler.ts +58 -0
- package/lib/index.ts +0 -2
- package/lib/messages.ts +100 -0
- package/lib/rule-executors.ts +108 -0
- package/lib/rules.ts +82 -0
- package/lib/types.ts +35 -0
- package/lib/utils.ts +64 -0
- package/lib/web.ts +283 -74
- package/package.json +17 -14
- package/playwright/content.ts +27 -0
- package/playwright/runner.ts +131 -0
- package/playwright/standalone.ts +36 -0
- package/playwright.config.ts +7 -0
- package/readme.md +57 -47
- package/rollup.config.js +23 -15
- package/rules/autoconsent/baden-wuerttemberg-de.json +7 -3
- package/rules/autoconsent/bundesregierung-de.json +5 -1
- package/rules/autoconsent/cc-banner.json +0 -1
- package/rules/autoconsent/cookie-notice.json +0 -1
- package/rules/autoconsent/cookieconsent.json +5 -6
- package/rules/autoconsent/destatis-de.json +0 -1
- package/rules/autoconsent/etsy.json +3 -2
- package/rules/autoconsent/eu-cookie-compliance.json +0 -1
- package/rules/autoconsent/hl-co-uk.json +8 -9
- package/rules/autoconsent/johnlewis.json +5 -2
- package/rules/autoconsent/notice-cookie.json +0 -1
- package/rules/autoconsent/osano.json +0 -1
- package/rules/autoconsent/tealium.json +4 -5
- package/rules/rules.json +44 -37
- package/tests/192.spec.ts +1 -1
- package/tests/arzt-auskunft.spec.ts +1 -1
- package/tests/asus.spec.ts +1 -1
- package/tests/ausopen.spec.ts +1 -1
- package/tests/aws.amazon.spec.ts +1 -1
- package/tests/baden-wuerttemberg.spec.ts +1 -1
- package/tests/borlabs.spec.ts +1 -1
- package/tests/bundesregierung.spec.ts +5 -2
- package/tests/ccbanner.spec.ts +1 -1
- package/tests/consentmanager.spec.ts +3 -3
- package/tests/cookiebot.spec.ts +8 -2
- package/tests/cookieconsent.spec.ts +1 -1
- package/tests/cookielawinfo.spec.ts +1 -1
- package/tests/cookienotice.spec.ts +1 -1
- package/tests/corona-in-zahlen.spec.ts +1 -1
- package/tests/deepl.spec.ts +1 -1
- package/tests/destatis.spec.ts +1 -1
- package/tests/didomi.spec.ts +6 -2
- package/tests/drupal.spec.ts +8 -0
- package/tests/dunelm.spec.ts +1 -1
- package/tests/etsy.spec.ts +1 -1
- package/tests/eu-cookie-compliance-banner.spec.ts +1 -1
- package/tests/evidon.spec.ts +1 -1
- package/tests/fundingchoices.spec.ts +2 -1
- package/tests/gov-uk.spec.ts +1 -1
- package/tests/hl-co-uk.spec.ts +1 -1
- package/tests/hubspot.spec.ts +1 -1
- package/tests/ionos.spec.ts +1 -1
- package/tests/johnlewis.spec.ts +2 -2
- package/tests/klaro.spec.ts +1 -1
- package/tests/marksandspencer.spec.ts +1 -1
- package/tests/mediamarkt.spec.ts +1 -1
- package/tests/metoffice-gov-uk.spec.ts +1 -1
- package/tests/microsoft.spec.ts +1 -1
- package/tests/moneysavingexpert.spec.ts +1 -1
- package/tests/motor-talk.spec.ts +1 -1
- package/tests/national-lottery.spec.ts +1 -1
- package/tests/netflix.spec.ts +1 -1
- package/tests/nhs.spec.ts +1 -1
- package/tests/notice-cookie.spec.ts +1 -1
- package/tests/obi.spec.ts +1 -1
- package/tests/oil.spec.ts +1 -1
- package/tests/onetrust.spec.ts +10 -1
- package/tests/osano.spec.ts +1 -1
- package/tests/otto.spec.ts +1 -1
- package/tests/paypal.spec.ts +1 -1
- package/tests/quantcast.spec.ts +4 -1
- package/tests/snigel.spec.ts +1 -1
- package/tests/sourcepoint.spec.ts +8 -8
- package/tests/springer.spec.ts +1 -1
- package/tests/steampowered.spec.ts +1 -1
- package/tests/tealium.spec.ts +1 -1
- package/tests/testcmp.spec.ts +1 -1
- package/tests/thalia.spec.ts +1 -1
- package/tests/thefreedictionary.spec.ts +1 -1
- package/tests/trustarc.spec.ts +25 -4
- package/tests/usercentrics-1.spec.ts +1 -1
- package/tests/uswitch.spec.ts +1 -1
- package/tests/vodafone.spec.ts +1 -1
- package/tests/waitrose.spec.ts +1 -1
- package/tests/wetransfer.spec.ts +1 -1
- package/tests/wordpressgdpr.spec.ts +1 -1
- package/tests/xing.spec.ts +1 -1
- package/tsconfig.json +2 -2
- package/.eslintrc +0 -12
- package/cosmetics/rules.json +0 -110
- package/dist/autoconsent.puppet.js +0 -1078
- package/lib/cmps/all.js +0 -19
- package/lib/cmps/base.js +0 -174
- package/lib/cmps/consentmanager.js +0 -31
- package/lib/cmps/cookiebot.js +0 -77
- package/lib/cmps/evidon.js +0 -26
- package/lib/cmps/onetrust.js +0 -34
- package/lib/cmps/sourcepoint.js +0 -82
- package/lib/cmps/sourcepoint.ts +0 -95
- package/lib/cmps/trustarc.js +0 -106
- package/lib/cmps/trustarc.ts +0 -147
- package/lib/config.js +0 -1
- package/lib/consentomatic/index.js +0 -52
- package/lib/detector.js +0 -33
- package/lib/detector.ts +0 -34
- package/lib/hider.js +0 -13
- package/lib/hider.ts +0 -16
- package/lib/index.js +0 -4
- package/lib/messages.d.ts +0 -61
- package/lib/node.js +0 -35
- package/lib/node.ts +0 -43
- package/lib/puppet/tab.js +0 -121
- package/lib/puppet/tab.ts +0 -146
- package/lib/rules.d.ts +0 -80
- package/lib/tabwrapper.js +0 -67
- package/lib/tabwrapper.ts +0 -74
- package/lib/types.d.ts +0 -61
- package/lib/web/consentomatic/index.js +0 -188
- package/lib/web/consentomatic/index.ts +0 -249
- package/lib/web/consentomatic/tools.js +0 -177
- package/lib/web/content-utils.js +0 -29
- package/lib/web/content-utils.ts +0 -31
- package/lib/web/content.js +0 -89
- package/lib/web/content.ts +0 -80
- package/lib/web/tab.js +0 -112
- package/lib/web/tab.ts +0 -178
- package/lib/web.js +0 -95
- package/tests/runner.ts +0 -61
package/tests/snigel.spec.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import generateCMPTests from "
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
2
|
|
|
3
|
-
generateCMPTests('Sourcepoint', [
|
|
3
|
+
generateCMPTests('Sourcepoint-frame', [
|
|
4
4
|
'https://www.theguardian.com/',
|
|
5
5
|
'https://www.n-tv.de/',
|
|
6
6
|
'https://www.sueddeutsche.de/',
|
|
7
|
-
'https://news.sky.com/'
|
|
8
|
-
]
|
|
9
|
-
testSelfTest: false,
|
|
10
|
-
});
|
|
7
|
+
'https://news.sky.com/',
|
|
8
|
+
]);
|
|
11
9
|
|
|
12
|
-
generateCMPTests('Sourcepoint', [
|
|
10
|
+
generateCMPTests('Sourcepoint-frame', [
|
|
13
11
|
'https://www.insider.com/',
|
|
12
|
+
"https://www.brianmadden.com/",
|
|
13
|
+
"https://www.csoonline.com/blogs",
|
|
14
|
+
"https://www.independent.co.uk/",
|
|
14
15
|
], {
|
|
15
16
|
skipRegions: ["US", "GB"],
|
|
16
|
-
testSelfTest: false,
|
|
17
17
|
});
|
package/tests/springer.spec.ts
CHANGED
package/tests/tealium.spec.ts
CHANGED
package/tests/testcmp.spec.ts
CHANGED
package/tests/thalia.spec.ts
CHANGED
package/tests/trustarc.spec.ts
CHANGED
|
@@ -1,12 +1,33 @@
|
|
|
1
|
-
import generateCMPTests from "
|
|
2
|
-
import { test } from '@playwright/test';
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
3
2
|
|
|
4
|
-
generateCMPTests('TrustArc', [
|
|
3
|
+
generateCMPTests('TrustArc-top', [
|
|
4
|
+
'https://www.samsung.com/uk/smartphones/all-smartphones/',
|
|
5
|
+
], {
|
|
6
|
+
testOptOut: true,
|
|
7
|
+
testSelfTest: false,
|
|
8
|
+
skipRegions: ["US"]
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
generateCMPTests('TrustArc-top', [
|
|
5
12
|
'https://www.garmin.com/de-DE/',
|
|
13
|
+
], {
|
|
14
|
+
testOptOut: true,
|
|
15
|
+
testSelfTest: false,
|
|
16
|
+
skipRegions: ["US", "FR"]
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
generateCMPTests('TrustArc-frame', [
|
|
20
|
+
'https://www.garmin.com/de-DE/',
|
|
21
|
+
], {
|
|
22
|
+
testOptOut: true,
|
|
23
|
+
testSelfTest: false,
|
|
24
|
+
onlyRegions: ["FR"]
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
generateCMPTests('TrustArc-frame', [
|
|
6
28
|
'https://www.wish.com/',
|
|
7
29
|
'https://www.forbes.com/',
|
|
8
30
|
'https://www.starbucks.com/',
|
|
9
|
-
'https://www.samsung.com/uk/smartphones/all-smartphones/'
|
|
10
31
|
], {
|
|
11
32
|
testOptOut: true,
|
|
12
33
|
testSelfTest: false,
|
package/tests/uswitch.spec.ts
CHANGED
package/tests/vodafone.spec.ts
CHANGED
package/tests/waitrose.spec.ts
CHANGED
package/tests/wetransfer.spec.ts
CHANGED
package/tests/xing.spec.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
4
|
-
"typeRoots": ["node_modules/web-ext-types"],
|
|
3
|
+
"target": "es2021",
|
|
5
4
|
"resolveJsonModule": true,
|
|
6
5
|
"moduleResolution": "node",
|
|
7
6
|
"noImplicitAny": true,
|
|
7
|
+
"allowSyntheticDefaultImports": true
|
|
8
8
|
},
|
|
9
9
|
"exclude": [
|
|
10
10
|
"node_modules/*",
|
package/.eslintrc
DELETED
package/cosmetics/rules.json
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"static": [
|
|
3
|
-
"#disclaimer-cookies",
|
|
4
|
-
".cc-banner",
|
|
5
|
-
".cc_banner",
|
|
6
|
-
"#js-gdpr-consent-banner",
|
|
7
|
-
"#_evidon-barrier-wrapper",
|
|
8
|
-
"#_evidon_banner",
|
|
9
|
-
"#cookie-consent",
|
|
10
|
-
".cookie-modal",
|
|
11
|
-
".butterBar--privacy",
|
|
12
|
-
"#cookie_box",
|
|
13
|
-
".cookie-box",
|
|
14
|
-
".js-cookie-banner",
|
|
15
|
-
".m-basic-cookie-refresh",
|
|
16
|
-
".cookie-notice",
|
|
17
|
-
"#iubenda-cs-banner",
|
|
18
|
-
"div[data-veloute=\"cookie-disclaimer\"]",
|
|
19
|
-
"[aria-label=\"cookieconsent\"]",
|
|
20
|
-
"amp-user-notification",
|
|
21
|
-
"#cookie_consent",
|
|
22
|
-
"#cookieHint",
|
|
23
|
-
"#consentContainer",
|
|
24
|
-
"#Banner_cookie_0",
|
|
25
|
-
"#cookie-msg",
|
|
26
|
-
"#cookiesdirective",
|
|
27
|
-
"#__tealiumGDPRecModal",
|
|
28
|
-
"_evh-ric",
|
|
29
|
-
".trustarc-banner",
|
|
30
|
-
".truste-banner",
|
|
31
|
-
".eu-cookie-notice",
|
|
32
|
-
".x-cookies",
|
|
33
|
-
"#js-message-bar-cookie-notice",
|
|
34
|
-
".cookie-info-modal",
|
|
35
|
-
"#cookie-info-layer",
|
|
36
|
-
".module-cookie-layer",
|
|
37
|
-
"#cookie-modal",
|
|
38
|
-
"#element_cookie_banner",
|
|
39
|
-
".cookieBar:not(body)",
|
|
40
|
-
"#cookie-hint",
|
|
41
|
-
".expanded.gdpr",
|
|
42
|
-
"#BorlabsCookieBox",
|
|
43
|
-
"#hs-eu-cookie-confirmation",
|
|
44
|
-
".rxtcookiedisclaimer__container",
|
|
45
|
-
"#cookie-disclaimer",
|
|
46
|
-
"#cookie-notice",
|
|
47
|
-
"#catapult-cookie-bar",
|
|
48
|
-
"#cookies-overlay",
|
|
49
|
-
".gdprPopup",
|
|
50
|
-
".cookie-bar__module",
|
|
51
|
-
"#bfg-cookie-policy-banner-shim",
|
|
52
|
-
".eu-cookie-compliance-banner",
|
|
53
|
-
"#GDPR",
|
|
54
|
-
"#cookie-notification",
|
|
55
|
-
"body > #cookie",
|
|
56
|
-
"#st_gdpr_iframe",
|
|
57
|
-
".cookie-compliance",
|
|
58
|
-
".js-const__cookie-banner",
|
|
59
|
-
".cs-row__cookie-bar",
|
|
60
|
-
"div[id*=\"cookie_info_bar\"]",
|
|
61
|
-
".gdpr_note",
|
|
62
|
-
".cookiewarning:not(body):not(html)",
|
|
63
|
-
"#cookie-box",
|
|
64
|
-
".cookies--show",
|
|
65
|
-
".cookies-box",
|
|
66
|
-
".gdpr_popup:not(body):not(html)",
|
|
67
|
-
".cp-info-bar.container",
|
|
68
|
-
".cookiestrip",
|
|
69
|
-
".cookie-notification:not(body)",
|
|
70
|
-
".cookies-eu",
|
|
71
|
-
"#gdprCookieBanner",
|
|
72
|
-
"#cookies-banner",
|
|
73
|
-
"#sm-eu-cookie-banner",
|
|
74
|
-
".widget_eu_cookie_law_widget",
|
|
75
|
-
".Notices.PanelScrollerOff",
|
|
76
|
-
".cookie-policy-wrapper",
|
|
77
|
-
".fusion-privacy-bar",
|
|
78
|
-
"#gdpr-banner",
|
|
79
|
-
".alert-wrapper-cookie",
|
|
80
|
-
".recurly-gdpr",
|
|
81
|
-
"#cookiesNotification",
|
|
82
|
-
".cookies-alert",
|
|
83
|
-
".custom-cookie-banner",
|
|
84
|
-
".consent_container",
|
|
85
|
-
"div[class^=\"cookie_notice-\"]",
|
|
86
|
-
"#cookiereminder",
|
|
87
|
-
"#cookieNotice",
|
|
88
|
-
".notice-cookies",
|
|
89
|
-
"#cookie-banner",
|
|
90
|
-
".cookies-notify",
|
|
91
|
-
"#wpca-bar",
|
|
92
|
-
"#cookie-law",
|
|
93
|
-
".cookie-text",
|
|
94
|
-
".cp-banner",
|
|
95
|
-
"#cookie-message",
|
|
96
|
-
".cookies-acceptance-wrapper-common",
|
|
97
|
-
"#privacy_widget",
|
|
98
|
-
"#cookieInformerBooklet",
|
|
99
|
-
".cookie_section",
|
|
100
|
-
".cookies-popup",
|
|
101
|
-
".kth-toast--bottom",
|
|
102
|
-
".SiteWideCookie"
|
|
103
|
-
],
|
|
104
|
-
"site": {
|
|
105
|
-
"medium.com": [
|
|
106
|
-
"div > .branch-journeys-top"
|
|
107
|
-
],
|
|
108
|
-
"tommy.de": []
|
|
109
|
-
}
|
|
110
|
-
}
|