@duckduckgo/autoconsent 18.1.0 → 18.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/CHANGELOG.md +68 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +167 -32
- 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 +167 -32
- 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 +167 -32
- package/dist/autoconsent.esm.js +167 -32
- package/dist/autoconsent.playwright.js +167 -32
- package/dist/autoconsent.standalone.js +168 -33
- package/dist/heuristics.cjs.js +175 -32
- package/dist/heuristics.mjs +171 -32
- package/dist/types/heuristic-patterns.d.ts +4 -0
- package/docs/heuristic-detection.md +1 -0
- package/lib/heuristic-literals.ts +52 -5
- package/lib/heuristic-negatives.ts +15 -1
- package/lib/heuristic-patterns.ts +101 -21
- package/package.json +1 -1
- package/rules/autoconsent/aa-cookie-banner.json +2 -2
- package/rules/autoconsent/acconsento.json +45 -0
- package/rules/autoconsent/appconsent.json +8 -8
- package/rules/autoconsent/askas.json +39 -0
- package/rules/autoconsent/atomstore.json +44 -0
- package/rules/autoconsent/b1ng-cc.json +23 -0
- package/rules/autoconsent/bgk-pl.json +18 -0
- package/rules/autoconsent/blogger-cookie-notice.json +10 -0
- package/rules/autoconsent/brainshare.json +12 -0
- package/rules/autoconsent/brandsforstudents.ch.json +19 -0
- package/rules/autoconsent/c-cookie-message.json +9 -0
- package/rules/autoconsent/cookie-agree-banner.json +9 -0
- package/rules/autoconsent/cookie-box-notice.json +41 -0
- package/rules/autoconsent/cookieinfo.json +1 -1
- package/rules/autoconsent/cookies-and-content-security-policy.json +45 -0
- package/rules/autoconsent/dfactory-cookie-notice.json +13 -1
- package/rules/autoconsent/didomi.json +7 -1
- package/rules/autoconsent/facebook.json +16 -6
- package/rules/autoconsent/gdpr-jp-notice.json +25 -0
- package/rules/autoconsent/gdpsystem.json +21 -0
- package/rules/autoconsent/help-ch.json +25 -0
- package/rules/autoconsent/imyfone.json +25 -0
- package/rules/autoconsent/interface-medien-gebaeck.json +33 -0
- package/rules/autoconsent/invision-guest-terms.json +14 -0
- package/rules/autoconsent/ipkobiznes.pl.json +12 -0
- package/rules/autoconsent/jquery-cookiepolicy.json +30 -0
- package/rules/autoconsent/loescher.json +44 -0
- package/rules/autoconsent/meowdb.json +65 -0
- package/rules/autoconsent/monex-co-jp.json +34 -0
- package/rules/autoconsent/nnk-theme-cookie-bar.json +29 -0
- package/rules/autoconsent/no-transit-consent.json +32 -0
- package/rules/autoconsent/nperf.json +33 -0
- package/rules/autoconsent/okayama-kanko-jp.json +31 -0
- package/rules/autoconsent/oko-press.json +23 -0
- package/rules/autoconsent/ometv-pl.json +33 -0
- package/rules/autoconsent/pfron-gov-pl.json +37 -0
- package/rules/autoconsent/pl-bip-cookies.json +25 -0
- package/rules/autoconsent/prestashop-advanced-cookie-banner.json +49 -0
- package/rules/autoconsent/qudosbank-com-au.json +14 -0
- package/rules/autoconsent/roblox-creator-hub.json +48 -0
- package/rules/autoconsent/rws-app.json +13 -0
- package/rules/autoconsent/san-tatsu.json +32 -0
- package/rules/autoconsent/sda-it.json +37 -0
- package/rules/autoconsent/seria-group.json +35 -0
- package/rules/autoconsent/shoper.json +10 -0
- package/rules/autoconsent/silver-nu.json +31 -0
- package/rules/autoconsent/soleil-sitevision-cookie-message.json +32 -0
- package/rules/autoconsent/stellantis-psa.json +18 -1
- package/rules/autoconsent/surfshark.json +21 -0
- package/rules/autoconsent/tcl.json +50 -0
- package/rules/autoconsent/tuki-cookieterms.json +20 -0
- package/rules/autoconsent/weblegal.json +10 -0
- package/rules/autoconsent/weblication.json +38 -0
- package/rules/autoconsent/x28-privacy-settings.json +18 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/aa-cookie-banner.spec.ts +1 -1
- package/tests/acconsento.spec.ts +8 -0
- package/tests/appconsent.spec.ts +1 -1
- package/tests/askas.spec.ts +9 -0
- package/tests/atomstore.spec.ts +9 -0
- package/tests/b1ng-cc.spec.ts +3 -0
- package/tests/bgk-pl.spec.ts +5 -0
- package/tests/blogger-cookie-notice.spec.ts +9 -0
- package/tests/brainshare.spec.ts +3 -0
- package/tests/brandsforstudents.ch.spec.ts +6 -0
- package/tests/c-cookie-message.spec.ts +9 -0
- package/tests/cookie-agree-banner.spec.ts +3 -0
- package/tests/cookie-box-notice.spec.ts +10 -0
- package/tests/cookies-and-content-security-policy.spec.ts +16 -0
- package/tests/didomi.spec.ts +8 -0
- package/tests/facebook.spec.ts +1 -1
- package/tests/gdpr-jp-notice.spec.ts +3 -0
- package/tests/gdpsystem.spec.ts +3 -0
- package/tests/gravito.spec.ts +6 -0
- package/tests/help-ch.spec.ts +14 -0
- package/tests/imyfone.spec.ts +9 -0
- package/tests/interface-medien-gebaeck.spec.ts +13 -0
- package/tests/invision-guest-terms.spec.ts +10 -0
- package/tests/ipkobiznes.pl.spec.ts +3 -0
- package/tests/jquery-cookiepolicy.spec.ts +10 -0
- package/tests/loescher.spec.ts +5 -0
- package/tests/meowdb.spec.ts +3 -0
- package/tests/monex-co-jp.spec.ts +3 -0
- package/tests/nnk-theme-cookie-bar.spec.ts +3 -0
- package/tests/no-transit-consent.spec.ts +3 -0
- package/tests/nperf.spec.ts +3 -0
- package/tests/okayama-kanko-jp.spec.ts +3 -0
- package/tests/oko-press.spec.ts +3 -0
- package/tests/ometv-pl.spec.ts +4 -0
- package/tests/pfron-gov-pl.spec.ts +3 -0
- package/tests/pl-bip-cookies.spec.ts +3 -0
- package/tests/prestashop-advanced-cookie-banner.spec.ts +9 -0
- package/tests/qudosbank-com-au.spec.ts +3 -0
- package/tests/roblox-creator-hub.spec.ts +5 -0
- package/tests/rws-app.spec.ts +15 -0
- package/tests/san-tatsu.spec.ts +3 -0
- package/tests/sda-it.spec.ts +7 -0
- package/tests/seria-group.spec.ts +3 -0
- package/tests/shoper.spec.ts +3 -0
- package/tests/silver-nu.spec.ts +3 -0
- package/tests/soleil-sitevision-cookie-message.spec.ts +8 -0
- package/tests/stellantis-psa.spec.ts +2 -0
- package/tests/surfshark.spec.ts +3 -0
- package/tests/tcl.spec.ts +9 -0
- package/tests/tuki-cookieterms.spec.ts +8 -0
- package/tests/weblegal.spec.ts +8 -0
- package/tests/weblication.spec.ts +9 -0
- package/tests/x28-privacy-settings.spec.ts +4 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +275 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import generateCMPTests from '../playwright/runner';
|
|
2
2
|
|
|
3
|
-
const urls = ['https://www.
|
|
3
|
+
const urls = ['https://www.envoyair.com/', 'https://www.psaairlines.com/'];
|
|
4
4
|
|
|
5
5
|
generateCMPTests('aa-cookie-banner', urls, { mobile: true });
|
|
6
6
|
generateCMPTests('aa-cookie-banner', urls, { mobile: false });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests('acconsento', ['https://www.pizza.it/', 'https://www.radiotoscana.it/']);
|
|
4
|
+
|
|
5
|
+
// sites with automatic page refresh enabled reload right after the click, so the self-test result is lost
|
|
6
|
+
generateCMPTests('acconsento', ['https://www.055firenze.it/', 'https://www.museoegizio.it/', 'https://www.antimafiaduemila.com/'], {
|
|
7
|
+
testSelfTest: false,
|
|
8
|
+
});
|
package/tests/appconsent.spec.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import generateCMPTests from '../playwright/runner';
|
|
2
2
|
|
|
3
|
-
generateCMPTests('AppConsent', ['https://magasin.darty.com/'], {
|
|
3
|
+
generateCMPTests('AppConsent', ['https://magasin.darty.com/', 'https://www.iturf.fr/'], {
|
|
4
4
|
testOptIn: false,
|
|
5
5
|
testOptOut: true,
|
|
6
6
|
onlyRegions: ['US', 'FR'],
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests(
|
|
4
|
+
'blogger-cookie-notice',
|
|
5
|
+
['http://petrusko.blogspot.com/', 'https://www.irasutoya.com/', 'https://www.surrenderat20.net/', 'https://forgetfulbc.blogspot.com/'],
|
|
6
|
+
{
|
|
7
|
+
onlyRegions: ['GB', 'DE', 'FR', 'SE'],
|
|
8
|
+
},
|
|
9
|
+
);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
// the site reloads the page after saving consent, so the self-test cannot run
|
|
4
|
+
generateCMPTests('brandsforstudents.ch', ['https://brandsforstudents.ch/', 'https://brandsforemployees.ch/'], {
|
|
5
|
+
testSelfTest: false,
|
|
6
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests('c-cookie-message', [
|
|
4
|
+
'https://www.monohikaku-jp.com/',
|
|
5
|
+
'https://www.topproducts-usa.com/',
|
|
6
|
+
'https://www.ranking-expert.com/',
|
|
7
|
+
'https://melhorescriticasbrasil.com/',
|
|
8
|
+
'https://bestproductssingapore.com/',
|
|
9
|
+
]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests('cookie-box-notice', [
|
|
4
|
+
'https://www.tabirai.net/',
|
|
5
|
+
'https://apanavi.jp/',
|
|
6
|
+
'https://monthly-osaka.jp/',
|
|
7
|
+
'https://kyowa-group.jp/',
|
|
8
|
+
'https://www.tlsnet.co.jp/',
|
|
9
|
+
'https://rc-imari.jp/',
|
|
10
|
+
]);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests(
|
|
4
|
+
'cookies-and-content-security-policy',
|
|
5
|
+
[
|
|
6
|
+
'https://www.sd.se/',
|
|
7
|
+
'https://esny.se/',
|
|
8
|
+
// no reject button: opt out via settings
|
|
9
|
+
'https://hdrmaps.com/',
|
|
10
|
+
'https://geijerskolan.se/',
|
|
11
|
+
],
|
|
12
|
+
{
|
|
13
|
+
// the plugin reloads the page after saving consent
|
|
14
|
+
testSelfTest: false,
|
|
15
|
+
},
|
|
16
|
+
);
|
package/tests/didomi.spec.ts
CHANGED
|
@@ -26,3 +26,11 @@ generateCMPTests('didomi', ['https://newrepublic.com/article/162247/andreas-malm
|
|
|
26
26
|
testSelfTest: true,
|
|
27
27
|
onlyRegions: ['US'],
|
|
28
28
|
});
|
|
29
|
+
|
|
30
|
+
// Publisher wrapper (#acceptationCMPWall) that only unlocks the page on Didomi UI click events,
|
|
31
|
+
// so the rule rejects via the preferences screen instead of the JS API.
|
|
32
|
+
generateCMPTests('didomi', ['https://en.as.com/', 'https://cadenaser.com/'], {
|
|
33
|
+
testOptIn: true,
|
|
34
|
+
testSelfTest: true,
|
|
35
|
+
onlyRegions: ['US'],
|
|
36
|
+
});
|
package/tests/facebook.spec.ts
CHANGED
package/tests/gravito.spec.ts
CHANGED
|
@@ -6,4 +6,10 @@ generateCMPTests('gravito', [
|
|
|
6
6
|
'https://www.suomi24.fi/',
|
|
7
7
|
'https://www.foreca.fi/',
|
|
8
8
|
'https://www.veikkaus.fi/',
|
|
9
|
+
'https://www.apu.fi/',
|
|
9
10
|
]);
|
|
11
|
+
|
|
12
|
+
// popup is not shown in the US
|
|
13
|
+
generateCMPTests('gravito', ['https://www.flightradar24.com/45.96,14.66/6'], {
|
|
14
|
+
skipRegions: ['US'],
|
|
15
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests(
|
|
4
|
+
'help-ch',
|
|
5
|
+
[
|
|
6
|
+
'https://www.wirtschaftsregister.ch/',
|
|
7
|
+
'https://www.gemeinderegister.ch/',
|
|
8
|
+
'https://www.registreducommerce.ch/',
|
|
9
|
+
'https://www.plz-postleitzahl.ch/',
|
|
10
|
+
],
|
|
11
|
+
{
|
|
12
|
+
testSelfTest: false,
|
|
13
|
+
},
|
|
14
|
+
);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests('interface-medien-gebaeck', [
|
|
4
|
+
'https://www.kraeuterhaus.de/',
|
|
5
|
+
'https://www.brennenstuhl.com/',
|
|
6
|
+
'https://www.febrotec.de/',
|
|
7
|
+
'https://zero-lack.de/',
|
|
8
|
+
]);
|
|
9
|
+
|
|
10
|
+
// no banner shown in DE
|
|
11
|
+
generateCMPTests('interface-medien-gebaeck', ['https://www.burgerstein.ch/'], {
|
|
12
|
+
skipRegions: ['DE'],
|
|
13
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests('invision-guest-terms', [
|
|
4
|
+
'https://www.bilforumet.no/',
|
|
5
|
+
'https://vacn.no/',
|
|
6
|
+
'https://www.soundtrack-board.de/',
|
|
7
|
+
'https://www.filmvorfuehrer.de/',
|
|
8
|
+
'https://forums.rgc.ro/',
|
|
9
|
+
'https://www.cap-recifal.com/',
|
|
10
|
+
]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests(
|
|
4
|
+
'jquery-cookiepolicy',
|
|
5
|
+
['https://pkw.gov.pl/', 'https://www.etwinning.pl/', 'https://pzw.org.pl/', 'https://myslowice.pl/'],
|
|
6
|
+
{
|
|
7
|
+
// the page reloads after a consent choice, so the self-test result is lost
|
|
8
|
+
testSelfTest: false,
|
|
9
|
+
},
|
|
10
|
+
);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
generateCMPTests(
|
|
4
|
+
'prestashop-advanced-cookie-banner',
|
|
5
|
+
['https://kluczesoft.pl/', 'https://buro-conseil.com/', 'https://reflecta.de/', 'https://bbois.com/', 'https://sosav.fr/'],
|
|
6
|
+
{
|
|
7
|
+
testSelfTest: false,
|
|
8
|
+
},
|
|
9
|
+
);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import generateCMPTests from '../playwright/runner';
|
|
2
|
+
|
|
3
|
+
// the site reloads the page after a consent choice, so the self-test message is lost
|
|
4
|
+
generateCMPTests(
|
|
5
|
+
'rws-app',
|
|
6
|
+
[
|
|
7
|
+
'https://mollerbil.se/',
|
|
8
|
+
'https://motorhalland.se/',
|
|
9
|
+
'https://nordemansbil.se/',
|
|
10
|
+
'https://jlbilar.se/',
|
|
11
|
+
'https://frontbilar.se/',
|
|
12
|
+
'https://bilteam.com/',
|
|
13
|
+
],
|
|
14
|
+
{ testSelfTest: false },
|
|
15
|
+
);
|