Prevents websites from knowing that you switched tabs or unfocused the window
这些是代码更新过的版本。 显示所有版本
Fix: classList null safety
Hotfix
Fix issues arising from blocking `mouseleave` and `mouseout` events on all elements
Fix visibilityState and webkitVisibilityState not working as intended
Exclude anchor and span elements, add update URL
Prevent tracking when mouse leaves page
- Added webkitVisibilityState- Added get() handler for visibilityState properties- Add event listeners to document- Add event.preventDefault()- Hopefully added mobile support- Remove repetitive code