Hacker News new | ask | show | jobs
by pw6hv 2233 days ago
Not related to the topic: I have Firefox set to block autoplay, nevertheless the video in the middle of this article just play when I scroll down. Is it happening to someone else? How can websites bypass Firefox configuration?
2 comments

JavaScript. Web browser controls only work if the page uses the standard APIs.

Much of the reason browser's don't block simple things is that advertisers will happily write a memory-hogging CPU-hogging virtual machine to force the feature to run anyway. You can't win by trying to control what hostile code does after you let it run. Block untrusted domains from running code on your machine.

It's probably easier to run a JS script to mine crypto than a virtual machine to run a video ad though.
I can imagine it's a cat-and-mouse game of sorts. Maybe they just say 'play' via Javascript after the video has loaded?

It's a JWPlayer video, maybe they have some tricks up their sleeve.