Skip to content

Commit

Permalink
Move remaining eval rules to snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
muodov committed Aug 17, 2023
1 parent d8b391b commit 4baf3e1
Show file tree
Hide file tree
Showing 57 changed files with 169 additions and 88 deletions.
86 changes: 84 additions & 2 deletions lib/eval-snippets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck

export const snippets = {
// code-based rules
EVAL_0: () => console.log(1),
EVAL_CONSENTMANAGER_1: () => window.__cmp && typeof __cmp("getCMPData") === "object",
EVAL_CONSENTMANAGER_2: () => !__cmp('consentStatus').userChoiceExists,
Expand All @@ -14,10 +16,90 @@ export const snippets = {
EVAL_KLARO_1: () => klaro.getManager().config.services.every(c => c.required || !klaro.getManager().consents[c.name]),
EVAL_ONETRUST_1: () => window.OnetrustActiveGroups.split(',').filter(s => s.length > 0).length <= 1,
EVAL_TRUSTARC_TOP: () => window && window.truste && window.truste.eu.bindMap.prefCookie === '0',


// declarative rules
EVAL_ADROLL_0: () => !document.cookie.includes('__adroll_fpc'),
EVAL_AFFINITY_SERIF_COM_0: () => document.cookie.includes('serif_manage_cookies_viewed') && !document.cookie.includes('serif_allow_analytics'),
EVAL_AXEPTIO_0: () => document.cookie.includes('axeptio_authorized_vendors=%2C%2C'),
EVAL_BING_0: () => document.cookie.includes('AL=0') && document.cookie.includes('AD=0') && document.cookie.includes('SM=0'),
EVAL_BORLABS_0: () => !JSON.parse(decodeURIComponent(document.cookie.split(';').find(c => c.indexOf('borlabs-cookie') !== -1).split('=', 2)[1])).consents.statistics,
EVAL_BUNDESREGIERUNG_DE_0: () => document.cookie.match('cookie-allow-tracking=0'),
EVAL_CANVA_0: () => !document.cookie.includes('gtm_fpc_engagement_event'),
EVAL_CLICKIO_0: () => document.cookie.includes('__lxG__consent__v2_daisybit='),
EVAL_CLINCH_0: () => document.cookie.includes('ctc_rejected=1'),
EVAL_COINBASE_0: () => JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1,
EVAL_COMPLIANZ_BANNER_0: () => document.cookie.includes('cmplz_banner-status=dismissed'),
EVAL_COMPLIANZ_CATEGORIES_0: () => !!document.cookie.match(/cmplz_[^=]+=deny/),
EVAL_COMPLIANZ_OPTIN_0: () => !!document.cookie.match(/cookieconsent_preferences_disabled=[^;]+/),
EVAL_COOKIE_LAW_INFO_0: () => CLI.disableAllCookies() || CLI.reject_close() || true,
EVAL_COOKIE_LAW_INFO_1: () => document.cookie.indexOf('cookielawinfo-checkbox-non-necessary=yes') === -1,
EVAL_COOKIE_MANAGER_POPUP_0: () => JSON.parse(document.cookie.split(';').find(c => c.trim().startsWith('CookieLevel')).split('=')[1]).social === false,
EVAL_COOKIEALERT_0: () => document.querySelector('body').removeAttribute('style') || true,
EVAL_COOKIEALERT_1: () => document.querySelector('body').removeAttribute('style') || true,
EVAL_COOKIEALERT_2: () => window.CookieConsent.declined === true,
EVAL_COOKIEFIRST_0: () => ((o)=>o.performance === false && o.functional === false && o.advertising === false) (JSON.parse(decodeURIComponent(document.cookie.split(';').find(c => c.indexOf('cookiefirst') !== -1).trim()).split('=')[1])),
EVAL_COOKIEFIRST_1: () => document.querySelectorAll('button[data-cookiefirst-accent-color=true][role=checkbox]:not([disabled])').forEach(i => (i.getAttribute('aria-checked') == 'true' && i.click())) || true,
EVAL_COOKIEINFORMATION_0: () => CookieInformation.declineAllCategories() || true,
EVAL_COOKIEINFORMATION_1: () => CookieInformation.submitAllCategories() || true,
EVAL_COOKIEINFORMATION_2: () => document.cookie.includes('CookieInformationConsent='),
EVAL_DAILYMOTION_0: () => !!document.cookie.match('dm-euconsent-v2'),
EVAL_DSGVO_0: () => !document.cookie.includes('sp_dsgvo_cookie_settings'),
EVAL_DUNELM_0: () => document.cookie.includes('cc_functional=0') && document.cookie.includes('cc_targeting=0'),
EVAL_ETSY_0: () => document.querySelectorAll(".gdpr-overlay-body input").forEach(toggle => { toggle.checked = false; }) || true,
EVAL_ETSY_1: () => document.querySelector('.gdpr-overlay-view button[data-wt-overlay-close]').click() || true,
EVAL_EU_COOKIE_COMPLIANCE_0: () => document.cookie.indexOf('cookie-agreed=2') === -1,
EVAL_EU_COOKIE_LAW_0: () => !document.cookie.includes('euCookie'),
EVAL_EZOIC_0: () => ezCMP.handleAcceptAllClick(),
EVAL_EZOIC_1: () => !!document.cookie.match(/ezCMPCookieConsent=[^;]+\|2=0\|3=0\|4=0/),
EVAL_GOOGLE_0: () => !!document.cookie.match(/SOCS=CAE/),
EVAL_IUBENDA_0: () => document.querySelectorAll('.purposes-item input[type=checkbox]:not([disabled])').forEach(x => {if(x.checked) x.click()}) || true,
EVAL_IUBENDA_1: () => !!document.cookie.match(/_iub_cs-\d+=/),
EVAL_JQUERY_COOKIEBAR_0: () => !document.cookie.includes('cookies-state=accepted'),
EVAL_MEDIAVINE_0: () => document.querySelectorAll("[data-name=\"mediavine-gdpr-cmp\"] input[type=checkbox]").forEach(x => x.checked && x.click()) || true,
EVAL_MICROSOFT_0: () => Array.from(document.querySelectorAll('div > button')).filter(el => el.innerText.match('Reject|Ablehnen'))[0].click() || true,
EVAL_MICROSOFT_1: () => Array.from(document.querySelectorAll('div > button')).filter(el => el.innerText.match('Accept|Annehmen'))[0].click() || true,
EVAL_MICROSOFT_2: () => !!document.cookie.match('MSCC'),
EVAL_MOOVE_0: () => document.querySelectorAll('#moove_gdpr_cookie_modal input').forEach(i => { if (!i.disabled && i.name !== 'moove_gdpr_strict_cookies') i.checked = false }) || true,
EVAL_ONENINETWO_0: () => document.cookie.includes('CC_ADVERTISING=NO') && document.cookie.includes('CC_ANALYTICS=NO'),
EVAL_PAYPAL_0: () => document.cookie.includes('cookie_prefs') === true,
EVAL_PRIMEBOX_0: () => !document.cookie.includes('cb-enabled=accepted'),
EVAL_PUBTECH_0: () => document.cookie.includes('euconsent-v2') && (document.cookie.match(/.YAAAAAAAAAAA/) || document.cookie.match(/.aAAAAAAAAAAA/) || document.cookie.match(/.YAAACFgAAAAA/)) ,
EVAL_REDDIT_0: () => document.cookie.includes('eu_cookie={%22opted%22:true%2C%22nonessential%22:false}'),
EVAL_SIBBO_0: () => !!window.localStorage.getItem('euconsent-v2'),
EVAL_SIRDATA_0: () => document.cookie.includes('euconsent-v2'),
EVAL_SNIGEL_0: () => !!document.cookie.match('snconsent'),
EVAL_STEAMPOWERED_0: () => JSON.parse(decodeURIComponent(document.cookie.split(';').find(s => s.trim().startsWith('cookieSettings')).split('=')[1])).preference_state === 2,
EVAL_TARTEAUCITRON_0: () => tarteaucitron.userInterface.respondAll(false) || true,
EVAL_TARTEAUCITRON_1: () => tarteaucitron.userInterface.respondAll(true) || true,
EVAL_TARTEAUCITRON_2: () => document.cookie.match(/tarteaucitron=[^;]*/)[0].includes('false'),
EVAL_TEALIUM_0: () => typeof window.utag !== 'undefined' && typeof utag.gdpr === 'object',
EVAL_TEALIUM_1: () => utag.gdpr.setConsentValue(false) || true,
EVAL_TEALIUM_2: () => utag.gdpr.setConsentValue(true) || true,
EVAL_TEALIUM_3: () => utag.gdpr.getConsentState() !== 1,
EVAL_TESTCMP_0: () => window.results.results[0] === 'button_clicked',
EVAL_TESTCMP_COSMETIC_0: () => window.results.results[0] === 'banner_hidden',
EVAL_THEFREEDICTIONARY_0: () => cmpUi.showPurposes() || cmpUi.rejectAll() || true,
EVAL_THEFREEDICTIONARY_1: () => cmpUi.allowAll() || true,
EVAL_THEVERGE_0: () => document.cookie.includes('_duet_gdpr_acknowledged=1'),
EVAL_UBUNTU_COM_0: () => document.cookie === '_cookies_accepted=essential',
EVAL_UK_COOKIE_CONSENT_0: () => !document.cookie.includes('catAccCookies'),
EVAL_USERCENTRICS_API_0: () => typeof UC_UI === 'object',
EVAL_USERCENTRICS_API_1: () => !!UC_UI.closeCMP(),
EVAL_USERCENTRICS_API_2: () => !!UC_UI.denyAllConsents(),
EVAL_USERCENTRICS_API_3: () => !!UC_UI.acceptAllConsents(),
EVAL_USERCENTRICS_API_4: () => !!UC_UI.closeCMP(),
EVAL_USERCENTRICS_API_5: () => UC_UI.areAllConsentsAccepted() === true,
EVAL_USERCENTRICS_API_6: () => UC_UI.areAllConsentsAccepted() === false,
EVAL_USERCENTRICS_BUTTON_0: () => JSON.parse(localStorage.getItem('usercentrics')).consents.every(c => c.isEssential || !c.consentStatus),
EVAL_WAITROSE_0: () => Array.from(document.querySelectorAll('label[id$=cookies-deny-label]')).forEach(e => e.click()) || true,
EVAL_WAITROSE_1: () => document.cookie.includes('wtr_cookies_advertising=0') && document.cookie.includes('wtr_cookies_analytics=0'),
EVAL_WP_COOKIE_NOTICE_0: () => document.cookie.includes('wpl_viewed_cookie=no'),
EVAL_XING_0: () => document.cookie.includes('userConsent=%7B%22marketing%22%3Afalse'),
EVAL_YOUTUBE_DESKTOP_0: () => !!document.cookie.match(/SOCS=CAE/),
EVAL_YOUTUBE_MOBILE_0: () => !!document.cookie.match(/SOCS=CAE/),
}

export function getFunctionBody(snippetFunc: () => any) {
const snippetStr = snippetFunc.toString();
return snippetStr.substring(snippetStr.indexOf("()=>") + 4);
return snippetStr.substring(snippetStr.indexOf("=>") + 2);
}
2 changes: 1 addition & 1 deletion rules/autoconsent/192.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
}
],
"test": [
{"eval": "document.cookie.includes('CC_ADVERTISING=NO') && document.cookie.includes('CC_ANALYTICS=NO')"}
{"eval": "EVAL_ONENINETWO_0"}
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/adroll.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"optIn": [ { "waitForThenClick": "#adroll_consent_accept" } ],
"optOut": [ { "waitForThenClick": "#adroll_consent_reject" } ],
"test": [
{ "eval": "!document.cookie.includes('__adroll_fpc')" }
{ "eval": "EVAL_ADROLL_0" }
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/affinity-serif-com.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"wait": 500
},
{
"eval": "document.cookie.includes('serif_manage_cookies_viewed') && !document.cookie.includes('serif_allow_analytics')"
"eval": "EVAL_AFFINITY_SERIF_COM_0"
}
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/axeptio.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"test":
[
{
"eval": "document.cookie.includes('axeptio_authorized_vendors=%2C%2C')"
"eval": "EVAL_AXEPTIO_0"
}
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/bing.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
{ "click": "#mcp_savesettings"}
],
"test": [
{ "eval": "document.cookie.includes('AL=0') && document.cookie.includes('AD=0') && document.cookie.includes('SM=0')"}
{ "eval": "EVAL_BING_0"}
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/borlabs.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
"#BorlabsCookieBox"
],
"test": [{
"eval": "!JSON.parse(decodeURIComponent(document.cookie.split(';').find(c => c.indexOf('borlabs-cookie') !== -1).split('=', 2)[1])).consents.statistics"
"eval": "EVAL_BORLABS_0"
}]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/bundesregierung-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
}
],
"test": [
{"eval": "document.cookie.match('cookie-allow-tracking=0')"}
{"eval": "EVAL_BUNDESREGIERUNG_DE_0"}
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/canva.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"test": [
{ "eval": "!document.cookie.includes('gtm_fpc_engagement_event')" }
{ "eval": "EVAL_CANVA_0" }
]
}

2 changes: 1 addition & 1 deletion rules/autoconsent/clickio.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
{ "click": "[data-role=\"b_save\"]" }
],
"test": [
{ "eval": "document.cookie.includes('__lxG__consent__v2_daisybit=')", "comment": "TODO: this only checks if we interacted at all" }
{ "eval": "EVAL_CLICKIO_0", "comment": "TODO: this only checks if we interacted at all" }
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/clinch.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
],
"test": [
{
"eval": "document.cookie.includes('ctc_rejected=1')"
"eval": "EVAL_CLINCH_0"
}
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/coinbase.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
],
"test": [
{
"eval": "JSON.parse(decodeURIComponent(document.cookie.match(/cm_(eu|default)_preferences=([0-9a-zA-Z\\{\\}\\[\\]%:]*);?/)[2])).consent.length <= 1"
"eval": "EVAL_COINBASE_0"
}
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/complianz-banner.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"optOut": [
{ "waitForThenClick": ".cmplz-cookiebanner .cmplz-deny" }
],
"test": [ { "eval": "document.cookie.includes('cmplz_banner-status=dismissed')" } ]
"test": [ { "eval": "EVAL_COMPLIANZ_BANNER_0" } ]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/complianz-categories.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
{ "click": ".cc-dismiss" }
],
"test": [
{ "eval": "!!document.cookie.match(/cmplz_[^=]+=deny/)" }
{ "eval": "EVAL_COMPLIANZ_CATEGORIES_0" }
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/complianz-optin.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
{ "click": "[aria-label=\"cookies preferences popup\"] [aria-label=\"Accept Selected\"], [aria-label=\"cookies preferences popup\"] [aria-label=\"Save my choice\"], .cc-btn-accept-selected, .cc-deny", "optional": true }
],
"test": [
{ "eval": "!!document.cookie.match(/cookieconsent_preferences_disabled=[^;]+/)" }
{ "eval": "EVAL_COMPLIANZ_OPTIN_0" }
]
}
4 changes: 2 additions & 2 deletions rules/autoconsent/cookie-law-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"optOut": [
{ "hide": ["#cookie-law-info-bar"] },
{
"eval": "CLI.disableAllCookies() || CLI.reject_close() || true"
"eval": "EVAL_COOKIE_LAW_INFO_0"
}
],
"test": [{ "eval": "document.cookie.indexOf('cookielawinfo-checkbox-non-necessary=yes') === -1" }]
"test": [{ "eval": "EVAL_COOKIE_LAW_INFO_1" }]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/cookie-manager-popup.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
],
"prehideSelectors": ["#btn-cookie-settings"],
"test": [{
"eval": "JSON.parse(document.cookie.split(';').find(c => c.trim().startsWith('CookieLevel')).split('=')[1]).social === false"
"eval": "EVAL_COOKIE_MANAGER_POPUP_0"
}]
}
6 changes: 3 additions & 3 deletions rules/autoconsent/cookiealert.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"click": "button[data-controller='cookie-alert/extended/button/accept']"
},
{
"eval": "document.querySelector('body').removeAttribute('style') || true"
"eval": "EVAL_COOKIEALERT_0"
}
],
"optOut": [
Expand All @@ -37,12 +37,12 @@
"click": "button[data-controller='cookie-alert/extended/button/configuration']"
},
{
"eval": "document.querySelector('body').removeAttribute('style') || true"
"eval": "EVAL_COOKIEALERT_0"
}
],
"test": [
{
"eval": "window.CookieConsent.declined === true"
"eval": "EVAL_COOKIEALERT_2"
}
]
}
15 changes: 7 additions & 8 deletions rules/autoconsent/cookiefirst.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "cookiefirst.com",
"prehideSelectors": ["#cookiefirst-root"],
"detectCmp": [{ "exists": "#cookiefirst-root" }],
"detectPopup": [{ "visible": "#cookiefirst-root" }],
"prehideSelectors": ["#cookiefirst-root,.cookiefirst-root,[aria-labelledby=cookie-preference-panel-title]"],
"detectCmp": [{ "exists": "#cookiefirst-root,.cookiefirst-root" }],
"detectPopup": [{ "visible": "#cookiefirst-root,.cookiefirst-root" }],
"optIn": [{ "click": "button[data-cookiefirst-action=accept]" }],
"optOut": [
{
Expand All @@ -13,12 +13,12 @@
{
"click": "button[data-cookiefirst-action=adjust]"
},
{
{
"waitForVisible": "[data-cookiefirst-widget=modal]",
"timeout": 1000
},
{
"eval": "document.querySelectorAll('button[data-cookiefirst-accent-color=true][role=checkbox]:not([disabled])').forEach(i => (i.getAttribute('aria-checked') == 'true' && i.click())) || true"
"eval": "EVAL_COOKIEFIRST_1"
},
{
"wait": 1000
Expand All @@ -34,8 +34,7 @@
],
"test": [
{
"eval": "let o = JSON.parse(decodeURIComponent(document.cookie.split(';').find(c => c.indexOf('cookiefirst') !== -1).trim()).split('=')[1]); (o.performance === false && o.functional === false && o.advertising === false) ? true : false"
"eval": "EVAL_COOKIEFIRST_0"
}
]
}

}
6 changes: 3 additions & 3 deletions rules/autoconsent/cookieinformation.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"prehideSelectors": ["#cookie-information-template-wrapper"],
"detectCmp": [{ "exists": "#cookie-information-template-wrapper" }],
"detectPopup": [{ "visible": "#cookie-information-template-wrapper" }],
"optIn": [ { "eval": "CookieInformation.submitAllCategories() || true"} ],
"optIn": [ { "eval": "EVAL_COOKIEINFORMATION_1"} ],
"optOut": [
{ "hide": ["#cookie-information-template-wrapper"], "comment": "some templates don't hide the banner automatically" },
{ "eval": "CookieInformation.declineAllCategories() || true"}
{ "eval": "EVAL_COOKIEINFORMATION_0"}
],
"test": [
{ "eval": "document.cookie.includes('CookieInformationConsent=')" }
{ "eval": "EVAL_COOKIEINFORMATION_2" }
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/dailymotion.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
{ "waitForThenClick": "button[class*=\"TCF2ContinueWithoutAcceptingButton\"]" }
],
"test": [
{ "eval": "!!document.cookie.match('dm-euconsent-v2')" }
{ "eval": "EVAL_DAILYMOTION_0" }
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/dsgvo.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
{ "hide": [".sp-dsgvo.sp-dsgvo-popup-overlay"] }
],
"test": [
{ "eval": "!document.cookie.includes('sp_dsgvo_cookie_settings')" }
{ "eval": "EVAL_DSGVO_0" }
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/dunelm.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
}
],
"test": [
{"eval": "document.cookie.includes('cc_functional=0') && document.cookie.includes('cc_targeting=0')"}
{"eval": "EVAL_DUNELM_0"}
]
}
4 changes: 2 additions & 2 deletions rules/autoconsent/etsy.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
{"click": "button[data-gdpr-open-full-settings]"},
{"waitForVisible": ".gdpr-overlay-body input", "timeout": 3000},
{"wait": 1000},
{"eval": "document.querySelectorAll(\".gdpr-overlay-body input\").forEach(toggle => { toggle.checked = false; }) || true"},
{"eval": "document.querySelector('.gdpr-overlay-view button[data-wt-overlay-close]').click() || true"}
{"eval": "EVAL_ETSY_0"},
{"eval": "EVAL_ETSY_1"}
],
"optIn": [{"click": "button[data-gdpr-single-choice-accept]"}]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/eu-cookie-compliance.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
{ "hide": [".eu-cookie-compliance-banner-info", "#sliding-popup"] }
],
"test": [
{ "eval": "document.cookie.indexOf('cookie-agreed=2') === -1" }
{ "eval": "EVAL_EU_COOKIE_COMPLIANCE_0" }
]
}
2 changes: 1 addition & 1 deletion rules/autoconsent/eu-cookie-law.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
{ "hide": [".pea_cook_wrapper"] }
],
"test": [
{ "eval": "!document.cookie.includes('euCookie')" }
{ "eval": "EVAL_EU_COOKIE_LAW_0" }
]
}
4 changes: 2 additions & 2 deletions rules/autoconsent/ezoic.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"detectPopup": [{ "visible": "#ez-cookie-dialog-wrapper" }],
"optIn": [
{ "click": "#ez-accept-all", "optional": true },
{ "eval": "ezCMP.handleAcceptAllClick()", "optional": true }
{ "eval": "EVAL_EZOIC_0", "optional": true }
],
"optOut": [
{ "wait": 500 },
Expand All @@ -15,6 +15,6 @@
{ "click": "#ez-save-settings" }
],
"test": [
{ "eval": "!!document.cookie.match(/ezCMPCookieConsent=[^;]+\\|2=0\\|3=0\\|4=0/)" }
{ "eval": "EVAL_EZOIC_1" }
]
}
Loading

0 comments on commit 4baf3e1

Please sign in to comment.