@duckduckgo/autoconsent 18.11.0 → 18.12.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 +45 -0
- package/dist/addon-firefox/background.bundle.js +10 -0
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +10 -0
- 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 +10 -0
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +10 -0
- 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 +10 -0
- package/dist/autoconsent.esm.js +10 -0
- package/dist/autoconsent.playwright.js +10 -0
- package/dist/autoconsent.standalone.js +11 -1
- package/dist/types/eval-snippets.d.ts +2 -0
- package/lib/eval-snippets.ts +10 -0
- package/package.json +1 -1
- package/rules/autoconsent/ccm-dialog.json +48 -0
- package/rules/autoconsent/chesskid.json +43 -0
- package/rules/autoconsent/clinch.json +1 -1
- package/rules/autoconsent/clio-online-matomo.json +10 -0
- package/rules/autoconsent/cookieconsent2.json +3 -2
- package/rules/autoconsent/foster-cookie-notice.json +34 -0
- package/rules/autoconsent/fulmo.json +10 -0
- package/rules/autoconsent/gsb-cookiebanner-close.json +27 -0
- package/rules/autoconsent/hetgoed.json +20 -0
- package/rules/autoconsent/hutshopping.json +9 -0
- package/rules/autoconsent/icn-cookie-notice.json +34 -0
- package/rules/autoconsent/internetvergelijk.json +47 -0
- package/rules/autoconsent/isn-cookie-consent.json +10 -0
- package/rules/autoconsent/knowunity.json +10 -0
- package/rules/autoconsent/lightspeed-cookielaw.json +30 -0
- package/rules/autoconsent/lobbes.json +18 -0
- package/rules/autoconsent/mercadolibre-frame.json +42 -0
- package/rules/autoconsent/mercadolibre-subdomain.json +33 -0
- package/rules/autoconsent/mindshape-cookie-consent.json +60 -0
- package/rules/autoconsent/moneywise.json +56 -0
- package/rules/autoconsent/netwerknotarissen.json +23 -0
- package/rules/autoconsent/perplex-cookie-consent.json +12 -0
- package/rules/autoconsent/radish-cookie-consent.json +36 -0
- package/rules/autoconsent/reliving.json +39 -0
- package/rules/autoconsent/scriptex.json +11 -0
- package/rules/autoconsent/shopware5.json +30 -4
- package/rules/autoconsent/spreekwoorden.json +31 -0
- package/rules/autoconsent/stoffe-hemmers.json +21 -0
- package/rules/autoconsent/stripinfo.be.json +18 -0
- package/rules/autoconsent/thisiseindhoven.json +17 -0
- package/rules/autoconsent/tinycookie.json +36 -0
- package/rules/autoconsent/vendic-cookiebar.json +27 -4
- package/rules/autoconsent/wpj-cookiebar.json +45 -0
- package/rules/autoconsent/yunders.json +16 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/sites/ccm-dialog.json +9 -0
- package/tests/sites/chesskid.json +10 -0
- package/tests/sites/clio-online-matomo.json +9 -0
- package/tests/sites/foster-cookie-notice.json +18 -0
- package/tests/sites/fulmo.json +14 -0
- package/tests/sites/gsb-cookiebanner-close.json +22 -0
- package/tests/sites/hetgoed.json +9 -0
- package/tests/sites/hutshopping.json +15 -0
- package/tests/sites/icn-cookie-notice.json +21 -0
- package/tests/sites/internetvergelijk.json +13 -0
- package/tests/sites/isn-cookie-consent.json +8 -0
- package/tests/sites/knowunity.json +22 -0
- package/tests/sites/lightspeed-cookielaw.json +19 -0
- package/tests/sites/lobbes.json +10 -0
- package/tests/sites/mercadolibre-subdomain.json +15 -0
- package/tests/sites/mindshape-cookie-consent.json +23 -0
- package/tests/sites/moneywise.json +14 -0
- package/tests/sites/netwerknotarissen.json +8 -0
- package/tests/sites/perplex-cookie-consent.json +22 -0
- package/tests/sites/radish-cookie-consent.json +16 -0
- package/tests/sites/reliving.json +8 -0
- package/tests/sites/scriptex.json +8 -0
- package/tests/sites/shopware5.json +14 -0
- package/tests/sites/spreekwoorden.json +9 -0
- package/tests/sites/stoffe-hemmers.json +8 -0
- package/tests/sites/stripinfo.be.json +9 -0
- package/tests/sites/thisiseindhoven.json +8 -0
- package/tests/sites/tinycookie.json +13 -0
- package/tests/sites/vendic-cookiebar.json +5 -0
- package/tests/sites/wpj-cookiebar.json +13 -0
- package/tests/sites/yunders.json +8 -0
|
@@ -162,6 +162,16 @@
|
|
|
162
162
|
EVAL_KROWN_COOKIE_BANNER_TEST: () => localStorage.getItem("krown-cookie-banner") === "true",
|
|
163
163
|
// the decline handler listens for mouseup/touchend, which element.click() does not dispatch
|
|
164
164
|
EVAL_LETHPOLYTECH_DECLINE: () => document.querySelector(".consent-banner .cookie-decline").dispatchEvent(new MouseEvent("mouseup", { bubbles: true, cancelable: true, view: window })) || true,
|
|
165
|
+
// reading a cross-origin parent's document throws
|
|
166
|
+
EVAL_MERCADOLIBRE_CROSS_ORIGIN_PARENT: () => {
|
|
167
|
+
try {
|
|
168
|
+
return !window.parent.document;
|
|
169
|
+
} catch (e) {
|
|
170
|
+
return true;
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
// the embedded preferences page saves its current toggles on this message, normally sent by the parent's Save button
|
|
174
|
+
EVAL_MERCADOLIBRE_SAVE: () => window.postMessage({ eventName: "saveCookiesPreference" }, "*") || true,
|
|
165
175
|
EVAL_MICROSOFT_0: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Reject|Ablehnen"))[0].click() || true,
|
|
166
176
|
EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll("div > button")).filter((el) => el.innerText.match("Accept|Annehmen"))[0].click() || true,
|
|
167
177
|
EVAL_MICROSOFT_2: () => !!document.cookie.match("MSCC|GHCC"),
|