Hacker News new | past | comments | ask | show | jobs | submit login

You know that they might just be detecting onfocus/onblur instead, right? They aren't necessarily using the Page Visiblity API.



Bad memory.

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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: