From 75eb5d2f436a12283bc9e21c7823c63cd3a1688a Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Tue, 11 Aug 2026 08:26:06 -0700 Subject: [PATCH] fix(js-injector): hide Transcend cookie banner on Airtable - Airtable switched consent platforms from OneTrust to Transcend - Hide the Transcend shadow host in addition to OneTrust's, since it now renders the consent UI --- .../examples/airtable-cookies-consent-closing.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) })()