Skip to content

Commit

Permalink
fixed support for nytimes.com
Browse files Browse the repository at this point in the history
fixed support for nike.com
  • Loading branch information
OhMyGuus committed Dec 19, 2023
1 parent 080f4e6 commit 926a369
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
9 changes: 5 additions & 4 deletions src/data/js/0_defaultClickHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
'div[id^="bnnr"][style*="float"] > div[style*="; order: 0"] + div[style*="; order: 2"]:not([style*="underline"])',
],

"#usercentrics-root": [
'div[data-testid="uc-buttons-container"] > button:first-child',
],

'#usercentrics-root': [
'div[data-testid="uc-buttons-container"] > button:first-child',
'div[data-testid="first-line-buttons"] > button:first-child'
],

"#onetrust-consent-sdk": [
'.onetrust-pc-dark-filter:not([class*="hide"]):not([style*="none"]) ~ #onetrust-pc-sdk .ot-pc-refuse-all-handler',
'#onetrust-banner-sdk:not([style*="none"]) .ot-pc-refuse-all-handler',
Expand Down
10 changes: 1 addition & 9 deletions src/data/js/5_clickHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -2244,15 +2244,7 @@ function getSelector(host) {
)
: false;

case "nike.com":
return _if_else(
".pre-modal-view",
[".is-active #hf_cookie_label_done"],
[
'.modal.show .cookie-settings [data-qa="more-info"]',
'.modal.show .cookie-settings [data-qa="done"]',
]
);
case 'nike.com': return _if('.cookie-dialog-base', 'FLAG:ALL-MATCHES', '[data-testid="cookie-modal-content"] [value="false"]', 'FLAG:SINGLE-MATCH', 'button[data-testid="confirm-choice-button"]');
case "jobs.nike.com":
return _chain(
"#focus-lock-modal .cookies-popup #moreInformationButton",
Expand Down
2 changes: 1 addition & 1 deletion src/data/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -14344,7 +14344,7 @@ const rules = {
"notco.com": { s: ".CookiesContainer{display:none !important}" },
"nytimes.com": {
j: "5",
s: ".free-form-content > .banner__container,.CookieBanner > .banner__container,#alertBannerMount,.gdpr.expanded-dock + div,.CookieBanner ~ .banner__container{display:none !important}",
s: '.free-form-content > .banner__container,.CookieBanner > .banner__container,#alertBannerMount,.gdpr.expanded-dock + div,.CookieBanner ~ .banner__container,span[data-testid="onsite-messaging-unit-gdprDock"]{display:none !important}',
},
"abconcerts.be": { j: "5" },
"kulturprojekte.berlin": { j: "5" },
Expand Down

0 comments on commit 926a369

Please sign in to comment.