From f645e8f0d28e4afbfd2825ee5c3aa688eb1b8e27 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 30 Oct 2024 09:12:58 -0400 Subject: [PATCH] Improve `googlesyndication_adsbygoogle.js` scriptlet Related discussion: https://github.com/uBlockOrigin/uBlock-discussions/discussions/321#discussioncomment-11000356 --- src/web_accessible_resources/googlesyndication_adsbygoogle.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web_accessible_resources/googlesyndication_adsbygoogle.js b/src/web_accessible_resources/googlesyndication_adsbygoogle.js index dec634bea..294d054e5 100644 --- a/src/web_accessible_resources/googlesyndication_adsbygoogle.js +++ b/src/web_accessible_resources/googlesyndication_adsbygoogle.js @@ -38,7 +38,9 @@ const cfr = document.createElement('iframe'); cfr.id = `google_ads_frame${i}`; fr.appendChild(cfr); - phs[i].appendChild(fr); + const ph = phs[i]; + ph.appendChild(fr); + ph.setAttribute('data-adsbygoogle-status', 'done'); } }; if (