Commit graph

21 commits

Author SHA1 Message Date
daijro
2a250720a6 Add the disableTheming property to config map #179 2025-02-06 20:58:10 -06:00
daijro
8a1abfb9a5 Disable OOPIFs without disabling COOP #150 2025-02-05 16:51:54 -06:00
daijro
cf269d6b60 feat: Force system principal scope access (forceScopeAccess)
A workaround to restore some original Playwright functionality.

Forces Playwright to run in "God mode", allowing it to bypass CORS restrictions, access shadow roots (with element.shadowRootUnl), access undocumented JS browser methods, modify DOM without `allowMainWorld`, & restore some unsupported Playwright functionality.

Note: `forceScopeAccess` is not detectable/visible to the page unless the dom is directly modified (elements are added or removed).
2025-02-03 20:49:42 -06:00
daijro
a8e0855639 [Closed] feat: Canvas anti-fingerprinting beta.19
Added undetectable Canvas shape & line fingerprint rotation by modifying the Skia rendering pipeline. This bypasses all known Canvas pixel integrity tests.

Note: Due to this repository being monitored, the source for this patch is closed. All GitHub releases will still have this patch included in it. However, this patch will not be included in local builds of Camoufox.
2024-12-09 02:47:32 -06:00
daijro
4305385f0b feat: Main world JS evaluation
Experimental support to execute in the main world. Usage: `page.evaluate("mw:<script>")`
Has only been implemented to pass JSON serializable objects to/from the main world (Isolated worlds are still the default, and should be used unless necessary).
2024-12-03 06:36:31 -06:00
daijro
c5cad3040c Bump to beta.17 2024-11-21 16:45:40 -06:00
daijro
ed87adf6fe Update properties & release beta.16 2024-11-19 03:00:00 -06:00
daijro
74d016e9a9 feat: Voice spoofing
- Added `voices` parameter, which takes a list maps for each voice to add. Example:
  `[ {"isLocalService": true, "isDefault": true, "voiceUri": "Ting-Ting", "name": "Ting-Ting", "lang": "zh-CN" } ... ]`
- Added `voices:blockIfNotDefined` has been added to block system voices
- Added `voices:fakeCompletion: bool` and `voices:fakeCompletion:charsPerSecond: double` to set a fake playback speed.
2024-11-04 02:52:10 -06:00
daijro
d279ed0cf0 Add font spacing seed #38
Adds fonts:spacing_seed to control the spacing of rendered text.
2024-11-03 23:04:20 -06:00
daijro
dc3c0bde16 Misc fixes beta.13
- Fixed some memory enhancement prefs not setting correctly.
- Bfcache is now completely disabled. This should improve memory, but kills Playwright's page.go_back() and page.go_forward(). To re-enable this, set `browser.sessionhistory.max_entries` to the amount of pages you want to remember.
- Moved SanitizeOnShutdown policy to preferences instead. This unlocks clearOnShutdown preferences. #47
- Added experimental memorysaver property that clears all of the memory after each page.goto navigation. Helpful for datacenters running Camoufox, but could potentially break things.
- Cursor now starts in a random position on the screen
- Fixed screenshots not capturing the full window when a viewport is set by window.innerWidth and window.innerHeight.
2024-10-24 01:32:47 -05:00
daijro
711b5b4550 Backwards compatibility with <0.3.0
Change ALL webgl keys to webGl. This keeps backwards compatibility with <0.3.0 versions of the Python library.
2024-10-20 00:46:53 -05:00
daijro
0ff90fc750 Version range control, multi locale usage, etc
- Python library now constrains the supported Camoufox version, and will force an update if you are out of date.
- Added support patch for multiple accepted languages #37
- Added pysocks #43
- Added README deprecation notices
- Added public launch_options command
- Bumped python library to 0.3.0
- Full support for beta.12
2024-10-19 23:10:51 -05:00
daijro
5bfc3ee026 Further improved WebGL spoofing beta.12
- Added ability to spoof webgl2 supported extensions
- Added ability to block parameters that aren't defined in config
- Passing null in config will block the value
- Added more parameters to the demo site
2024-10-14 20:31:58 -05:00
daijro
1532d7bb31 Consistent naming of webgl properties
Always use "webgl:" instead of "webGl:"
2024-10-14 04:36:01 -05:00
daijro
02bc15161a feat: WebGL fingerprint spoofing
Experimental WebGL fingerprint injection.
- Allows the ability to set all WebGL parameters, supported extension list, shader precision formats, & context attributes.
- Added a demo website under scripts/examples/webgl.html that can be used to generate Camoufox config data
2024-10-14 02:12:13 -05:00
daijro
595828a446 Update Makefile & add navigation debugging 2024-10-09 20:48:58 -05:00
daijro
80b084a9b3 feat: Add human-like cursor movement & cursor highlighter #19 beta.10
All info in README.
2024-10-02 21:15:46 -05:00
daijro
5263cb6305 Add locale spoofing #16 beta.8
Spoof the Intl API, headers, and system locale values.
Added the following properties:
- locale:language
- locale:region
- locale:script
2024-09-28 17:09:22 -05:00
daijro
8385561b19 Add timezone spoofing #5
Adds "timezone" property to set a custom tz identifier (ex: "America/Chicago").
Also changes Date() properties to return the local time.
2024-09-22 22:00:58 -05:00
daijro
917c159d57 Add geolocation spoofing
Adds the following:
- geolocation:latitude
- geolocation:longitude
- geolocation:accuracy

If accuracy is not provided, it will be automatically calculated based on the decimal precision of the given latitude and longitude.
2024-09-22 08:30:40 -05:00
daijro
a2cb02df8a Add config type validator
- Validates property types passed in --config.
- Types are stored in properties.json.
2024-08-18 05:14:20 -05:00