mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-06 19:02:30 +01: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() {
|
||||
'use strict';
|
||||
window.adsbygoogle = window.adsbygoogle || {
|
||||
length: 0,
|
||||
window.adsbygoogle = {
|
||||
loaded: true,
|
||||
push: function Si() {
|
||||
/*
|
||||
client = client || google_ad_client || google_ad_client;
|
||||
slotname = slotname || google_ad_slot;
|
||||
tag_origin = tag_origin || google_tag_origin
|
||||
*/
|
||||
this.length += 1;
|
||||
push: function() {
|
||||
}
|
||||
};
|
||||
const phs = document.querySelectorAll('.adsbygoogle');
|
||||
|
Loading…
Reference in New Issue
Block a user