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

If you are using uBlockOrigin then you can block the visibilitychange event with this filter:

  *##+js(aeld, visibilitychange)
Just add it to `My filters`


Wow thanks. I'll try that when I can to avoid having random extensions inject scripts. How would you exclude a website for this if it doesn't work properly, especially with blur and focus?


Let's say you want to allow duckduckgo.com to listen to the visiblitychange event but all other sites should be blocked. Then you could use the following:

  ~duckduckgo.com,*##+js(aeld, visibilitychange)




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

Search: