pythonlib: Auto offset Canvas anti-aliasing

This commit is contained in:
daijro 2024-12-09 08:26:30 -06:00
parent 3b235c5a21
commit 2422d622eb
3 changed files with 11 additions and 2 deletions

View file

@ -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

View file

@ -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)

View file

@ -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 <daijro.dev@gmail.com>"]
license = "MIT"