Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
(function () {
/* Hides the OneTrust cookie consent banner via CSS rather than clicking,
* since the banner loads asynchronously and click-based approaches are unreliable. */
/* Hides the cookie consent banner via CSS since it loads asynchronously.
* Covers both OneTrust and Transcend, as Airtable has switched before. */
if (document.getElementById('screenly-airtable-consent-hide')) return

const style = document.createElement('style')
style.id = 'screenly-airtable-consent-hide'
style.textContent = '#onetrust-consent-sdk { display: none !important; }'
style.textContent =
'#onetrust-consent-sdk, #transcend-shadow-root { display: none !important; }'
;(document.head || document.documentElement).appendChild(style)
})()