diff --git a/javascript-injectors/examples/airtable-cookies-consent-closing.js b/javascript-injectors/examples/airtable-cookies-consent-closing.js index a98efa925..72d4c3d61 100644 --- a/javascript-injectors/examples/airtable-cookies-consent-closing.js +++ b/javascript-injectors/examples/airtable-cookies-consent-closing.js @@ -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) })()