I find the page visibility API, supported by every browser including Firefox, just as creepy. Perhaps even more, since most users don't know it exists and gave no permission for it to operate. Websites have no business knowing if I'm looking at them or not, and making assumptions about what I want them to do when I'm not. https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibi...
Interestingly, this API is one of the tools Youtube uses to stop you from playing videos in the background on mobile.
It's obvious when you the Page Visibility API original editors/authors: https://www.w3.org/TR/page-visibility-2/