mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 11:42:03 -08:00
pythonlib: Auto offset Canvas anti-aliasing
This commit is contained in:
parent
3b235c5a21
commit
2422d622eb
3 changed files with 11 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ class CONSTRAINTS:
|
||||||
The minimum and maximum supported versions of the Camoufox browser.
|
The minimum and maximum supported versions of the Camoufox browser.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
MIN_VERSION = 'beta.18'
|
MIN_VERSION = 'beta.19'
|
||||||
MAX_VERSION = '1'
|
MAX_VERSION = '1'
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
||||||
|
|
@ -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)
|
# Cache previous pages, requests, etc (uses more memory)
|
||||||
if enable_cache:
|
if enable_cache:
|
||||||
merge_into(firefox_user_prefs, CACHE_PREFS)
|
merge_into(firefox_user_prefs, CACHE_PREFS)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "camoufox"
|
name = "camoufox"
|
||||||
version = "0.4.7"
|
version = "0.4.8-beta"
|
||||||
description = "Wrapper around Playwright to help launch Camoufox"
|
description = "Wrapper around Playwright to help launch Camoufox"
|
||||||
authors = ["daijro <daijro.dev@gmail.com>"]
|
authors = ["daijro <daijro.dev@gmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue