Skip to content
Permalink
Browse files
Use zero-based index for id
Related issue:
- AdguardTeam/AdguardFilters#75762

Related commits:
- gorhill/uBlock@cdf6088

Co-authored-by: Raymond Hill <rhill@raymondhill.net>
  • Loading branch information
JustOff and gorhill committed Jun 11, 2021
1 parent b6956a7 commit 55595615d4ce43fec9fe3fb7e4aa56ee5c42d652
Showing with 1 addition and 1 deletion.
  1. +1 −1 assets/resources/resources.txt
@@ -597,7 +597,7 @@ googlesyndication.com/adsbygoogle.js application/javascript
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;

0 comments on commit 5559561

Please sign in to comment.