docs: 更新文档

This commit is contained in:
foxhui
2026-01-15 03:31:33 +08:00
Unverified
parent 1e73244731
commit 338ab8746e
4 changed files with 92 additions and 10 deletions
+5 -5
View File
@@ -50,8 +50,8 @@ This English version is translated by **Gemini 3 Flash**.
Add or modify the following:
```bash
# Use zstd compression algorithm for the best balance of speed and ratio
ALGO=zstd
# Use lz4 compression algorithm for the best balance of speed and ratio
ALGO=lz4
# Use 60% of total memory as ZRAM size
PERCENT=60
@@ -89,8 +89,8 @@ Recommended to use `zram-generator` for these systems.
[zram0]
# Use 60% of total memory
zram-size = ram * 0.6
# Use zstd compression algorithm
compression-algorithm = zstd
# Use lz4 compression algorithm
compression-algorithm = lz4
# Higher priority than disk Swap
swap-priority = 100
```
@@ -106,7 +106,7 @@ Recommended to use `zram-generator` for these systems.
Regardless of the system, it is recommended to adjust `swappiness` to use ZRAM more aggressively.
```bash
grep -q "vm.swappiness" /etc/sysctl.conf || echo "vm.swappiness=80" | tee -a /etc/sysctl.conf
grep -q "vm.swappiness" /etc/sysctl.conf || echo "vm.swappiness=20" | tee -a /etc/sysctl.conf
sysctl -p
```
+41
View File
@@ -61,6 +61,27 @@ browser:
# ⚠️ Risk: Normal Firefox users have Fission enabled by default. While disabling it does not leak common fingerprints,
# extremely advanced anti-bot systems might identify automated features via "single-process model" or "IPC delays".
fission: true
# CSS Performance Injection
# Reduce CPU load by disabling web effects (Best for CPU-only environments)
cssInject:
# Disable web animations
# Effect: Removes transition and animation
# Benefit: Significantly lowers continuous CPU usage
# Risk: Very low. Almost no impact on browser fingerprint
animation: false
# Disable filters and shadows
# Effect: Removes blur, box-shadow, etc.
# Benefit: Prevents CPU spikes and lag in no-GPU environments
# Risk: Medium. Interface aesthetics degraded, few anti-bots might detect style calculations
filter: false
# Reduce font rendering quality
# Effect: Disables font anti-aliasing, forces fast rendering mode
# Benefit: Slightly reduces CPU drawing pressure
# ⚠️ Risk: High. Jagged text edges; font fingerprint differs from standard browsers (detected by advanced anti-bots)
font: false
# [Global Proxy] Used if an Instance does not have its own proxy configuration
proxy:
@@ -113,6 +134,26 @@ browser:
| `headless` | boolean | `false` | Whether to enable headless mode. |
| `fission` | boolean | `true` | Whether to enable Site Isolation (fission.autostart). |
| `proxy` | object | - | Global proxy configuration. |
| `cssInject` | object | - | CSS performance injection configuration. |
#### CSS Injection (cssInject)
Performance optimization options for CPU-Only environments. Reduces CPU load by disabling specific web effects via CSS injection.
| Item | Type | Default | Description |
| --- | --- | --- | --- |
| `animation` | boolean | `false` | **Disable Animations** (Recommended)<br>Effect: Removes transition and animation.<br>Benefit: Significantly reduces continuous CPU usage.<br>Risk: Very Low (Negligible impact on fingerprint). |
| `filter` | boolean | `false` | **Disable Effects**<br>Effect: Removes blur, box-shadow, etc.<br>Benefit: Prevents UI lag caused by complex rendering.<br>Risk: Medium (UI Aesthetics degraded, rarely checked by anti-bots). |
| `font` | boolean | `false` | **Fast Rendering Fonts**<br>Effect: Disables font anti-aliasing.<br>Benefit: Slightly reduces rendering pressure.<br>Risk: **High** (Font fingerprint anomaly, easily detected by advanced anti-bots). |
### Backend Resource Pool (backend.pool)
| Item | Type | Default | Description |
| --- | --- | --- | --- |
| `strategy` | string | `least_busy` | Load balancing strategy. Option: `least_busy`. |
| `failover.enabled` | boolean | `true` | Whether to enable automatic failover. |
| `failover.maxRetries` | number | `2` | Maximum retry attempts for failover. |
| `instances` | array | - | List of browser instances. See [Instances Configuration](/en/config/instances). |
### Adapter Configuration (backend.adapter)