17

So there's this relatively new facility provided by most browsers called the Page Visibility API, wherein pages can tell when they're actually visible. Lots of sites have taken advantage of this not to reduce load or shut up when they're not being dealt with or other good stuff, but to enforce their requirement that you look at them before they'll do something you wanted them to do. Usually for a minimum amount of time, as well — a whole new level of forced ads. I imagine a lot of them also use this to further intrude on my privacy by tracking my behavior even more finely than before.

In short: how can I disable this mess? How can I have the browser pretend to the page that it's always visible (or, perhaps, always hidden, or maybe even that the API simply isn't implemented)? On a per-site basis would be ideal, but a simple global setting would be more than welcome as well.

I'm particularly interested in Firefox, but I think we'd all like to know for other browsers too.

MrMike
  • 1,421
  • 11
  • 19
Atario
  • 1,266
  • 3
  • 11
  • 19

3 Answers3

2

I can't personally take credit for this, but a contributor at StackOverflow created a Chrome extension that disables the PageVisibility API.

https://stackoverflow.com/questions/18928417/spoof-or-disable-the-page-visibility-api

eXceLon
  • 61
0

Use Disable Page Visibility API add-on. Works like a charm.

Though as noted by the add-on description, there are other ways to track as well, besides page visibility API.

Danyal
  • 101
0

Firefox only lets you disable Javascript entirely which I don't think you want to do. the Ghostery plugin selectively disables Javascripts that are in their database for tracking you. As an experiment, you could install Ghostery or look for some other plugins that allow blacklisting certain types of Javascript, and test it on a site that you know uses the feature you described.

Bryan
  • 808