From cdf6088dfa2570ecb95d833402b44ec1d46f195d Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 14 May 2021 10:30:46 -0400 Subject: [PATCH] Use zero-based index for id Related issue: - https://github.com/AdguardTeam/AdguardFilters/issues/75762 --- src/web_accessible_resources/googlesyndication_adsbygoogle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web_accessible_resources/googlesyndication_adsbygoogle.js b/src/web_accessible_resources/googlesyndication_adsbygoogle.js index 26a3ebf77..b0173e90e 100644 --- a/src/web_accessible_resources/googlesyndication_adsbygoogle.js +++ b/src/web_accessible_resources/googlesyndication_adsbygoogle.js @@ -29,7 +29,7 @@ const phs = document.querySelectorAll('.adsbygoogle'); const css = 'height:1px!important;max-height:1px!important;max-width:1px!important;width:1px!important;'; for ( let i = 0; i < phs.length; i++ ) { - const id = `aswift_${(i+1)}`; + const id = `aswift_${i}`; if ( document.querySelector(`iframe#${id}`) !== null ) { continue; } const fr = document.createElement('iframe'); fr.id = id;