@duckduckgo/autoconsent 18.0.0 → 18.1.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/.github/workflows/ddg-release.yml +6 -3
- package/CHANGELOG.md +23 -0
- package/dist/addon-firefox/background.bundle.js +2 -1
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +6 -8
- 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/background.bundle.js +2 -1
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +6 -8
- 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 +6 -8
- package/dist/autoconsent.esm.js +6 -8
- package/dist/autoconsent.playwright.js +6 -8
- package/dist/autoconsent.standalone.js +7 -9
- package/dist/types/cmps/tiktok.d.ts +0 -2
- package/dist/types/eval-snippets.d.ts +1 -0
- package/lib/cmps/evidon.ts +5 -4
- package/lib/cmps/tiktok.ts +0 -5
- package/lib/eval-snippets.ts +1 -0
- package/package.json +1 -1
- package/rules/autoconsent/hmgroup-turbocookie.json +18 -0
- package/rules/autoconsent/hmrc-tracking-consent.json +40 -0
- package/rules/autoconsent/meta-cookie-dialog-v2.json +40 -0
- package/rules/autoconsent/reverb-gdpr-nag.json +18 -0
- package/rules/autoconsent/reverb.json +24 -0
- package/rules/autoconsent/zoho.json +23 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/evidon.spec.ts +2 -1
- package/tests/hmgroup-turbocookie.spec.ts +7 -0
- package/tests/hmrc-tracking-consent.spec.ts +7 -0
- package/tests/meta-cookie-dialog-v2.spec.ts +10 -0
- package/tests/reverb.spec.ts +7 -0
- package/tests/tiktok.spec.ts +2 -2
- package/tests/zoho.spec.ts +5 -0
- package/rules/generated/auto_GB_capcut.com_0.json +0 -28
- package/tests/generated/auto_GB_capcut.com_0.spec.ts +0 -2
|
@@ -456,7 +456,8 @@
|
|
|
456
456
|
EVAL_USERCENTRICS_API_6: () => UC_UI.areAllConsentsAccepted() === false,
|
|
457
457
|
EVAL_USERCENTRICS_BUTTON_0: () => JSON.parse(localStorage.getItem("usercentrics")).consents.every((c) => c.isEssential || !c.consentStatus),
|
|
458
458
|
EVAL_WAITROSE_0: () => Array.from(document.querySelectorAll("label[id$=cookies-deny-label]")).forEach((e) => e.click()) || true,
|
|
459
|
-
EVAL_WBD_LTP_CLOSE: () => document.querySelector("dialog#ltp-dialog").close() || true
|
|
459
|
+
EVAL_WBD_LTP_CLOSE: () => document.querySelector("dialog#ltp-dialog").close() || true,
|
|
460
|
+
EVAL_ZOHO_TEST: () => localStorage.getItem("zglobal_Acookie_optOut") === "3"
|
|
460
461
|
};
|
|
461
462
|
function getFunctionBody(snippetFunc) {
|
|
462
463
|
const snippetStr = snippetFunc.toString();
|
|
@@ -3013,13 +3014,13 @@
|
|
|
3013
3014
|
return false;
|
|
3014
3015
|
}
|
|
3015
3016
|
async detectCmp() {
|
|
3016
|
-
return this.elementExists("#_evidon_banner");
|
|
3017
|
+
return this.elementExists("#_evidon_banner, #_evidon-barrier-wrapper");
|
|
3017
3018
|
}
|
|
3018
3019
|
async detectPopup() {
|
|
3019
|
-
return this.elementVisible("#_evidon_banner", "any");
|
|
3020
|
+
return this.elementVisible("#_evidon_banner, #_evidon-barrier-wrapper #_evidon-banner", "any");
|
|
3020
3021
|
}
|
|
3021
3022
|
async optOut() {
|
|
3022
|
-
if (await this.click("#_evidon-decline-button")) {
|
|
3023
|
+
if (await this.click("#_evidon-decline-button, #_evidon-barrier-declinebutton, #_evidon_banner #RejectLink")) {
|
|
3023
3024
|
return true;
|
|
3024
3025
|
}
|
|
3025
3026
|
hideElements(getStyleElement(), "#evidon-prefdiag-overlay,#evidon-prefdiag-background,#_evidon-background");
|
|
@@ -3030,7 +3031,7 @@
|
|
|
3030
3031
|
return true;
|
|
3031
3032
|
}
|
|
3032
3033
|
async optIn() {
|
|
3033
|
-
return await this.click("#_evidon-accept-button");
|
|
3034
|
+
return await this.click("#_evidon-accept-button, #_evidon-banner-acceptbutton");
|
|
3034
3035
|
}
|
|
3035
3036
|
};
|
|
3036
3037
|
|
|
@@ -3297,9 +3298,6 @@
|
|
|
3297
3298
|
constructor() {
|
|
3298
3299
|
super(...arguments);
|
|
3299
3300
|
this.name = "tiktok.com";
|
|
3300
|
-
this.runContext = {
|
|
3301
|
-
urlPattern: "tiktok"
|
|
3302
|
-
};
|
|
3303
3301
|
}
|
|
3304
3302
|
get hasSelfTest() {
|
|
3305
3303
|
return true;
|