diff --git a/pythonlib/camoufox/__version__.py b/pythonlib/camoufox/__version__.py index 14e4f38..f2c9741 100644 --- a/pythonlib/camoufox/__version__.py +++ b/pythonlib/camoufox/__version__.py @@ -8,7 +8,7 @@ class CONSTRAINTS: The minimum and maximum supported versions of the Camoufox browser. """ - MIN_VERSION = 'beta.18' + MIN_VERSION = 'beta.19' MAX_VERSION = '1' @staticmethod diff --git a/pythonlib/camoufox/utils.py b/pythonlib/camoufox/utils.py index 55e8c36..6da5260 100644 --- a/pythonlib/camoufox/utils.py +++ b/pythonlib/camoufox/utils.py @@ -611,6 +611,15 @@ def launch_options( }, ) + # Canvas anti-fingerprinting + merge_into( + config, + { + 'canvas:aaOffset': randint(-50, 50), # nosec + 'canvas:aaCapOffset': True, + }, + ) + # Cache previous pages, requests, etc (uses more memory) if enable_cache: merge_into(firefox_user_prefs, CACHE_PREFS) diff --git a/pythonlib/pyproject.toml b/pythonlib/pyproject.toml index abb180b..2e3d2e0 100644 --- a/pythonlib/pyproject.toml +++ b/pythonlib/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "camoufox" -version = "0.4.7" +version = "0.4.8-beta" description = "Wrapper around Playwright to help launch Camoufox" authors = ["daijro "] license = "MIT"