@duckduckgo/autoconsent 4.0.0 → 4.1.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/.github/ISSUE_TEMPLATE/broken-site-issue.md +29 -0
- package/CHANGELOG.md +39 -0
- package/Jenkinsfile +2 -2
- package/api.md +10 -1
- package/dist/addon-firefox/background.bundle.js +312 -1
- package/dist/addon-firefox/content.bundle.js +1912 -1
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/rules.json +174 -38
- package/dist/addon-mv3/background.bundle.js +312 -1
- package/dist/addon-mv3/content.bundle.js +1912 -1
- package/dist/addon-mv3/devtools/background.html +10 -0
- package/dist/addon-mv3/devtools/bulma.min.css +1 -0
- package/dist/addon-mv3/devtools/loader.js +2 -0
- package/dist/addon-mv3/devtools/panel.html +88 -0
- package/dist/addon-mv3/devtools/panel.js +148 -0
- package/dist/addon-mv3/devtools/panel.ts +145 -0
- package/dist/addon-mv3/manifest.json +5 -3
- package/dist/addon-mv3/popup.bundle.js +173 -1
- package/dist/addon-mv3/popup.html +14 -0
- package/dist/addon-mv3/rules.json +174 -38
- package/dist/autoconsent.cjs.js +1 -1
- package/dist/autoconsent.esm.js +1 -1
- package/dist/autoconsent.playwright.js +1 -1
- package/lib/cmps/airbnb.ts +4 -0
- package/lib/cmps/base.ts +8 -0
- package/lib/cmps/consentmanager.ts +4 -0
- package/lib/cmps/consentomatic.ts +1 -0
- package/lib/cmps/conversant.ts +4 -0
- package/lib/cmps/cookiebot.ts +4 -0
- package/lib/cmps/evidon.ts +4 -0
- package/lib/cmps/klaro.ts +4 -0
- package/lib/cmps/onetrust.ts +4 -0
- package/lib/cmps/sourcepoint-frame.ts +4 -0
- package/lib/cmps/tiktok.ts +4 -0
- package/lib/cmps/trustarc-frame.ts +4 -0
- package/lib/cmps/trustarc-top.ts +4 -0
- package/lib/cmps/uniconsent.ts +4 -0
- package/lib/eval-handler.ts +2 -6
- package/lib/messages.ts +44 -13
- package/lib/random.ts +6 -0
- package/lib/rules.ts +2 -1
- package/lib/types.ts +27 -0
- package/lib/web.ts +127 -82
- package/package.json +4 -3
- package/playwright/runner.ts +1 -0
- package/rollup.config.js +18 -5
- package/rules/autoconsent/ausopen.json +2 -2
- package/rules/autoconsent/baden-wuerttemberg-de.json +1 -0
- package/rules/autoconsent/cc-banner.json +1 -0
- package/rules/autoconsent/complianz-notice.json +1 -0
- package/rules/autoconsent/cookie-notice.json +2 -1
- package/rules/autoconsent/dsgvo.json +1 -0
- package/rules/autoconsent/eu-cookie-compliance.json +1 -1
- package/rules/autoconsent/eu-cookie-law.json +1 -0
- package/rules/autoconsent/ezoic.json +1 -0
- package/rules/autoconsent/generic-cosmetic.json +9 -0
- package/rules/autoconsent/indeed-com.json +9 -0
- package/rules/autoconsent/jquery-cookiebar.json +1 -0
- package/rules/autoconsent/marksandspencer.json +2 -2
- package/rules/autoconsent/notice-cookie.json +1 -0
- package/rules/autoconsent/osano.json +1 -0
- package/rules/autoconsent/pornhub.json +12 -0
- package/rules/autoconsent/testcmp-cosmetic.json +18 -0
- package/rules/autoconsent/uk-cookie-consent.json +1 -0
- package/rules/autoconsent/xnxx-com.json +9 -0
- package/rules/rules.json +174 -38
- package/tests/borlabs.spec.ts +1 -1
- package/tests/complianz-optin.spec.ts +4 -4
- package/tests/cookie-notice.spec.ts +3 -1
- package/tests/cookiebot.spec.ts +0 -4
- package/tests/cookieinformation.spec.ts +0 -1
- package/tests/dsgvo.spec.ts +4 -1
- package/tests/evidon.spec.ts +2 -4
- package/tests/ezoic.spec.ts +0 -1
- package/tests/fundingchoices.spec.ts +0 -1
- package/tests/generic-cosmetic.spec.ts +11 -0
- package/tests/indeed.spec.ts +7 -0
- package/tests/moove.spec.ts +0 -6
- package/tests/pornhub.spec.ts +7 -0
- package/tests/pubtech.spec.ts +0 -1
- package/tests/reddit.spec.ts +1 -1
- package/tests/sibbo.spec.ts +0 -1
- package/tests/sirdata.spec.ts +0 -1
- package/tests/testcmp-banner.spec.ts +5 -0
- package/tests/trustarc.spec.ts +0 -2
- package/tests/uniconsent.spec.ts +1 -1
- package/tests/usercentrics-api.spec.ts +1 -0
- package/tests/usercentrics-button.spec.ts +0 -1
- package/tests/xnxx.spec.ts +8 -0
- package/tsconfig.json +2 -1
- package/rules/autoconsent/motor-talk-de.json +0 -24
- package/tests/motor-talk.spec.ts +0 -7
package/tests/cookiebot.spec.ts
CHANGED
|
@@ -5,12 +5,8 @@ generateCMPTests('Cybotcookiebot', [
|
|
|
5
5
|
'https://www.zwilling.com/de/',
|
|
6
6
|
'https://forums.cpanel.net/',
|
|
7
7
|
'https://tfl.gov.uk',
|
|
8
|
-
|
|
9
8
|
// "https://www.ab-in-den-urlaub.de/", // often blocked by botwall
|
|
10
|
-
|
|
11
|
-
"https://www.centralpoint.nl/",
|
|
12
9
|
"https://www.vatera.hu/",
|
|
13
|
-
"https://www.smartsheet.com/",
|
|
14
10
|
], {
|
|
15
11
|
skipRegions: ['US']
|
|
16
12
|
});
|
package/tests/dsgvo.spec.ts
CHANGED
|
@@ -3,4 +3,7 @@ import generateCMPTests from "../playwright/runner";
|
|
|
3
3
|
generateCMPTests('WP DSGVO Tools', [
|
|
4
4
|
'https://ccmedia.ch/',
|
|
5
5
|
'https://rlalpbsl.web.belwue.de/',
|
|
6
|
-
|
|
6
|
+
// 'https://www.mathe-lerntipps.de/', // https://github.com/duckduckgo/autoconsent/issues/80
|
|
7
|
+
], {
|
|
8
|
+
skipRegions: ['US']
|
|
9
|
+
});
|
package/tests/evidon.spec.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import generateCMPTests from "../playwright/runner";
|
|
2
2
|
|
|
3
3
|
generateCMPTests('Evidon', [
|
|
4
|
-
'https://www.
|
|
5
|
-
]);
|
|
6
|
-
|
|
7
|
-
generateCMPTests('Evidon', [
|
|
4
|
+
'https://www.crunchyroll.com/',
|
|
8
5
|
'https://www.kia.com/us/en', // "I agree" button is actually a decline button
|
|
9
6
|
], {
|
|
10
7
|
testOptIn: false,
|
|
8
|
+
skipRegions: ['US']
|
|
11
9
|
});
|
package/tests/ezoic.spec.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import generateCMPTests from "../playwright/runner";
|
|
2
|
+
|
|
3
|
+
generateCMPTests('generic-cosmetic', [
|
|
4
|
+
'https://www.ama.org/',
|
|
5
|
+
'https://www.migros.ch/de',
|
|
6
|
+
'https://www.android.com/',
|
|
7
|
+
'https://www.google.com/chrome/index.html',
|
|
8
|
+
], {
|
|
9
|
+
testOptIn: false,
|
|
10
|
+
onlyRegions: ['US'],
|
|
11
|
+
});
|
package/tests/moove.spec.ts
CHANGED
package/tests/pubtech.spec.ts
CHANGED
package/tests/reddit.spec.ts
CHANGED
package/tests/sibbo.spec.ts
CHANGED
package/tests/sirdata.spec.ts
CHANGED
package/tests/trustarc.spec.ts
CHANGED
package/tests/uniconsent.spec.ts
CHANGED
package/tsconfig.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "motor-talk.de",
|
|
3
|
-
"prehideSelectors": [".mt-cc-bnnr__wrapper"],
|
|
4
|
-
"detectCmp": [
|
|
5
|
-
{
|
|
6
|
-
"exists": ".mt-cc-bnnr"
|
|
7
|
-
}
|
|
8
|
-
],
|
|
9
|
-
"detectPopup": [
|
|
10
|
-
{
|
|
11
|
-
"visible": ".mt-cc-bnnr__wrapper"
|
|
12
|
-
}
|
|
13
|
-
],
|
|
14
|
-
"optIn": [
|
|
15
|
-
{
|
|
16
|
-
"click": ".mt-cc-bnnr__button-main"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"optOut": [
|
|
20
|
-
{
|
|
21
|
-
"click": ".mt-cc-bnnr__decline-link"
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|