1
0
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:
Raymond Hill 2021-02-19 08:31:58 -05:00
parent b5768b0654
commit eb6be3a0cf
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -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');