Skip to content

Commit f645e8f

Browse files
committed
Improve googlesyndication_adsbygoogle.js scriptlet
Related discussion: uBlockOrigin/uBlock-discussions#321 (comment)
1 parent a793d69 commit f645e8f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/web_accessible_resources/googlesyndication_adsbygoogle.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@
3838
const cfr = document.createElement('iframe');
3939
cfr.id = `google_ads_frame${i}`;
4040
fr.appendChild(cfr);
41-
phs[i].appendChild(fr);
41+
const ph = phs[i];
42+
ph.appendChild(fr);
43+
ph.setAttribute('data-adsbygoogle-status', 'done');
4244
}
4345
};
4446
if (

0 commit comments

Comments
 (0)