Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 Fall 2026 batch! Applications are open till July 27.

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

Search: