@duckduckgo/autoconsent 17.2.0 → 17.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 +162 -0
- package/ci/asana-create-release-task.js +12 -4
- package/dist/addon-firefox/background.bundle.js +26 -7
- package/dist/addon-firefox/compact-rules.json +1 -1
- package/dist/addon-firefox/content.bundle.js +22 -1
- package/dist/addon-firefox/manifest.json +1 -1
- package/dist/addon-firefox/popup.bundle.js +19 -7
- package/dist/addon-firefox/rule-index.json +1 -1
- package/dist/addon-firefox/rules.json +1 -1
- package/dist/addon-mv3/background.bundle.js +26 -7
- package/dist/addon-mv3/compact-rules.json +1 -1
- package/dist/addon-mv3/content.bundle.js +22 -1
- package/dist/addon-mv3/manifest.json +1 -1
- package/dist/addon-mv3/popup.bundle.js +19 -7
- package/dist/addon-mv3/rule-index.json +1 -1
- package/dist/addon-mv3/rules.json +1 -1
- package/dist/autoconsent.cjs.js +22 -1
- package/dist/autoconsent.esm.js +22 -1
- package/dist/autoconsent.playwright.js +22 -1
- package/dist/autoconsent.standalone.js +23 -2
- package/dist/types/cmps/trustarc-top.d.ts +1 -0
- package/dist/types/eval-snippets.d.ts +1 -0
- package/lib/cmps/admiral.ts +10 -0
- package/lib/cmps/trustarc-top.ts +10 -1
- package/lib/eval-snippets.ts +7 -0
- package/package.json +1 -1
- package/rules/autoconsent/2gis.json +10 -0
- package/rules/autoconsent/adblockplus.json +94 -0
- package/rules/autoconsent/albelli-photobox.json +34 -0
- package/rules/autoconsent/alertamodal-cookies.json +29 -0
- package/rules/autoconsent/aliasdmc.json +46 -0
- package/rules/autoconsent/altamar-cookieconsent.json +45 -0
- package/rules/autoconsent/astro-cookie-notice-fzbxxtek.json +25 -0
- package/rules/autoconsent/autohero.json +49 -0
- package/rules/autoconsent/autokostencheck.de.json +50 -0
- package/rules/autoconsent/autoscout24.json +6 -0
- package/rules/autoconsent/avacy.json +21 -1
- package/rules/autoconsent/avg-cookiebanner.json +81 -0
- package/rules/autoconsent/axeptio-tcf.json +35 -0
- package/rules/autoconsent/bahn-de.json +1 -1
- package/rules/autoconsent/bayern-stmas.json +49 -0
- package/rules/autoconsent/bing.com-notice-cosmetic.json +28 -0
- package/rules/autoconsent/bing.com-notice.json +13 -0
- package/rules/autoconsent/bmedonline-es.json +16 -0
- package/rules/autoconsent/bo3.gg.json +43 -0
- package/rules/autoconsent/bsgdprcookies.json +16 -0
- package/rules/autoconsent/c15t.json +72 -0
- package/rules/autoconsent/casasrurales.json +15 -0
- package/rules/autoconsent/ccoo.json +40 -0
- package/rules/autoconsent/cdu-edu-au.json +29 -0
- package/rules/autoconsent/cnmc-gob-es.json +14 -0
- package/rules/autoconsent/codalt-cookie-consent.json +8 -0
- package/rules/autoconsent/comparandonos.json +66 -0
- package/rules/autoconsent/complianz-notice.json +2 -2
- package/rules/autoconsent/comundus-cookie-banner.json +43 -0
- package/rules/autoconsent/consent-backdrop.json +34 -0
- package/rules/autoconsent/cookie-accordion-settings.json +56 -0
- package/rules/autoconsent/cookie-bar-eu.json +21 -0
- package/rules/autoconsent/cookie-consent-root.json +55 -0
- package/rules/autoconsent/cookiecode.json +13 -0
- package/rules/autoconsent/cookies-tip-v1.json +9 -0
- package/rules/autoconsent/cookiesplus.json +20 -0
- package/rules/autoconsent/crtm.json +36 -0
- package/rules/autoconsent/cwarn.json +9 -0
- package/rules/autoconsent/diffuse-cookie-notice.json +21 -0
- package/rules/autoconsent/dijklander.json +18 -0
- package/rules/autoconsent/doc-du-juriste.json +44 -0
- package/rules/autoconsent/eagerly-tools-cookie.json +53 -0
- package/rules/autoconsent/easy-cookie-info.json +9 -0
- package/rules/autoconsent/edebe.json +22 -0
- package/rules/autoconsent/eduardolosilla.json +12 -0
- package/rules/autoconsent/educastur-alojaweb.json +13 -0
- package/rules/autoconsent/enzuzo.json +48 -0
- package/rules/autoconsent/eplaque.json +12 -0
- package/rules/autoconsent/fabrique-cookie-message.json +29 -0
- package/rules/autoconsent/flatsome-cookies.json +25 -0
- package/rules/autoconsent/florisvanbommel.json +32 -0
- package/rules/autoconsent/gameforge.json +42 -0
- package/rules/autoconsent/gamefound-com.json +12 -0
- package/rules/autoconsent/generalitat-catalunya.json +15 -0
- package/rules/autoconsent/ggzstandaarden.nl.json +13 -0
- package/rules/autoconsent/gleeden.json +14 -0
- package/rules/autoconsent/grrr-cookie-consent.json +24 -0
- package/rules/autoconsent/gsmpunt.json +43 -0
- package/rules/autoconsent/hallmark.json +16 -0
- package/rules/autoconsent/heerlijkehuisjes.json +18 -0
- package/rules/autoconsent/holidu.json +9 -0
- package/rules/autoconsent/ihavecookies.json +5 -1
- package/rules/autoconsent/imarina.json +25 -0
- package/rules/autoconsent/jobtoday.json +18 -0
- package/rules/autoconsent/kaggle.json +21 -0
- package/rules/autoconsent/kunstmaan-cookie-bar.json +50 -0
- package/rules/autoconsent/laravel-cc-banner.json +35 -0
- package/rules/autoconsent/laravel-eu-cookie-consent.json +47 -0
- package/rules/autoconsent/lastdodo.json +21 -0
- package/rules/autoconsent/le-livre-fr.json +14 -0
- package/rules/autoconsent/leetchi.json +16 -0
- package/rules/autoconsent/lezenvoordelijst.nl.json +38 -0
- package/rules/autoconsent/localbiz-cookie-notice.json +9 -0
- package/rules/autoconsent/maree-info.json +39 -0
- package/rules/autoconsent/mblock.json +28 -0
- package/rules/autoconsent/mediawiki-cookieconsent.json +24 -0
- package/rules/autoconsent/meduza.json +38 -0
- package/rules/autoconsent/mirasvit-gdpr.json +18 -7
- package/rules/autoconsent/mites.gob.es.json +18 -0
- package/rules/autoconsent/moneybird.json +61 -0
- package/rules/autoconsent/mrchadd.json +45 -0
- package/rules/autoconsent/newyorker-de.json +35 -0
- package/rules/autoconsent/nocturnhq.json +35 -0
- package/rules/autoconsent/noord-holland.nl.json +24 -0
- package/rules/autoconsent/npo-ccm.json +35 -8
- package/rules/autoconsent/omroepflevoland.json +60 -0
- package/rules/autoconsent/orejime.json +66 -0
- package/rules/autoconsent/plex.tv.json +37 -5
- package/rules/autoconsent/professoren-tum-de.json +13 -0
- package/rules/autoconsent/properstar.json +56 -0
- package/rules/autoconsent/r42-st-popup.json +37 -0
- package/rules/autoconsent/react-cookie-consent-cosmetic.json +40 -0
- package/rules/autoconsent/restaurants-nl.json +13 -0
- package/rules/autoconsent/reuma-nl.json +50 -0
- package/rules/autoconsent/reviq.json +47 -0
- package/rules/autoconsent/rwth-moodle.json +33 -0
- package/rules/autoconsent/sachsen-cookiebar.json +31 -0
- package/rules/autoconsent/sandstudio-cookie-tip.json +30 -0
- package/rules/autoconsent/schuurman-schoenen.json +40 -0
- package/rules/autoconsent/sg-cookies.json +80 -0
- package/rules/autoconsent/shopify-dux.json +32 -0
- package/rules/autoconsent/showroomprive.json +12 -0
- package/rules/autoconsent/studioibizz-cookieconsent.json +20 -0
- package/rules/autoconsent/stuvia.json +14 -0
- package/rules/autoconsent/supercontable.json +19 -0
- package/rules/autoconsent/swis-avg.json +24 -0
- package/rules/autoconsent/termsfeed.json +4 -4
- package/rules/autoconsent/termsfeed3.json +2 -2
- package/rules/autoconsent/travix.json +37 -0
- package/rules/autoconsent/tu-darmstadt.json +63 -0
- package/rules/autoconsent/tusclasesparticulares.com.json +14 -0
- package/rules/autoconsent/tutosurexcel.json +45 -0
- package/rules/autoconsent/ub-hu-berlin.json +34 -0
- package/rules/autoconsent/udg.edu.json +47 -0
- package/rules/autoconsent/uned-barbastro.json +58 -0
- package/rules/autoconsent/unitedconsumers.json +23 -0
- package/rules/autoconsent/uregina.json +35 -0
- package/rules/autoconsent/vantilburgonline.json +17 -0
- package/rules/autoconsent/vendic-cookiebar.json +32 -0
- package/rules/autoconsent/vogue-nl.json +42 -0
- package/rules/autoconsent/vrg-bottom-cookies.json +52 -0
- package/rules/autoconsent/vszutphen.json +13 -0
- package/rules/autoconsent/vue-cookie-law.json +42 -0
- package/rules/autoconsent/wbd-legal-terms.json +5 -1
- package/rules/autoconsent/websale.json +20 -0
- package/rules/autoconsent/wiki.gg.json +1 -1
- package/rules/autoconsent/wpconsent.json +2 -2
- package/rules/autoconsent/zoomalia.json +13 -0
- package/rules/autoconsent/zorgenzekerheid.nl.json +13 -0
- package/rules/compact-rules.json +1 -1
- package/rules/rule-index.json +1 -1
- package/rules/rules.json +1 -1
- package/tests/2gis.spec.ts +3 -0
- package/tests/adblockplus.spec.ts +7 -0
- package/tests/admiral.spec.ts +5 -4
- package/tests/albelli-photobox.spec.ts +8 -0
- package/tests/alertamodal-cookies.spec.ts +8 -0
- package/tests/aliasdmc.spec.ts +10 -0
- package/tests/altamar-cookieconsent.spec.ts +6 -0
- package/tests/astro-cookie-notice-fzbxxtek.spec.ts +9 -0
- package/tests/autohero.spec.ts +3 -0
- package/tests/autokostencheck.de.spec.ts +7 -0
- package/tests/avacy.spec.ts +6 -0
- package/tests/avg-cookiebanner.spec.ts +17 -0
- package/tests/axeptio-tcf.spec.ts +6 -0
- package/tests/bahn-de.spec.ts +1 -1
- package/tests/bayern-stmas.spec.ts +7 -0
- package/tests/bing.com-notice-cosmetic.spec.ts +5 -0
- package/tests/bing.com-notice.spec.ts +6 -0
- package/tests/bmedonline-es.spec.ts +3 -0
- package/tests/bo3.gg.spec.ts +3 -0
- package/tests/bsgdprcookies.spec.ts +6 -0
- package/tests/c15t.spec.ts +18 -0
- package/tests/casasrurales.spec.ts +3 -0
- package/tests/ccoo.spec.ts +5 -0
- package/tests/cdu-edu-au.spec.ts +3 -0
- package/tests/cnmc-gob-es.spec.ts +3 -0
- package/tests/codalt-cookie-consent.spec.ts +6 -0
- package/tests/comparandonos.spec.ts +3 -0
- package/tests/complianz-notice.spec.ts +2 -0
- package/tests/comundus-cookie-banner.spec.ts +9 -0
- package/tests/consent-backdrop.spec.ts +9 -0
- package/tests/cookie-accordion-settings.spec.ts +5 -0
- package/tests/cookie-bar-eu.spec.ts +8 -0
- package/tests/cookie-consent-root.spec.ts +3 -0
- package/tests/cookiecode.spec.ts +3 -0
- package/tests/cookies-tip-v1.spec.ts +3 -0
- package/tests/cookiesplus.spec.ts +6 -0
- package/tests/crtm.spec.ts +3 -0
- package/tests/cwarn.spec.ts +5 -0
- package/tests/diffuse-cookie-notice.spec.ts +8 -0
- package/tests/dijklander.spec.ts +3 -0
- package/tests/doc-du-juriste.spec.ts +3 -0
- package/tests/eagerly-tools-cookie.spec.ts +8 -0
- package/tests/easy-cookie-info.spec.ts +9 -0
- package/tests/edebe.spec.ts +3 -0
- package/tests/eduardolosilla.spec.ts +3 -0
- package/tests/educastur-alojaweb.spec.ts +6 -0
- package/tests/enzuzo.spec.ts +8 -0
- package/tests/eplaque.spec.ts +3 -0
- package/tests/fabrique-cookie-message.spec.ts +3 -0
- package/tests/flatsome-cookies.spec.ts +3 -0
- package/tests/florisvanbommel.spec.ts +8 -0
- package/tests/gameforge.spec.ts +8 -0
- package/tests/gamefound-com.spec.ts +3 -0
- package/tests/generalitat-catalunya.spec.ts +3 -0
- package/tests/ggzstandaarden.nl.spec.ts +3 -0
- package/tests/gleeden.spec.ts +3 -0
- package/tests/grrr-cookie-consent.spec.ts +3 -0
- package/tests/gsmpunt.spec.ts +3 -0
- package/tests/hallmark.spec.ts +3 -0
- package/tests/heerlijkehuisjes.spec.ts +3 -0
- package/tests/holidu.spec.ts +11 -0
- package/tests/ihavecookies.spec.ts +7 -1
- package/tests/imarina.spec.ts +8 -0
- package/tests/jobtoday.spec.ts +5 -0
- package/tests/kaggle.spec.ts +3 -0
- package/tests/kunstmaan-cookie-bar.spec.ts +8 -0
- package/tests/laravel-cc-banner.spec.ts +3 -0
- package/tests/laravel-eu-cookie-consent.spec.ts +14 -0
- package/tests/lastdodo.spec.ts +9 -0
- package/tests/le-livre-fr.spec.ts +3 -0
- package/tests/leetchi.spec.ts +3 -0
- package/tests/lezenvoordelijst.nl.spec.ts +3 -0
- package/tests/localbiz-cookie-notice.spec.ts +7 -0
- package/tests/maree-info.spec.ts +3 -0
- package/tests/mblock.spec.ts +3 -0
- package/tests/mediawiki-cookieconsent.spec.ts +15 -0
- package/tests/meduza.spec.ts +3 -0
- package/tests/mirasvit-gdpr.spec.ts +5 -0
- package/tests/mites.gob.es.spec.ts +3 -0
- package/tests/moneybird.spec.ts +8 -0
- package/tests/mrchadd.spec.ts +3 -0
- package/tests/newyorker-de.spec.ts +3 -0
- package/tests/nocturnhq.spec.ts +3 -0
- package/tests/noord-holland.nl.spec.ts +5 -0
- package/tests/npo-ccm.spec.ts +3 -0
- package/tests/omroepflevoland.spec.ts +9 -0
- package/tests/orejime.spec.ts +20 -0
- package/tests/plex.tv.spec.ts +12 -3
- package/tests/professoren-tum-de.spec.ts +3 -0
- package/tests/properstar.spec.ts +9 -0
- package/tests/r42-st-popup.spec.ts +7 -0
- package/tests/react-cookie-consent-cosmetic.spec.ts +9 -0
- package/tests/restaurants-nl.spec.ts +3 -0
- package/tests/reuma-nl.spec.ts +6 -0
- package/tests/reviq.spec.ts +5 -0
- package/tests/rwth-moodle.spec.ts +3 -0
- package/tests/sachsen-cookiebar.spec.ts +7 -0
- package/tests/sandstudio-cookie-tip.spec.ts +8 -0
- package/tests/schuurman-schoenen.spec.ts +7 -0
- package/tests/sg-cookies.spec.ts +28 -0
- package/tests/shopify-dux.spec.ts +15 -0
- package/tests/showroomprive.spec.ts +14 -0
- package/tests/studioibizz-cookieconsent.spec.ts +7 -0
- package/tests/stuvia.spec.ts +5 -0
- package/tests/supercontable.spec.ts +3 -0
- package/tests/swis-avg.spec.ts +7 -0
- package/tests/termsfeed.spec.ts +3 -0
- package/tests/termsfeed3.spec.ts +7 -1
- package/tests/travix.spec.ts +9 -0
- package/tests/trustarc.spec.ts +7 -0
- package/tests/tu-darmstadt.spec.ts +8 -0
- package/tests/tusclasesparticulares.com.spec.ts +3 -0
- package/tests/tutosurexcel.spec.ts +3 -0
- package/tests/ub-hu-berlin.spec.ts +3 -0
- package/tests/udg.edu.spec.ts +3 -0
- package/tests/uned-barbastro.spec.ts +3 -0
- package/tests/unitedconsumers.spec.ts +3 -0
- package/tests/uregina.spec.ts +3 -0
- package/tests/vantilburgonline.spec.ts +3 -0
- package/tests/vendic-cookiebar.spec.ts +8 -0
- package/tests/vogue-nl.spec.ts +3 -0
- package/tests/vrg-bottom-cookies.spec.ts +3 -0
- package/tests/vszutphen.spec.ts +3 -0
- package/tests/vue-cookie-law.spec.ts +9 -0
- package/tests/wbd-legal-terms.spec.ts +1 -0
- package/tests/websale.spec.ts +16 -0
- package/tests/wpconsent.spec.ts +1 -1
- package/tests/zoomalia.spec.ts +8 -0
- package/tests/zorgenzekerheid.nl.spec.ts +3 -0
- package/rules/generated/auto_CA_promessedefleurs.com_noy.json +0 -40
- package/rules/generated/auto_CH_chambres-hotes.fr_hay.json +0 -40
- package/rules/generated/auto_CH_euroairport.com_3yl.json +0 -40
- package/rules/generated/auto_FR_carnavalet.paris.fr_s1s.json +0 -40
- package/rules/generated/auto_FR_cre.fr_sd4.json +0 -40
- package/rules/generated/auto_FR_cybevasion.fr_jjp.json +0 -40
- package/rules/generated/auto_FR_ifrap.org_gtx.json +0 -40
- package/rules/generated/auto_FR_ludum.fr_gl5.json +0 -40
- package/rules/generated/auto_FR_meillandrichardier.com_c2f.json +0 -40
- package/rules/generated/auto_FR_naval-group.com_yzx.json +0 -40
- package/rules/generated/auto_FR_petitpalais.paris.fr_9s1.json +0 -40
- package/rules/generated/auto_GB_shopify.com_0.json +0 -28
- package/rules/generated/auto_NL_cheaptickets.nl_cwt.json +0 -40
- package/tests/generated/auto_CA_promessedefleurs.com_noy.spec.ts +0 -6
- package/tests/generated/auto_CH_chambres-hotes.fr_hay.spec.ts +0 -6
- package/tests/generated/auto_CH_euroairport.com_3yl.spec.ts +0 -6
- package/tests/generated/auto_FR_carnavalet.paris.fr_s1s.spec.ts +0 -6
- package/tests/generated/auto_FR_cre.fr_sd4.spec.ts +0 -2
- package/tests/generated/auto_FR_cybevasion.fr_jjp.spec.ts +0 -6
- package/tests/generated/auto_FR_ifrap.org_gtx.spec.ts +0 -2
- package/tests/generated/auto_FR_ludum.fr_gl5.spec.ts +0 -2
- package/tests/generated/auto_FR_meillandrichardier.com_c2f.spec.ts +0 -6
- package/tests/generated/auto_FR_naval-group.com_yzx.spec.ts +0 -6
- package/tests/generated/auto_FR_petitpalais.paris.fr_9s1.spec.ts +0 -6
- package/tests/generated/auto_GB_shopify.com_0.spec.ts +0 -2
- package/tests/generated/auto_NL_cheaptickets.nl_cwt.spec.ts +0 -6
|
@@ -7,6 +7,7 @@ export default class TrustArcTop extends AutoConsentCMPBase {
|
|
|
7
7
|
runContext: RunContext;
|
|
8
8
|
_shortcutButton: HTMLElement | null;
|
|
9
9
|
_optInDone: boolean;
|
|
10
|
+
_optOutDone: boolean;
|
|
10
11
|
constructor(autoconsentInstance: AutoConsent);
|
|
11
12
|
get hasSelfTest(): boolean;
|
|
12
13
|
get isIntermediate(): boolean;
|
|
@@ -25,6 +25,7 @@ export declare const snippets: {
|
|
|
25
25
|
EVAL_ADULTFRIENDFINDER_TEST: () => boolean;
|
|
26
26
|
EVAL_AYLO_COOKIE_MANAGER_READY: () => boolean;
|
|
27
27
|
EVAL_BAHN_TEST: () => boolean;
|
|
28
|
+
EVAL_BING_NOTICE_CLOSE: () => boolean;
|
|
28
29
|
EVAL_BIGCOMMERCE_CONSENT_MANAGER_DETECT: () => boolean;
|
|
29
30
|
EVAL_BORLABS_0: () => boolean;
|
|
30
31
|
EVAL_CC_BANNER2_0: () => boolean;
|
package/lib/cmps/admiral.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import AutoConsentCMPBase from './base';
|
|
2
|
+
import { waitFor } from '../utils';
|
|
2
3
|
|
|
3
4
|
export default class Admiral extends AutoConsentCMPBase {
|
|
4
5
|
name = 'Admiral';
|
|
@@ -62,6 +63,15 @@ export default class Admiral extends AutoConsentCMPBase {
|
|
|
62
63
|
"xpath///button[contains(., 'Afvis alle') or contains(., 'Reject all') or contains(., 'Odbaci sve') or contains(., 'Rechazar todo') or contains(., 'Atmesti visus') or contains(., 'Odmítnout vše') or contains(., 'Απόρριψη όλων') or contains(., 'Rejeitar tudo') or contains(., 'Tümünü reddet') or contains(., 'Отклонить все') or contains(., 'Noraidīt visu') or contains(., 'Avvisa alla') or contains(., 'Odrzuć wszystkie') or contains(., 'Alles afwijzen') or contains(., 'Отхвърляне на всички') or contains(., 'Rifiuta tutto') or contains(., 'Zavrni vse') or contains(., 'Az összes elutasítása') or contains(., 'Respingeți tot') or contains(., 'Alles ablehnen') or contains(., 'Tout rejeter') or contains(., 'Odmietnuť všetko') or contains(., 'Lükka kõik tagasi') or contains(., 'Hylkää kaikki')]";
|
|
63
64
|
|
|
64
65
|
if (await this.waitForElement(rejectAllSelector, 500)) {
|
|
66
|
+
const rejectButton = this.elementSelector(rejectAllSelector)[0] as HTMLButtonElement;
|
|
67
|
+
if (rejectButton.disabled) {
|
|
68
|
+
// some configurations keep the buttons disabled until the card text is scrolled to the bottom
|
|
69
|
+
const cardBody = rejectButton.closest('div[class*=CardHeader]')?.parentElement?.querySelector('div[class*=CardBody]');
|
|
70
|
+
if (cardBody) {
|
|
71
|
+
cardBody.scrollTop = cardBody.scrollHeight;
|
|
72
|
+
}
|
|
73
|
+
await waitFor(() => !rejectButton.disabled, 10, 200);
|
|
74
|
+
}
|
|
65
75
|
return await this.click(rejectAllSelector);
|
|
66
76
|
}
|
|
67
77
|
|
package/lib/cmps/trustarc-top.ts
CHANGED
|
@@ -9,6 +9,7 @@ const shortcutOptIn = '#truste-consent-button';
|
|
|
9
9
|
const popupContent = '#truste-consent-content';
|
|
10
10
|
const bannerOverlay = '#trustarc-banner-overlay';
|
|
11
11
|
const bannerContainer = '#truste-consent-track';
|
|
12
|
+
const prefCenterDeclineAll = ['.truste_popframe.trustarc_newcm_container', 'button[data-button-key="decline_all"]'];
|
|
12
13
|
|
|
13
14
|
export default class TrustArcTop extends AutoConsentCMPBase {
|
|
14
15
|
name = 'TrustArc-top';
|
|
@@ -20,11 +21,13 @@ export default class TrustArcTop extends AutoConsentCMPBase {
|
|
|
20
21
|
|
|
21
22
|
_shortcutButton: HTMLElement | null;
|
|
22
23
|
_optInDone: boolean;
|
|
24
|
+
_optOutDone: boolean;
|
|
23
25
|
|
|
24
26
|
constructor(autoconsentInstance: AutoConsent) {
|
|
25
27
|
super(autoconsentInstance);
|
|
26
28
|
this._shortcutButton = null; // indicates if the "reject all" button is detected
|
|
27
29
|
this._optInDone = false;
|
|
30
|
+
this._optOutDone = false;
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
get hasSelfTest(): boolean {
|
|
@@ -32,7 +35,7 @@ export default class TrustArcTop extends AutoConsentCMPBase {
|
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
get isIntermediate(): boolean {
|
|
35
|
-
if (this._optInDone) {
|
|
38
|
+
if (this._optInDone || this._optOutDone) {
|
|
36
39
|
return false;
|
|
37
40
|
}
|
|
38
41
|
return !this._shortcutButton;
|
|
@@ -66,6 +69,12 @@ export default class TrustArcTop extends AutoConsentCMPBase {
|
|
|
66
69
|
hideElements(getStyleElement(), `.truste_popframe, .truste_overlay, .truste_box_overlay, ${bannerContainer}`);
|
|
67
70
|
await this.click(cookieSettingsButton);
|
|
68
71
|
|
|
72
|
+
// newer versions render the preference center in a shadow root on the main page instead of an iframe
|
|
73
|
+
if (await this.waitForElement(prefCenterDeclineAll, 3000)) {
|
|
74
|
+
this._optOutDone = true;
|
|
75
|
+
await this.click(prefCenterDeclineAll);
|
|
76
|
+
}
|
|
77
|
+
|
|
69
78
|
// schedule cleanup
|
|
70
79
|
setTimeout(() => {
|
|
71
80
|
getStyleElement().remove();
|
package/lib/eval-snippets.ts
CHANGED
|
@@ -97,6 +97,13 @@ export const snippets = {
|
|
|
97
97
|
EVAL_ADULTFRIENDFINDER_TEST: () => !!localStorage.getItem('cookieConsent'),
|
|
98
98
|
EVAL_AYLO_COOKIE_MANAGER_READY: () => !!(window.wl_cookie_consent_manager || window._Cookie_Consent_Manager_brand),
|
|
99
99
|
EVAL_BAHN_TEST: () => utag.gdpr.getSelectedCategories().length === 1,
|
|
100
|
+
// the close handler listens for mouseup, which element.click() does not dispatch
|
|
101
|
+
EVAL_BING_NOTICE_CLOSE: () => {
|
|
102
|
+
const close = document.querySelector('#bnp_ttc_close');
|
|
103
|
+
close.dispatchEvent(new MouseEvent('mouseup', { bubbles: true, cancelable: true, view: window }));
|
|
104
|
+
close.click();
|
|
105
|
+
return true;
|
|
106
|
+
},
|
|
100
107
|
EVAL_BIGCOMMERCE_CONSENT_MANAGER_DETECT: () => !!(window.consentManager && window.consentManager.version),
|
|
101
108
|
EVAL_BORLABS_0: () =>
|
|
102
109
|
!JSON.parse(
|
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "2gis",
|
|
3
|
+
"vendorUrl": "https://2gis.ru/",
|
|
4
|
+
"prehideSelectors": ["div:has(> div > a[href*=\"law.2gis.\"][href*=\"/privacy/cookie\"])"],
|
|
5
|
+
"detectCmp": [{ "exists": "div:has(> div > a[href*=\"law.2gis.\"][href*=\"/privacy/cookie\"])" }],
|
|
6
|
+
"detectPopup": [{ "visible": "div:has(> div > a[href*=\"law.2gis.\"][href*=\"/privacy/cookie\"])" }],
|
|
7
|
+
"optIn": [{ "waitForThenClick": "div:has(> div > a[href*=\"law.2gis.\"][href*=\"/privacy/cookie\"]) > div:last-child" }],
|
|
8
|
+
"optOut": [{ "waitForThenClick": "div:has(> div > a[href*=\"law.2gis.\"][href*=\"/privacy/cookie\"]) > div:last-child" }],
|
|
9
|
+
"test": [{ "waitForVisible": "div:has(> div > a[href*=\"law.2gis.\"][href*=\"/privacy/cookie\"])", "check": "none", "timeout": 1000 }]
|
|
10
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "adblockplus",
|
|
3
|
+
"vendorUrl": "https://adblockplus.org/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"runContext": {
|
|
6
|
+
"main": true,
|
|
7
|
+
"frame": false,
|
|
8
|
+
"urlPattern": "^https?://(\\w+\\.)?adblockplus\\.org/"
|
|
9
|
+
},
|
|
10
|
+
"prehideSelectors": ["#cookiebar", "form.cookieprompt"],
|
|
11
|
+
"detectCmp": [
|
|
12
|
+
{
|
|
13
|
+
"exists": "#cookiebar .cookies-settings, form.cookieprompt .cookies-settings"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"detectPopup": [
|
|
17
|
+
{
|
|
18
|
+
"visible": "#cookiebar .cookies-settings, form.cookieprompt .cookies-settings",
|
|
19
|
+
"check": "any"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"optIn": [
|
|
23
|
+
{
|
|
24
|
+
"if": {
|
|
25
|
+
"visible": "form.cookieprompt .cookies-submit"
|
|
26
|
+
},
|
|
27
|
+
"then": [
|
|
28
|
+
{
|
|
29
|
+
"waitForThenClick": "form.cookieprompt .cookies-submit"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"else": [
|
|
33
|
+
{
|
|
34
|
+
"waitForThenClick": "#cookiebar .cookies-submit"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"optOut": [
|
|
40
|
+
{
|
|
41
|
+
"if": {
|
|
42
|
+
"visible": "form.cookieprompt .cookies-settings"
|
|
43
|
+
},
|
|
44
|
+
"then": [
|
|
45
|
+
{
|
|
46
|
+
"comment": "mobile layout opens a full-page settings form",
|
|
47
|
+
"waitForThenClick": "form.cookieprompt .cookies-settings"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"waitForVisible": "form.cookiepage .cookies-save"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"if": {
|
|
54
|
+
"exists": "form.cookiepage input.tracking-cookies:checked"
|
|
55
|
+
},
|
|
56
|
+
"then": [
|
|
57
|
+
{
|
|
58
|
+
"click": "form.cookiepage input.tracking-cookies"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"click": "form.cookiepage .cookies-save"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"else": [
|
|
67
|
+
{
|
|
68
|
+
"waitForThenClick": "#cookiebar .cookies-settings"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"waitForVisible": "#cookiebar .cookies-save"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"if": {
|
|
75
|
+
"exists": "#cookiebar input.tracking-cookies:checked"
|
|
76
|
+
},
|
|
77
|
+
"then": [
|
|
78
|
+
{
|
|
79
|
+
"click": "#cookiebar input.tracking-cookies"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"click": "#cookiebar .cookies-save"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"test": [
|
|
90
|
+
{
|
|
91
|
+
"cookieContains": "eyeo-ga-opt-out=true"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "albelli-photobox",
|
|
3
|
+
"vendorUrl": "https://www.albelli.nl/",
|
|
4
|
+
"cosmetic": false,
|
|
5
|
+
"prehideSelectors": [".cookie-consent-modal"],
|
|
6
|
+
"detectCmp": [{ "exists": ".cookie-consent-modal [data-cy=cookie-consent-accept-all-button]" }],
|
|
7
|
+
"detectPopup": [{ "visible": ".cookie-consent-modal [data-cy=cookie-consent-accept-all-button]" }],
|
|
8
|
+
"optIn": [{ "waitForThenClick": ".cookie-consent-modal [data-cy=cookie-consent-accept-all-button]" }],
|
|
9
|
+
"optOut": [
|
|
10
|
+
{
|
|
11
|
+
"if": { "visible": ".cookie-consent-modal [data-cy=cookie-consent-reject-button]" },
|
|
12
|
+
"then": [{ "waitForThenClick": ".cookie-consent-modal [data-cy=cookie-consent-reject-button]" }],
|
|
13
|
+
"else": [
|
|
14
|
+
{
|
|
15
|
+
"if": { "visible": ".cookie-consent-modal [data-cy=cookie-consent-manage-settings]" },
|
|
16
|
+
"then": [{ "waitForThenClick": ".cookie-consent-modal [data-cy=cookie-consent-manage-settings]" }],
|
|
17
|
+
"else": [{ "waitForThenClick": ".cookie-consent-modal [data-cy=cookie-consent-manage-settingsFR]" }]
|
|
18
|
+
},
|
|
19
|
+
{ "waitForVisible": ".cookie-consent-modal [data-cy=cookie-consent-accept-selected-button]" },
|
|
20
|
+
{
|
|
21
|
+
"click": ".cookie-consent-modal .cookie-selection.--full input[type=checkbox]:checked:not(:disabled)",
|
|
22
|
+
"all": true,
|
|
23
|
+
"optional": true
|
|
24
|
+
},
|
|
25
|
+
{ "waitForThenClick": ".cookie-consent-modal [data-cy=cookie-consent-accept-selected-button]" }
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"test": [
|
|
30
|
+
{
|
|
31
|
+
"any": [{ "cookieContains": "cookie_consent=00" }, { "cookieContains": "cookie_consent=10" }]
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "alertamodal-cookies",
|
|
3
|
+
"prehideSelectors": [".alertaModal .msg.cookies"],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": ".alertaModal .msg.cookies #rechazaCookies"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"visible": ".alertaModal .msg.cookies #rechazaCookies"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": ".alertaModal .msg.cookies #aceptaCookies"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optOut": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": ".alertaModal .msg.cookies #rechazaCookies"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"test": [
|
|
25
|
+
{
|
|
26
|
+
"cookieContains": "aceptaCookies=false"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "aliasdmc",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://([\\w-]+\\.)?aliasdmc\\.fr/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["#cookieBarRGPDPop", "#cookieBarRGPDOverlay"],
|
|
7
|
+
"detectCmp": [
|
|
8
|
+
{
|
|
9
|
+
"exists": "#cookieBarRGPDPop"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"detectPopup": [
|
|
13
|
+
{
|
|
14
|
+
"visible": "#cookieBarRGPDPop"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"optIn": [
|
|
18
|
+
{
|
|
19
|
+
"waitForThenClick": "#cookieBarRGPDPop a[href*='validerAll']"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"optOut": [
|
|
23
|
+
{
|
|
24
|
+
"waitForThenClick": "#cookieBarRGPDPop a[href*='loadParam']"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"waitForVisible": "#cookieBarRGPDPopContent [data-cookiebarrgpd='0']"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"click": "#cookieBarRGPDPopContent [data-cookiebarrgpd='0']",
|
|
31
|
+
"all": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"waitForThenClick": "#cookieBarRGPDPop a[href*='valideChoix']"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"waitForVisible": "#cookieBarRGPDPop",
|
|
38
|
+
"check": "none"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"test": [
|
|
42
|
+
{
|
|
43
|
+
"cookieContains": "cookieBarRGPDpublicite\":0"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "altamar-cookieconsent",
|
|
3
|
+
"prehideSelectors": [],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": "#cookieConsent #cookiesButtomCustomize"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"visible": "#cookieConsent #cookiesButtomCustomize"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"optIn": [
|
|
15
|
+
{
|
|
16
|
+
"waitForThenClick": "#cookieConsent #cookiesButtomAccept"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"optOut": [
|
|
20
|
+
{
|
|
21
|
+
"waitForThenClick": "#cookieConsent #cookiesButtomCustomize"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"waitForVisible": "#cookieCustomizeWrap"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"if": {
|
|
28
|
+
"exists": "#cookieAnalyticsChk:checked"
|
|
29
|
+
},
|
|
30
|
+
"then": [
|
|
31
|
+
{
|
|
32
|
+
"click": "#cookieAnalyticsChk"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"waitForThenClick": "#cookieConsent #cookiesButtomAccept[data-mode='custom']"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"test": [
|
|
41
|
+
{
|
|
42
|
+
"cookieContains": "Analytics=no"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "astro-cookie-notice-fzbxxtek",
|
|
3
|
+
"cosmetic": true,
|
|
4
|
+
"prehideSelectors": ["div[role=\"region\"][aria-label=\"Cookie notice\"][data-astro-cid-fzbxxtek]"],
|
|
5
|
+
"detectCmp": [
|
|
6
|
+
{
|
|
7
|
+
"exists": "div[role=\"region\"][aria-label=\"Cookie notice\"][data-astro-cid-fzbxxtek] > button[data-astro-cid-fzbxxtek]"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"detectPopup": [
|
|
11
|
+
{
|
|
12
|
+
"visible": "div[role=\"region\"][aria-label=\"Cookie notice\"][data-astro-cid-fzbxxtek]"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"optIn": [
|
|
16
|
+
{
|
|
17
|
+
"waitForThenClick": "div[role=\"region\"][aria-label=\"Cookie notice\"][data-astro-cid-fzbxxtek] > button[data-astro-cid-fzbxxtek]"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optOut": [
|
|
21
|
+
{
|
|
22
|
+
"hide": "div[role=\"region\"][aria-label=\"Cookie notice\"][data-astro-cid-fzbxxtek]"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "autohero",
|
|
3
|
+
"runContext": {
|
|
4
|
+
"urlPattern": "^https?://(www\\.)?autohero\\.com/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": [],
|
|
7
|
+
"detectCmp": [
|
|
8
|
+
{
|
|
9
|
+
"exists": "button[data-qa-selector=\"cookie-consent-configure\"]"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"detectPopup": [
|
|
13
|
+
{
|
|
14
|
+
"visible": "button[data-qa-selector=\"cookie-consent-configure\"]"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"optIn": [
|
|
18
|
+
{
|
|
19
|
+
"waitForThenClick": "button[data-qa-selector=\"cookie-consent-accept-all\"]"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"optOut": [
|
|
23
|
+
{
|
|
24
|
+
"waitForThenClick": "button[data-qa-selector=\"cookie-consent-configure\"]"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"waitForVisible": "label[data-qa-selector=\"input-box\"][data-qa-selector-value=\"MARKETING\"]"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"if": {
|
|
31
|
+
"exists": "label[data-qa-selector=\"input-box\"][data-qa-value=\"true\"]:not(.input-box__disabled) input"
|
|
32
|
+
},
|
|
33
|
+
"then": [
|
|
34
|
+
{
|
|
35
|
+
"click": "label[data-qa-selector=\"input-box\"][data-qa-value=\"true\"]:not(.input-box__disabled) input",
|
|
36
|
+
"all": true
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"waitForThenClick": "button[data-qa-selector=\"cookie-consent-configure\"]"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"test": [
|
|
45
|
+
{
|
|
46
|
+
"cookieContains": "consent=0"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "autokostencheck.de",
|
|
3
|
+
"_metadata": {
|
|
4
|
+
"vendorUrl": "https://www.autokostencheck.de/"
|
|
5
|
+
},
|
|
6
|
+
"cosmetic": false,
|
|
7
|
+
"runContext": {
|
|
8
|
+
"main": true,
|
|
9
|
+
"frame": false,
|
|
10
|
+
"urlPattern": "^https?://(www\\.)?autokostencheck\\.de/"
|
|
11
|
+
},
|
|
12
|
+
"prehideSelectors": [".cookiefirst-root", "#cmpwrapper"],
|
|
13
|
+
"detectCmp": [{ "exists": "script[src*='consent.cookiefirst.com'],.cookiefirst-root,#cmpwrapper" }],
|
|
14
|
+
"detectPopup": [
|
|
15
|
+
{
|
|
16
|
+
"any": [
|
|
17
|
+
{ "visible": ".cookiefirst-root button[data-cookiefirst-action=adjust]", "check": "any" },
|
|
18
|
+
{ "visible": ["#cmpwrapper", "#cmpbox .cmpmore"], "check": "any" }
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"optIn": [
|
|
23
|
+
{ "waitForVisible": ["#cmpwrapper", "#cmpbox .cmpmore"], "timeout": 2000, "check": "any", "optional": true },
|
|
24
|
+
{
|
|
25
|
+
"if": { "visible": ["#cmpwrapper", "#cmpbox .cmpmore"], "check": "any" },
|
|
26
|
+
"then": [{ "eval": "EVAL_CONSENTMANAGER_4" }]
|
|
27
|
+
},
|
|
28
|
+
{ "waitForVisible": ".cookiefirst-root button[data-cookiefirst-action=accept]", "timeout": 2000, "check": "any", "optional": true },
|
|
29
|
+
{
|
|
30
|
+
"if": { "visible": ".cookiefirst-root button[data-cookiefirst-action=accept]", "check": "any" },
|
|
31
|
+
"then": [{ "click": ".cookiefirst-root button[data-cookiefirst-action=accept]" }]
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"optOut": [
|
|
35
|
+
{ "waitForVisible": ["#cmpwrapper", "#cmpbox .cmpmore"], "timeout": 2000, "check": "any", "optional": true },
|
|
36
|
+
{
|
|
37
|
+
"if": { "visible": ["#cmpwrapper", "#cmpbox .cmpmore"], "check": "any" },
|
|
38
|
+
"then": [{ "eval": "EVAL_CONSENTMANAGER_3" }]
|
|
39
|
+
},
|
|
40
|
+
{ "waitForVisible": ".cookiefirst-root button[data-cookiefirst-action=adjust]", "timeout": 2000, "check": "any", "optional": true },
|
|
41
|
+
{
|
|
42
|
+
"if": { "visible": ".cookiefirst-root button[data-cookiefirst-action=adjust]", "check": "any" },
|
|
43
|
+
"then": [
|
|
44
|
+
{ "click": ".cookiefirst-root button[data-cookiefirst-action=adjust]" },
|
|
45
|
+
{ "waitForThenClick": "button[data-cookiefirst-action=reject_second]" }
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"test": [{ "eval": "EVAL_CONSENTMANAGER_5" }, { "eval": "EVAL_COOKIEFIRST_0" }]
|
|
50
|
+
}
|
|
@@ -20,6 +20,12 @@
|
|
|
20
20
|
"optOut": [
|
|
21
21
|
{
|
|
22
22
|
"waitForThenClick": "#as24-cmp-popup [data-testid=\"as24-cmp-decline-all-button\"]"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"comment": "the full CMP script re-shows the popup if it initializes before the consent cookie is written",
|
|
26
|
+
"waitForThenClick": "#as24-cmp-popup [data-testid=\"as24-cmp-decline-all-button\"]",
|
|
27
|
+
"timeout": 1000,
|
|
28
|
+
"optional": true
|
|
23
29
|
}
|
|
24
30
|
],
|
|
25
31
|
"test": [
|
|
@@ -9,7 +9,27 @@
|
|
|
9
9
|
{
|
|
10
10
|
"if": { "visible": ".as-oil .as-js-reject-all, .AvacyBanner .as-js-reject-all", "check": "any" },
|
|
11
11
|
"then": [{ "waitForThenClick": ".as-oil .as-js-reject-all, .AvacyBanner .as-js-reject-all" }],
|
|
12
|
-
"else": [
|
|
12
|
+
"else": [
|
|
13
|
+
{
|
|
14
|
+
"if": { "visible": ".as-oil .as-js-only-essentials", "check": "any" },
|
|
15
|
+
"then": [{ "click": ".as-oil .as-js-only-essentials" }],
|
|
16
|
+
"else": [
|
|
17
|
+
{
|
|
18
|
+
"if": { "exists": ".as-oil .as-js-close-banner, .AvacyBanner .as-js-close-banner" },
|
|
19
|
+
"then": [{ "waitForThenClick": ".as-oil .as-js-close-banner, .AvacyBanner .as-js-close-banner" }],
|
|
20
|
+
"else": [
|
|
21
|
+
{ "waitForThenClick": ".as-oil .as-js-advanced-settings" },
|
|
22
|
+
{ "waitForVisible": "#as-oil-cpc .as-js-optin" },
|
|
23
|
+
{
|
|
24
|
+
"if": { "visible": "#as-oil-cpc .as-js-btn-deactivate-all" },
|
|
25
|
+
"then": [{ "click": "#as-oil-cpc .as-js-btn-deactivate-all" }]
|
|
26
|
+
},
|
|
27
|
+
{ "click": "#as-oil-cpc .as-js-optin" }
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
13
33
|
}
|
|
14
34
|
]
|
|
15
35
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "avg-cookiebanner",
|
|
3
|
+
"prehideSelectors": ["#avg-cookiebanner"],
|
|
4
|
+
"detectCmp": [
|
|
5
|
+
{
|
|
6
|
+
"exists": "#avg-cookiebanner"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"detectPopup": [
|
|
10
|
+
{
|
|
11
|
+
"cookieContains": "__avgAskUser=false",
|
|
12
|
+
"negated": true
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"visible": "#avg-cookiebanner:not(.state-close)"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"optIn": [
|
|
19
|
+
{
|
|
20
|
+
"if": {
|
|
21
|
+
"exists": "#avg-cookiebanner .acceptAll"
|
|
22
|
+
},
|
|
23
|
+
"then": [
|
|
24
|
+
{
|
|
25
|
+
"waitForThenClick": "#avg-cookiebanner .acceptAll"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"else": [
|
|
29
|
+
{
|
|
30
|
+
"click": "#avg-cookiebanner .avg-cookie:not(:checked)",
|
|
31
|
+
"all": true,
|
|
32
|
+
"optional": true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"waitForThenClick": "#avg-cookiebanner .save"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"optOut": [
|
|
41
|
+
{
|
|
42
|
+
"if": {
|
|
43
|
+
"exists": "#avg-cookiebanner .rejectAll"
|
|
44
|
+
},
|
|
45
|
+
"then": [
|
|
46
|
+
{
|
|
47
|
+
"waitForThenClick": "#avg-cookiebanner .rejectAll"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"else": [
|
|
51
|
+
{
|
|
52
|
+
"click": "#avg-cookiebanner .avg-cookie:checked",
|
|
53
|
+
"all": true,
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"if": {
|
|
58
|
+
"exists": "#avg-cookiebanner .banner-panel .close"
|
|
59
|
+
},
|
|
60
|
+
"then": [
|
|
61
|
+
{
|
|
62
|
+
"waitForThenClick": "#avg-cookiebanner .banner-panel .close",
|
|
63
|
+
"retry": 3
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"else": [
|
|
67
|
+
{
|
|
68
|
+
"waitForThenClick": "#avg-cookiebanner .save",
|
|
69
|
+
"retry": 3
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"test": [
|
|
77
|
+
{
|
|
78
|
+
"cookieContains": "__avgAskUser=false"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "axeptio-tcf",
|
|
3
|
+
"_metadata": {
|
|
4
|
+
"vendorUrl": "https://www.axeptio.eu/"
|
|
5
|
+
},
|
|
6
|
+
"prehideSelectors": ["body > [style*='--ax-primary-color']"],
|
|
7
|
+
"detectCmp": [
|
|
8
|
+
{
|
|
9
|
+
"any": [
|
|
10
|
+
{ "exists": "script[src*='axept.io/tcf/']" },
|
|
11
|
+
{ "exists": ["body > [style*='--ax-primary-color']", "[id^='axeptio_btn_']"] }
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"detectPopup": [
|
|
16
|
+
{
|
|
17
|
+
"visible": ["body > [style*='--ax-primary-color']", ".modal.show"]
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"optIn": [
|
|
21
|
+
{
|
|
22
|
+
"waitForThenClick": ["body > [style*='--ax-primary-color']", "#axeptio_btn_acceptAll"]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"optOut": [
|
|
26
|
+
{
|
|
27
|
+
"waitForVisible": ["body > [style*='--ax-primary-color']", "#axeptio_btn_dismiss, .modal-continue a"]
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"if": { "exists": ["body > [style*='--ax-primary-color']", "#axeptio_btn_dismiss"] },
|
|
31
|
+
"then": [{ "click": ["body > [style*='--ax-primary-color']", "#axeptio_btn_dismiss"] }],
|
|
32
|
+
"else": [{ "click": ["body > [style*='--ax-primary-color']", ".modal-continue a"] }]
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|