@duckduckgo/autoconsent 18.2.0 → 18.4.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/CHANGELOG.md +122 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +92 -36
- 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/content.bundle.js +92 -36
- 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.cjs.js +92 -36
- package/dist/autoconsent.esm.js +92 -36
- package/dist/autoconsent.playwright.js +92 -36
- package/dist/autoconsent.standalone.js +93 -37
- package/dist/heuristics.cjs.js +92 -38
- package/dist/heuristics.mjs +92 -37
- package/dist/types/heuristic-patterns.d.ts +0 -1
- package/lib/heuristic-literals.ts +39 -12
- package/lib/heuristic-negatives.ts +0 -9
- package/lib/heuristic-patterns.ts +54 -16
- package/package.json +1 -1
- package/rules/autoconsent/adaptivemedia.json +30 -0
- package/rules/autoconsent/adeac-jp.json +29 -0
- package/rules/autoconsent/agenziaentrate-geoportale.json +35 -0
- package/rules/autoconsent/alertnotification-alert-bar.json +27 -0
- package/rules/autoconsent/amasty-gdpr-hyva.json +6 -6
- package/rules/autoconsent/amasty-gdpr-sidebar.json +61 -0
- package/rules/autoconsent/arena-pl.json +16 -0
- package/rules/autoconsent/bannercookie-dashboard.json +10 -0
- package/rules/autoconsent/betheme.json +10 -0
- package/rules/autoconsent/biblia-online.pl.json +40 -0
- package/rules/autoconsent/bitauto.json +57 -0
- package/rules/autoconsent/blastingnews.json +36 -0
- package/rules/autoconsent/bn-org-pl.json +37 -0
- package/rules/autoconsent/bt-com-au.json +13 -0
- package/rules/autoconsent/calclife.net.json +43 -0
- package/rules/autoconsent/casino-guru.json +28 -0
- package/rules/autoconsent/ccconsent-holder.json +56 -0
- package/rules/autoconsent/cloudcms-cookie-alert-notice.json +12 -0
- package/rules/autoconsent/cloudcms-cookie-alert.json +13 -0
- package/rules/autoconsent/code3-cookies-consent.json +48 -0
- package/rules/autoconsent/complianz-opt-out.json +7 -2
- package/rules/autoconsent/cookie-button-basic.json +47 -0
- package/rules/autoconsent/cookie-use-notice.json +12 -0
- package/rules/autoconsent/cookieinfo-zamknij.json +30 -0
- package/rules/autoconsent/cookiesbanner-preference.json +14 -0
- package/rules/autoconsent/cookiesck.json +31 -0
- package/rules/autoconsent/cookiesmodal-pl.json +18 -0
- package/rules/autoconsent/creditunionsa.json +12 -0
- package/rules/autoconsent/cstudios.json +35 -0
- package/rules/autoconsent/dandomain.json +41 -0
- package/rules/autoconsent/datezone.json +22 -0
- package/rules/autoconsent/didomi.json +5 -0
- package/rules/autoconsent/dlibra.json +32 -0
- package/rules/autoconsent/dnb.json +30 -0
- package/rules/autoconsent/doc24-ch.json +33 -0
- package/rules/autoconsent/e-file.json +44 -0
- package/rules/autoconsent/erli-pl.json +36 -0
- package/rules/autoconsent/ernesto.json +30 -0
- package/rules/autoconsent/eu-cookie-compliance-legacy.json +15 -0
- package/rules/autoconsent/fellow-pl.json +16 -0
- package/rules/autoconsent/fn-se.json +17 -0
- package/rules/autoconsent/fora-se.json +13 -0
- package/rules/autoconsent/fusedeck.json +38 -0
- package/rules/autoconsent/gjerrigknark.json +38 -0
- package/rules/autoconsent/hemsol.se.json +22 -0
- package/rules/autoconsent/historiskatlas.dk.json +35 -0
- package/rules/autoconsent/hmi-basen-dk.json +27 -0
- package/rules/autoconsent/icom-co-jp.json +34 -0
- package/rules/autoconsent/intermedia-cms-fsi.json +30 -0
- package/rules/autoconsent/jobbland.json +17 -0
- package/rules/autoconsent/kadokawa-ascii.json +34 -0
- package/rules/autoconsent/kglakademi.json +37 -0
- package/rules/autoconsent/kredittbanken.json +14 -0
- package/rules/autoconsent/lieder.net.json +13 -0
- package/rules/autoconsent/matspar-se.json +34 -0
- package/rules/autoconsent/menti-com.json +37 -0
- package/rules/autoconsent/mitrejsevejr.dk.json +13 -0
- package/rules/autoconsent/morgenlevering.no.json +46 -0
- package/rules/autoconsent/mos-cudzoziemcy-gov-pl.json +29 -0
- package/rules/autoconsent/multicalcolo.json +37 -0
- package/rules/autoconsent/nutri.se.json +40 -0
- package/rules/autoconsent/octoparse.json +33 -0
- package/rules/autoconsent/onecall-no.json +44 -0
- package/rules/autoconsent/oresundstag.json +40 -0
- package/rules/autoconsent/peppes.json +38 -0
- package/rules/autoconsent/planteportalen-no.json +32 -0
- package/rules/autoconsent/renaud-bray.json +44 -0
- package/rules/autoconsent/saos-org-pl.json +35 -0
- package/rules/autoconsent/shopgold.json +83 -0
- package/rules/autoconsent/shueisha-hpplus.json +27 -0
- package/rules/autoconsent/sian-it.json +35 -0
- package/rules/autoconsent/skisport.json +22 -0
- package/rules/autoconsent/skogforsk.json +9 -0
- package/rules/autoconsent/skovborghogh-cookies.json +17 -0
- package/rules/autoconsent/sportstiming.json +37 -0
- package/rules/autoconsent/squarespace-cookie-banner.json +3 -3
- package/rules/autoconsent/synergy-net-au.json +33 -0
- package/rules/autoconsent/teeshoppen.json +42 -0
- package/rules/autoconsent/tullys-jp.json +11 -0
- package/rules/autoconsent/vardgivarguiden.json +45 -0
- package/rules/autoconsent/wbd-consent-modal.json +54 -0
- package/rules/autoconsent/welcome-city-yokohama.json +75 -0
- package/rules/autoconsent/wordpress-wordads.json +20 -0
- package/rules/autoconsent/worldbank.json +5 -5
- package/rules/autoconsent/wuerth.json +57 -0
- package/rules/autoconsent/ynjn.json +34 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/adaptivemedia.spec.ts +3 -0
- package/tests/adeac-jp.spec.ts +3 -0
- package/tests/agenziaentrate-geoportale.spec.ts +5 -0
- package/tests/alertnotification-alert-bar.spec.ts +11 -0
- package/tests/amasty-gdpr-hyva.spec.ts +1 -0
- package/tests/amasty-gdpr-sidebar.spec.ts +16 -0
- package/tests/arena-pl.spec.ts +3 -0
- package/tests/bannercookie-dashboard.spec.ts +3 -0
- package/tests/betheme.spec.ts +9 -0
- package/tests/biblia-online.pl.spec.ts +3 -0
- package/tests/bitauto.spec.ts +3 -0
- package/tests/blastingnews.spec.ts +3 -0
- package/tests/bn-org-pl.spec.ts +3 -0
- package/tests/bt-com-au.spec.ts +3 -0
- package/tests/calclife.net.spec.ts +3 -0
- package/tests/casino-guru.spec.ts +15 -0
- package/tests/ccconsent-holder.spec.ts +11 -0
- package/tests/cloudcms-cookie-alert-notice.spec.ts +10 -0
- package/tests/cloudcms-cookie-alert.spec.ts +6 -0
- package/tests/code3-cookies-consent.spec.ts +8 -0
- package/tests/complianz-opt-out.spec.ts +13 -3
- package/tests/cookie-button-basic.spec.ts +9 -0
- package/tests/cookie-use-notice.spec.ts +6 -0
- package/tests/cookieinfo-zamknij.spec.ts +3 -0
- package/tests/cookiesbanner-preference.spec.ts +8 -0
- package/tests/cookiesck.spec.ts +5 -0
- package/tests/cookiesmodal-pl.spec.ts +3 -0
- package/tests/creditunionsa.spec.ts +3 -0
- package/tests/cstudios.spec.ts +3 -0
- package/tests/dandomain.spec.ts +18 -0
- package/tests/datezone.spec.ts +3 -0
- package/tests/didomi.spec.ts +9 -0
- package/tests/dlibra.spec.ts +8 -0
- package/tests/dnb.spec.ts +5 -0
- package/tests/doc24-ch.spec.ts +3 -0
- package/tests/e-file.spec.ts +9 -0
- package/tests/erli-pl.spec.ts +4 -0
- package/tests/ernesto.spec.ts +8 -0
- package/tests/eu-cookie-compliance-legacy.spec.ts +8 -0
- package/tests/fellow-pl.spec.ts +5 -0
- package/tests/fn-se.spec.ts +3 -0
- package/tests/fora-se.spec.ts +3 -0
- package/tests/fusedeck.spec.ts +9 -0
- package/tests/gjerrigknark.spec.ts +6 -0
- package/tests/hemsol.se.spec.ts +3 -0
- package/tests/historiskatlas.dk.spec.ts +3 -0
- package/tests/hmi-basen-dk.spec.ts +5 -0
- package/tests/icom-co-jp.spec.ts +3 -0
- package/tests/intermedia-cms-fsi.spec.ts +8 -0
- package/tests/jobbland.spec.ts +5 -0
- package/tests/kadokawa-ascii.spec.ts +5 -0
- package/tests/kglakademi.spec.ts +3 -0
- package/tests/kredittbanken.spec.ts +3 -0
- package/tests/lieder.net.spec.ts +3 -0
- package/tests/matspar-se.spec.ts +3 -0
- package/tests/menti-com.spec.ts +3 -0
- package/tests/mitrejsevejr.dk.spec.ts +3 -0
- package/tests/morgenlevering.no.spec.ts +3 -0
- package/tests/mos-cudzoziemcy-gov-pl.spec.ts +3 -0
- package/tests/multicalcolo.spec.ts +3 -0
- package/tests/nutri.se.spec.ts +3 -0
- package/tests/octoparse.spec.ts +6 -0
- package/tests/onecall-no.spec.ts +3 -0
- package/tests/oresundstag.spec.ts +3 -0
- package/tests/peppes.spec.ts +5 -0
- package/tests/planteportalen-no.spec.ts +3 -0
- package/tests/renaud-bray.spec.ts +5 -0
- package/tests/saos-org-pl.spec.ts +3 -0
- package/tests/shopgold.spec.ts +3 -0
- package/tests/shueisha-hpplus.spec.ts +3 -0
- package/tests/sian-it.spec.ts +3 -0
- package/tests/skisport.spec.ts +9 -0
- package/tests/skogforsk.spec.ts +3 -0
- package/tests/skovborghogh-cookies.spec.ts +9 -0
- package/tests/sportstiming.spec.ts +8 -0
- package/tests/squarespace-cookie-banner.spec.ts +1 -0
- package/tests/synergy-net-au.spec.ts +8 -0
- package/tests/teeshoppen.spec.ts +7 -0
- package/tests/tullys-jp.spec.ts +3 -0
- package/tests/vardgivarguiden.spec.ts +3 -0
- package/tests/wbd-consent-modal.spec.ts +6 -0
- package/tests/welcome-city-yokohama.spec.ts +3 -0
- package/tests/wordpress-wordads.spec.ts +9 -0
- package/tests/worldbank.spec.ts +1 -0
- package/tests/wuerth.spec.ts +8 -0
- package/tests/ynjn.spec.ts +3 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +82 -4
- package/tests-wtr/rules/cmp-test-urls.json +0 -1
- package/rules/autoconsent/delta-com.json +0 -12
- package/rules/generated/auto_CH_fhgr.ch_9nr.json +0 -40
- package/tests/delta.spec.ts +0 -3
- package/tests/generated/auto_CH_fhgr.ch_9nr.spec.ts +0 -2
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests('alertnotification-alert-bar', [
|
|
4
|
+
'https://www.defencebank.com.au/',
|
|
5
|
+
'https://www.peoplecare.com.au/',
|
|
6
|
+
'https://www.onemedifund.com.au/',
|
|
7
|
+
'https://www.myrbhs.com.au/',
|
|
8
|
+
'https://www.policehealth.com.au/',
|
|
9
|
+
'https://www.vegkit.com.au/',
|
|
10
|
+
'https://www.thegoodmoodfood.com.au/',
|
|
11
|
+
]);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests('amasty-gdpr-sidebar', [
|
|
4
|
+
// Save selection button only
|
|
5
|
+
'https://www.jarbo.se/',
|
|
6
|
+
'https://www.badgematic.de/',
|
|
7
|
+
'https://www.dekaartendrukkerij.nl/',
|
|
8
|
+
'https://www.caterite.co.uk/',
|
|
9
|
+
// Decline button
|
|
10
|
+
'https://www.kedo.de/',
|
|
11
|
+
'https://proedinc.com/',
|
|
12
|
+
'https://millermedicalsupplies.com/',
|
|
13
|
+
// Customized templates with a decline button
|
|
14
|
+
'https://www.monnaiedeparis.fr/',
|
|
15
|
+
'https://aminoexpert.com/',
|
|
16
|
+
]);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests(
|
|
4
|
+
'casino-guru',
|
|
5
|
+
[
|
|
6
|
+
'https://casino.guru/',
|
|
7
|
+
'https://www.kasinoguru-cz.com/',
|
|
8
|
+
'https://oficialnekasina.sk/',
|
|
9
|
+
'https://lotteryguru.com/',
|
|
10
|
+
'https://loteria.guru/',
|
|
11
|
+
],
|
|
12
|
+
{
|
|
13
|
+
skipRegions: ['US'],
|
|
14
|
+
},
|
|
15
|
+
);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests('ccconsent-holder', [
|
|
4
|
+
'https://www.hemfint.se/',
|
|
5
|
+
'https://www.skapamer.se/',
|
|
6
|
+
'https://www.hjemfint.no/',
|
|
7
|
+
'https://www.prisklok.no/',
|
|
8
|
+
'https://www.skapemer.no/',
|
|
9
|
+
'https://www.ellahobby.de/',
|
|
10
|
+
'https://freddyhaus.de/',
|
|
11
|
+
]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests('cloudcms-cookie-alert-notice', [
|
|
4
|
+
'https://pgedystrybucja.pl/',
|
|
5
|
+
'https://pge-obrot.pl/',
|
|
6
|
+
// acknowledge-style button text
|
|
7
|
+
'https://pgegiek.pl/',
|
|
8
|
+
// no cookie mode attribute on html
|
|
9
|
+
'https://fjp.org.pl/',
|
|
10
|
+
]);
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import generateCMPTests from '../playwright/runner';
|
|
2
2
|
|
|
3
|
-
generateCMPTests(
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
generateCMPTests(
|
|
4
|
+
'Complianz opt-out',
|
|
5
|
+
[
|
|
6
|
+
'https://www.thefoxandpheasant.com/food-menu/',
|
|
7
|
+
'https://www.museum.de/',
|
|
8
|
+
'https://www.dtv.de/',
|
|
9
|
+
// Securiti flavor: preference center with only the read-only essential category and no reject-all button
|
|
10
|
+
'https://www.beallsinc.com/',
|
|
11
|
+
],
|
|
12
|
+
{
|
|
13
|
+
testOptIn: false,
|
|
14
|
+
},
|
|
15
|
+
);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
// the notice is only shown in the EEA, the UK, Brazil and Canada
|
|
4
|
+
generateCMPTests('cookie-use-notice', ['https://chatrandom.com/', 'https://privr.com/'], {
|
|
5
|
+
onlyRegions: ['GB', 'DE', 'FR', 'NL', 'NO', 'CA'],
|
|
6
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests(
|
|
4
|
+
'dandomain',
|
|
5
|
+
[
|
|
6
|
+
'https://www.lamper.dk/',
|
|
7
|
+
'https://www.fruskov.dk/',
|
|
8
|
+
'https://www.bestman.dk/',
|
|
9
|
+
'https://www.whisky.dk/',
|
|
10
|
+
'https://www.skiltex.dk/',
|
|
11
|
+
'https://www.fashiongirls.se/',
|
|
12
|
+
'https://www.plastbutikken.no/',
|
|
13
|
+
],
|
|
14
|
+
{
|
|
15
|
+
// saving consent reloads the page, which can drop the self-test message
|
|
16
|
+
testSelfTest: false,
|
|
17
|
+
},
|
|
18
|
+
);
|
package/tests/didomi.spec.ts
CHANGED
|
@@ -34,3 +34,12 @@ generateCMPTests('didomi', ['https://en.as.com/', 'https://cadenaser.com/'], {
|
|
|
34
34
|
testSelfTest: true,
|
|
35
35
|
onlyRegions: ['US'],
|
|
36
36
|
});
|
|
37
|
+
|
|
38
|
+
// "Consent or pay" notices where the disagree button is a paid or subscription option: the rule must leave them to the user.
|
|
39
|
+
generateCMPTests('didomi', ['https://www.elconfidencial.com/', 'https://www.20minutes.fr/', 'https://www.publico.es/'], {
|
|
40
|
+
expectPopupOpen: false,
|
|
41
|
+
testOptIn: false,
|
|
42
|
+
testOptOut: false,
|
|
43
|
+
testSelfTest: false,
|
|
44
|
+
onlyRegions: ['FR'],
|
|
45
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
// the close link navigates away, so the self-test cannot run on the original page
|
|
4
|
+
generateCMPTests('fellow.pl', ['https://fellow.pl/', 'https://fll.pl/'], { mobile: false, testSelfTest: false });
|
|
5
|
+
generateCMPTests('fellow.pl', ['https://m.fellow.pl/', 'https://m.fll.pl/'], { mobile: true, testSelfTest: false });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
const urls = ['https://www.octoparse.jp/', 'https://www.octoparse.com/', 'https://www.octoparse.de/'];
|
|
4
|
+
|
|
5
|
+
generateCMPTests('octoparse', urls, { mobile: true });
|
|
6
|
+
generateCMPTests('octoparse', urls, { mobile: false });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests('skovborghogh-cookies', [
|
|
4
|
+
'https://silvergroup.dk/georg-jensen-paper-weight-paper-knife-wagtail-485-turquoise.html',
|
|
5
|
+
'https://lommelygteshop.dk/',
|
|
6
|
+
'https://frinatur.se/',
|
|
7
|
+
'https://dunstan.dk/',
|
|
8
|
+
'https://startist.dk/',
|
|
9
|
+
]);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
const urls = ['https://www.synergy.net.au/'];
|
|
4
|
+
// the site returns an error page to visitors from some regions, e.g. US
|
|
5
|
+
const onlyRegions = ['AU', 'GB', 'DE'];
|
|
6
|
+
|
|
7
|
+
generateCMPTests('synergy-net-au', urls, { mobile: true, onlyRegions });
|
|
8
|
+
generateCMPTests('synergy-net-au', urls, { mobile: false, onlyRegions });
|