feat(instances): add automatic fingerprint generation toggle#3
feat(instances): add automatic fingerprint generation toggle#3
Conversation
theguy000
commented
Mar 17, 2026
- Add auto_fingerprint module with ...
- Add auto_fingerprint module with ...
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a significant feature: an "Auto Mode" for browser fingerprint generation. This mode leverages Camoufox's built-in browserforge to automatically create unique and randomized browser fingerprints for each instance launch. By dynamically adjusting properties like user agent, screen dimensions, WebGL details, and available fonts/voices, this feature aims to enhance privacy and simplify the management of browser profiles, reducing the need for manual configuration. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
The pull request introduces an automatic fingerprint generation toggle, enhancing the flexibility of instance configurations. The changes correctly integrate the new auto_fingerprint field into the FingerprintConfig and update the logic for generating CAMOU_CONFIG based on this setting. A new Rust module auto_fingerprint.rs and associated JSON data files (fonts.json, voices.json) have been added to support this feature. The Svelte component InstanceSettingsModal.svelte has been updated to include the UI for the auto-mode toggle and to conditionally display manual fingerprint settings.
One critical issue was identified in the auto_fingerprint.rs module related to a non-existent method call, which will prevent compilation. Additionally, some inline styles in the Svelte component could be refactored for better maintainability.
| "lang": lang, | ||
| "voiceUri": voice_uri, | ||
| "isDefault": filtered_idx == 0, | ||
| "isLocalService": parts.get(2).is_none_or(|t| *t == "local") |
There was a problem hiding this comment.
The is_none_or method is not a standard Rust method and will cause a compilation error. You likely intended to use map_or to provide a default value if the third part of the split string is missing, or to check if it matches "local" otherwise.
| "isLocalService": parts.get(2).is_none_or(|t| *t == "local") | |
| "isLocalService": parts.get(2).map_or(true, |&t| t == "local") |
| <div class="auto-mode-panel section-group" style="padding: 1rem; border: 1px solid {autoMode ? accentGreen : 'var(--panel-border)'}; background: {autoMode ? accentGreenBg : 'rgba(255, 255, 255, 0.02)'}; margin-bottom: 1rem; transition: border-color 0.2s, background 0.2s;"> | ||
| <div style="display: flex; align-items: center; justify-content: space-between;"> | ||
| <div style="display: flex; align-items: center; gap: 10px;"> | ||
| <h4 style="margin: 0; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; color: {autoMode ? accentGreen : 'var(--text-primary)'};">AUTO MODE</h4> | ||
| <span style="font-size: 0.6rem; letter-spacing: 0.05em; color: var(--text-secondary);">BROWSERFORGE FINGERPRINTING</span> | ||
| </div> | ||
| <button | ||
| class="btn {autoMode ? 'btn-active' : ''}" | ||
| style="font-size: 0.6rem; padding: 4px 12px; min-width: 50px; letter-spacing: 0.05em; {autoMode ? `background: ${accentGreen}; color: #000; border-color: ${accentGreen};` : ''}" | ||
| on:click={() => { autoMode = !autoMode; }} |