Scriptlets icon indicating copy to clipboard operation
Scriptlets copied to clipboard

Improve 'googlesyndication-adsbygoogle' — fails to create iframes when there's no `.adsbygoogle`

Open Yuki2718 opened this issue 5 months ago • 0 comments

It seems the current googlesyndication-adsbygoogle fails to create iframe#aswift_1 etc. if .adsbygoogle does not exist when its executed. This is causing these filters in Base

pvpoke-re.com#%#//scriptlet('trusted-create-element', '.adsbygoogle:has(> #aswift_1)', 'div', 'id="aswift_1_host" style="height: 280px; width: 780px;"')
pvpoke-re.com#%#//scriptlet('trusted-create-element', '.adsbygoogle:has(> #aswift_2)', 'div', 'id="aswift_2_host" style="height: 280px; width: 396px;"')

to occasionally fail on the initial load, as they depend on existence of the iframes.

Yuki2718 avatar Sep 19 '25 10:09 Yuki2718