by pygy_ · 14y ago · 0 comments
I've recently noticed several sites that pause their video ads when the tab is hidden.
I don't look at adds. I have several ad jingles/slogans from my youth wired in my brain. They popon cue, and since I don't want to add new ones to my collection, I now actively avoid ads.
This means that I now have to look elsewhere while the video is playing, or hide the screen, and it annoys me to no end.
/rant.
To browser authors:
This feature has some use, but a huge potential for user abuse. It would be most helpful if it were possible disable the API, or to enable it selectively on a site by site basis.
At the risk of stating the obvious, it sounds like you have a problem with ads, not a problem with the visibility API.
And I have a problem with ads that are forced on me, true, my case may be extreme, but I'm sure that it annoys other people too.
At the risk of getting into an ethics debate, that's sort of the deal being offered by the publisher: you get the content in exchange for watching this ad.
.. besides not using commercial ads and instead using image / text ones that take up much less precious bandwidth.
If you're already using some kind of ad-block, there's nothing stopping you/your ad block from disabling the visibility API on select pages (youtube et. al). It's a Javascript API, and that means you'll be able to alter its functionality fairly easily (bookmarklet, plugin, addon, etc).
I've recently gotten to the habit of having two browsing windows open. If in one of them I stumble across something that forces me to watch 30 seconds of ad (which happens increasingly often), I flip focus, continue browsing something else and come back to the other window later.
It's great to hear they can now start to ensure I watch the ads. What's next, API that checks if you have system sound muted or too low?
Now that you tell it I actually reverse engineered a page (script compiled with GWT, strings mangled, most of the script being one or two letter variables, often the same ones), to find out how they were doing it, and in that case, they were using document or window.onblur.
I tried to overwrite the event handlers without success.
Couldn't me do more with less here ?
In MULTICS, sure. Not in Unix/Windows/Mac.
That may actually be a Flash thing.