Skip to content

Commit

Permalink
Fix rule for bing
Browse files Browse the repository at this point in the history
  • Loading branch information
muodov committed Nov 15, 2024
1 parent e3f9e01 commit cbcbfec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/eval-snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const snippets = {
EVAL_ARBEITSAGENTUR_TEST: () => document.cookie.includes('cookie_consent=denied'),
EVAL_AXEPTIO_0: () => document.cookie.includes('axeptio_authorized_vendors=%2C%2C'),
EVAL_BAHN_TEST: () => utag.gdpr.getSelectedCategories().length === 1,
EVAL_BING_0: () => document.cookie.includes('AL=0') && document.cookie.includes('AD=0') && document.cookie.includes('SM=0'),
EVAL_BING_0: () => document.cookie.includes('AD=0'),
EVAL_BLOCKSY_0: () => document.cookie.includes('blocksy_cookies_consent_accepted=no'),
EVAL_BORLABS_0: () =>
!JSON.parse(
Expand Down
6 changes: 3 additions & 3 deletions rules/autoconsent/bing.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "bing.com",
"prehideSelectors": ["#bnp_container"],
"detectCmp": [{ "exists": "#bnp_cookie_banner" }],
"detectPopup": [{ "visible": "#bnp_cookie_banner" }],
"optIn": [{ "click": "#bnp_btn_accept" }],
"optOut": [{ "click": "#bnp_btn_preference" }, { "click": "#mcp_savesettings" }],
"detectPopup": [{ "visible": "#bnp_cookie_banner" }, { "visible": "#bnp_btn_accept,#bnp_btn_reject" }],
"optIn": [{ "waitForThenClick": "#bnp_btn_accept" }],
"optOut": [{ "wait": 500 }, { "waitForThenClick": "#bnp_btn_reject" }],
"test": [{ "eval": "EVAL_BING_0" }]
}

0 comments on commit cbcbfec

Please sign in to comment.