@duckduckgo/autoconsent 16.38.0 → 16.40.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 +41 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +1 -63
- 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 +1 -63
- 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 +1 -63
- package/dist/autoconsent.esm.js +1 -63
- package/dist/autoconsent.playwright.js +1 -63
- package/dist/autoconsent.standalone.js +2 -64
- package/dist/types/cmps/all.d.ts +1 -2
- package/lib/cmps/all.ts +0 -2
- package/lib/heuristic-patterns.ts +1 -1
- package/package.json +1 -1
- package/rules/autoconsent/epidemicsound-com.json +19 -0
- package/rules/autoconsent/godaddy-privacy-widget.json +9 -0
- package/rules/autoconsent/hometogo.json +18 -0
- package/rules/autoconsent/lendable.json +39 -0
- package/rules/autoconsent/massgeneralbrigham.json +35 -0
- package/rules/autoconsent/maticrobots-com.json +17 -0
- package/rules/autoconsent/pandectes.json +4 -2
- package/rules/autoconsent/rdc-concents.json +9 -0
- package/rules/autoconsent/readly.json +26 -17
- package/rules/autoconsent/rspb.json +42 -0
- package/rules/autoconsent/rug-nl.json +33 -0
- package/rules/autoconsent/scmp.json +11 -3
- package/rules/autoconsent/tumblr-com.json +31 -0
- package/rules/autoconsent/tumblr-custom-domain-gdpr-banner.json +32 -0
- package/rules/autoconsent/venngage.json +38 -0
- package/rules/autoconsent/vmock.json +41 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/epidemicsound-com.spec.ts +3 -0
- package/tests/godaddy-privacy-widget.spec.ts +8 -0
- package/tests/hometogo.spec.ts +8 -0
- package/tests/lendable.spec.ts +3 -0
- package/tests/massgeneralbrigham.spec.ts +3 -0
- package/tests/maticrobots-com.spec.ts +3 -0
- package/tests/pandectes.spec.ts +6 -1
- package/tests/rdc-concents.spec.ts +10 -0
- package/tests/readly.spec.ts +1 -1
- package/tests/rspb.spec.ts +3 -0
- package/tests/rug-nl.spec.ts +3 -0
- package/tests/tumblr-custom-domain-gdpr-banner.spec.ts +7 -0
- package/tests/venngage.spec.ts +3 -0
- package/tests/vmock.spec.ts +3 -0
- package/tests-wtr/heuristics/heuristics-utils.test.ts +7 -0
- package/dist/types/cmps/tumblr-com.d.ts +0 -15
- package/lib/cmps/tumblr-com.ts +0 -70
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
// essential/necessary/functional-only variants (accepting only necessary → reject)
|
|
634
634
|
/^\s*(nur|ausschließlich|lediglich|weiter\s+mit|mit|akzeptiere?n?|unbedingt|es\s+werden\s+nur)?\s*(technisch\s+)?(notwendige?[nrs]?|essenzielle?[nrs]?|essentielle?[nrs]?|erforderliche?[nrs]?|funktionale?[nrs]?|funktionelle?[nrs]?|wesentliche?[nrs]?)\s*(cookies?|technologien|funktionscookies|dienste)?\s*(akzeptieren|erlauben|zulassen|verwenden|annehmen|setzen|speichern|zustimmen|auswählen)?\.?\s*$/is,
|
|
635
635
|
// continue without consent
|
|
636
|
-
/(^|\s)(ohne\s+(einwilligung|zustimmung|einverständnis|annahme)|(weiter|fortfahren)\s+ohne)/is,
|
|
636
|
+
/(^|\s)(ohne\s+(zu\s+)?(einwilligung|zustimmung|einverständnis|annahme|annehmen|akzeptanz|akzeptieren)|(weiter|fortfahren)\s+ohne)/is,
|
|
637
637
|
// negations / refusals not covered by the regexes above
|
|
638
638
|
"nein, danke",
|
|
639
639
|
"nein, bitte nicht",
|
|
@@ -2446,67 +2446,6 @@
|
|
|
2446
2446
|
}
|
|
2447
2447
|
};
|
|
2448
2448
|
|
|
2449
|
-
// lib/cmps/tumblr-com.ts
|
|
2450
|
-
var Tumblr = class extends AutoConsentCMPBase {
|
|
2451
|
-
constructor() {
|
|
2452
|
-
super(...arguments);
|
|
2453
|
-
this.name = "tumblr-com";
|
|
2454
|
-
this.runContext = {
|
|
2455
|
-
urlPattern: "^https://(www\\.)?tumblr\\.com/"
|
|
2456
|
-
};
|
|
2457
|
-
}
|
|
2458
|
-
get hasSelfTest() {
|
|
2459
|
-
return false;
|
|
2460
|
-
}
|
|
2461
|
-
get isIntermediate() {
|
|
2462
|
-
return false;
|
|
2463
|
-
}
|
|
2464
|
-
get isCosmetic() {
|
|
2465
|
-
return false;
|
|
2466
|
-
}
|
|
2467
|
-
get prehideSelectors() {
|
|
2468
|
-
return ["#cmp-app-container"];
|
|
2469
|
-
}
|
|
2470
|
-
async detectCmp() {
|
|
2471
|
-
return this.elementExists("#cmp-app-container");
|
|
2472
|
-
}
|
|
2473
|
-
async detectPopup() {
|
|
2474
|
-
return this.elementVisible("#cmp-app-container", "any");
|
|
2475
|
-
}
|
|
2476
|
-
async optOut() {
|
|
2477
|
-
let iframe = document.querySelector("#cmp-app-container iframe");
|
|
2478
|
-
let settingsButton = iframe?.contentDocument?.querySelector(".cmp-components-button.is-secondary");
|
|
2479
|
-
if (!settingsButton) {
|
|
2480
|
-
return false;
|
|
2481
|
-
}
|
|
2482
|
-
settingsButton.click();
|
|
2483
|
-
await waitFor(
|
|
2484
|
-
() => {
|
|
2485
|
-
const iframe2 = document.querySelector("#cmp-app-container iframe");
|
|
2486
|
-
return !!iframe2?.contentDocument?.querySelector(".cmp__dialog input");
|
|
2487
|
-
},
|
|
2488
|
-
5,
|
|
2489
|
-
500
|
|
2490
|
-
);
|
|
2491
|
-
iframe = document.querySelector("#cmp-app-container iframe");
|
|
2492
|
-
settingsButton = iframe?.contentDocument?.querySelector(".cmp-components-button.is-secondary");
|
|
2493
|
-
if (!settingsButton) {
|
|
2494
|
-
return false;
|
|
2495
|
-
}
|
|
2496
|
-
settingsButton.click();
|
|
2497
|
-
return true;
|
|
2498
|
-
}
|
|
2499
|
-
async optIn() {
|
|
2500
|
-
const iframe = document.querySelector("#cmp-app-container iframe");
|
|
2501
|
-
const acceptButton = iframe?.contentDocument?.querySelector(".cmp-components-button.is-primary");
|
|
2502
|
-
if (acceptButton) {
|
|
2503
|
-
acceptButton.click();
|
|
2504
|
-
return true;
|
|
2505
|
-
}
|
|
2506
|
-
return false;
|
|
2507
|
-
}
|
|
2508
|
-
};
|
|
2509
|
-
|
|
2510
2449
|
// lib/cmps/admiral.ts
|
|
2511
2450
|
var Admiral = class extends AutoConsentCMPBase {
|
|
2512
2451
|
constructor() {
|
|
@@ -2585,7 +2524,6 @@
|
|
|
2585
2524
|
Uniconsent,
|
|
2586
2525
|
Conversant,
|
|
2587
2526
|
Tiktok,
|
|
2588
|
-
Tumblr,
|
|
2589
2527
|
Admiral
|
|
2590
2528
|
];
|
|
2591
2529
|
|