Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
Update definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
AliasIO committed Feb 10, 2022
1 parent 5e2dc07 commit 6504a56
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 7 deletions.
4 changes: 3 additions & 1 deletion common/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ const Common = {
}

if (!Common.Actions[func]) {
throw new Error(`Invalid action function: ${func}`)
throw new Error(
`Invalid action function: ${func} (${selector})`
)
}
})

Expand Down
19 changes: 15 additions & 4 deletions definitions/consent.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,36 @@
},
"#cookie-banner": "remove",
".cookie-banner": "remove",
"if defined(OneTrust)": {
"OneTrust.Close": "call"
},
"#onetrust-consent-sdk": "remove",
"#CybotCookiebotDialogBodyButtonDecline": "click",
".cookie-bar__close": "click",
"[aria-label='cookieconsent']": "remove",
".cookie-warning-modal": "remove",
".cookie-consent": "remove",
"#cookie-notice": "remove",
"#cookie-bar": "remove",
"if $(#didomi-host)": {
"#didomi-host": "remove",
"body": "removeClass didomi-popup-open"
},
"#cookieBanner": "remove",
".CookieConsent": "remove"
"#cconsent-bar": "remove",
".CookieConsent": "remove",
"#gdpr-banner": "remove",
"#gdpr-cookie-message": "remove",
".cookie-notice": "remove",
".cc-banner": "remove",
".js-cookie-consent-overlay": "remove",
"#ccc": "remove",
"#iubenda-cs-banner": "remove"
},
"*.stackexchange.com *.superuser.com *.stackoverflow.com *.mathoverflow.net *.serverfault.com *.askubuntu.com *.stackapps.com": {
".js-consent-banner": "remove"
},
"*.deepl.com": {
".dl_cookieBanner--buttonClose": "click"
},
"*.lego.com": {
".cookies-used-notice": "remove"
}
}
6 changes: 4 additions & 2 deletions definitions/paywall.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"if $(#gateway-content)": {
"#gateway-content": "remove",
"#app > div > div": "removeClass *",
"#app > div > div > div:last-child": "remove"
"#app > div > div > div:last-child": "remove",
"#site-content": "removeStyle"
}
},
"*.newyorker.com": {
Expand All @@ -18,7 +19,8 @@
".paywall-overlay": "remove",
"html": "removeStyle",
"body": "addStyle 'overflow: inherit; position: inherit;'"
}
},
".softwall-overlay": "remove"
},
"*.simplywall.st": {
"if $(#modal-container)": {
Expand Down
13 changes: 13 additions & 0 deletions definitions/signup.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,18 @@
"[data-test-id='giftWrap']": "remove",
"body": "removeStyle"
}
},
"*.vic.gov.au": {
"#subscribe-banner-react": "remove"
},
"*.nature.com": {
".c-site-messages--nature-briefing-email-variant": "remove"
},
"*.boredpanda.com": {
"if $(#subscribe-before-leaving)": {
"#subscribe-before-leaving": "remove",
"#modal-backdrop": "remove",
"body": "removeClass modal-open"
}
}
}

0 comments on commit 6504a56

Please sign in to comment.