From eb6be3a0cf263f2d7a084d37eae76ce341604515 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Fri, 19 Feb 2021 08:31:58 -0500 Subject: [PATCH] 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. --- .../googlesyndication_adsbygoogle.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/web_accessible_resources/googlesyndication_adsbygoogle.js b/src/web_accessible_resources/googlesyndication_adsbygoogle.js index 387a821e3..26a3ebf77 100644 --- a/src/web_accessible_resources/googlesyndication_adsbygoogle.js +++ b/src/web_accessible_resources/googlesyndication_adsbygoogle.js @@ -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');