mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-18 08:52:26 +02:00
Fix 'adsbygoogle' neutered script
As per internal feedback. The `length` property exists if the `adsbygoogle` object is instantiated before the `adsbygoogle.js` script has been loaded, but is no longer present once the `adsbygoogle.js` script has been loaded.
This commit is contained in:
parent
b5768b0654
commit
eb6be3a0cf
@ -21,16 +21,9 @@
|
|||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
'use strict';
|
'use strict';
|
||||||
window.adsbygoogle = window.adsbygoogle || {
|
window.adsbygoogle = {
|
||||||
length: 0,
|
|
||||||
loaded: true,
|
loaded: true,
|
||||||
push: function Si() {
|
push: function() {
|
||||||
/*
|
|
||||||
client = client || google_ad_client || google_ad_client;
|
|
||||||
slotname = slotname || google_ad_slot;
|
|
||||||
tag_origin = tag_origin || google_tag_origin
|
|
||||||
*/
|
|
||||||
this.length += 1;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const phs = document.querySelectorAll('.adsbygoogle');
|
const phs = document.querySelectorAll('.adsbygoogle');
|
||||||
|
Loading…
Reference in New Issue
Block a user