Skip to content

feat(instances): add automatic fingerprint generation toggle#3

Merged
theguy000 merged 1 commit intomasterfrom
feat/auto-fingerprint-mode
Mar 17, 2026
Merged

feat(instances): add automatic fingerprint generation toggle#3
theguy000 merged 1 commit intomasterfrom
feat/auto-fingerprint-mode

Conversation

@theguy000
Copy link
Copy Markdown
Owner

  • Add auto_fingerprint module with ...

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello, 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

  • Automatic Fingerprint Generation: Introduced an "Auto Mode" for fingerprint generation, allowing the application to automatically create unique browser fingerprints on each launch using Camoufox's built-in browserforge.
  • New auto_fingerprint Module: Added a new Rust module (auto_fingerprint.rs) responsible for generating randomized browser properties such as navigator, screen, WebGL, fonts, and voices.
  • Randomness Integration: Integrated the rand crate to facilitate the generation of random values for fingerprinting, ensuring diverse and unpredictable profiles.
  • Fingerprint Data Files: Included fonts.json and voices.json data files to provide comprehensive lists of fonts and voices for different operating systems, used in the auto-fingerprinting process.
  • Configuration and UI Updates: Updated the FingerprintConfig structure and the instance launch logic to support the new auto_fingerprint toggle, and implemented a new UI toggle in the instance settings modal to activate or deactivate this feature.

🧠 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
  • src-tauri/Cargo.lock
    • Updated to include the rand crate dependency.
  • src-tauri/Cargo.toml
    • Added rand crate as a dependency.
  • src-tauri/src/auto_fingerprint.rs
    • Added a new module for generating automatic fingerprint configurations.
  • src-tauri/src/fonts.json
    • Added a new JSON file containing font lists for different operating systems.
  • src-tauri/src/instances.rs
    • Modified the FingerprintConfig struct to include an auto_fingerprint field and updated the launch_instance function to use the new auto-fingerprint generation logic.
  • src-tauri/src/lib.rs
    • Registered the new auto_fingerprint module.
  • src-tauri/src/voices.json
    • Added a new JSON file containing voice lists for different operating systems.
  • src/lib/components/instance/InstanceSettingsModal.svelte
    • Modified the Svelte component to add an "Auto Mode" toggle and conditionally render other fingerprint settings based on its state.
  • src/lib/store.ts
    • Updated the FingerprintConfig interface to include the auto_fingerprint property.
Activity
  • No specific activity has been recorded for this pull request yet.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

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.

Suggested change
"isLocalService": parts.get(2).is_none_or(|t| *t == "local")
"isLocalService": parts.get(2).map_or(true, |&t| t == "local")

Comment on lines +173 to +182
<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; }}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The inline styles for the auto-mode-panel and the button are quite verbose. Consider extracting these into dedicated CSS classes for better maintainability and readability. This would make the template cleaner and easier to manage style changes globally.

@theguy000 theguy000 merged commit d3010dc into master Mar 17, 2026
2 checks passed
@theguy000 theguy000 deleted the feat/auto-fingerprint-mode branch March 17, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant