This script prevents the client sending page_focused
, page_blurred
, and visibilitychange
events to canvas.
- First you need a userscript manager such as: Tampermonkey - Chrome - Firefox or Violentmonkey - Chrome - Firefox
- Install the script by clicking Here!
Canvas has an event_manager
which tracks user interactions.
The page_focused
, page_blurred
, and visibilitychange
events are registered with jquery in event_tracker.js
:
By overriding the Window.prototype.addEventListener
with a custom function we can filter these event.
This, in theory, prevents the website from being able to detect a change in tabs or windows.