gorhill / uBlock

uBlock Origin - An efficient blocker for Chromium and Firefox. Fast and lean.
GNU General Public License v3.0
46.33k stars 3.1k forks source link

More improvements to the google-ima shim script #3908

Closed kzar closed 10 months ago

kzar commented 10 months ago

We have enabled the google-ima shim script again in the DuckDuckGo Privacy Essentials browser extension, and found a couple more issues:

1 - https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRenderingSettings#enablePreloading 2 - https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/preload#timing 3 - https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdEvent

kzar commented 10 months ago

@gorhill A couple more improvements to the google-ima shim for you. If you'd like to test:

  1. Try playing the AI audio version of articles on rawstory.com with the Trinity Audio widget.
  2. Try playing a video included with one of the articles on metro.co.uk

(Making sure the google-ima shim is active obviously!)

gorhill commented 10 months ago

Yes, worked. For metro.co.uk, it seems a bit difficult to reproduce but I did get the hung video with spinning wheel once. For rawstory.com, I get the hung player. Incidentally, wholly blocking ima3.js on rawstory.com also solves the issue and it also removes the introduction about sponsor.