mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 18:32:30 +01:00
Improve neutered adsbygoogle
scriptlet
This commit is contained in:
parent
e9863f7787
commit
0934779f4b
@ -36,14 +36,14 @@
|
||||
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 fr = document.createElement('iframe');
|
||||
const id = `aswift_${(i+1)}`;
|
||||
if ( document.querySelector(`iframe#${id}`) !== null ) { continue; }
|
||||
const fr = document.createElement('iframe');
|
||||
fr.id = id;
|
||||
fr.style = css;
|
||||
const cfr = document.createElement('iframe');
|
||||
cfr.id = `google_ads_frame${i}`;
|
||||
fr.appendChild(cfr);
|
||||
document.body.appendChild(fr);
|
||||
phs[i].appendChild(fr);
|
||||
}
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user