mirror of https://github.com/gorhill/uBlock.git
Use zero-based index for id
Related issue: - https://github.com/AdguardTeam/AdguardFilters/issues/75762
This commit is contained in:
parent
7574d16509
commit
cdf6088dfa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue