Improve `googlesyndication_adsbygoogle.js` scriptlet

Related discussion:
https://github.com/uBlockOrigin/uBlock-discussions/discussions/321#discussioncomment-11000356
This commit is contained in:
Raymond Hill 2024-10-30 09:12:58 -04:00
parent a793d693b5
commit f645e8f0d2
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 3 additions and 1 deletions

View File

@ -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 (