/canvas-antidetect

A script which prevents canvas from capturing window change events

Primary LanguageJavaScript

Canvas AntiDetect

This script prevents the client sending page_focused, page_blurred, and visibilitychange events to canvas.

Install

  1. First you need a userscript manager such as: Tampermonkey - Chrome - Firefox or Violentmonkey - Chrome - Firefox
  2. Install the script by clicking Here!

How it works

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.

The event_tracker payload:

Exist