Skip to content

Location Spoofing Feature#57

Merged
ovsky merged 4 commits into
devfrom
feature/location-spoofing
Dec 5, 2025
Merged

Location Spoofing Feature#57
ovsky merged 4 commits into
devfrom
feature/location-spoofing

Conversation

@ovsky
Copy link
Copy Markdown
Owner

@ovsky ovsky commented Dec 5, 2025

This pull request adds support for location spoofing in the browser, allowing users to override the GPS coordinates reported to websites. The main changes include new UI controls for entering latitude and longitude, settings persistence, and logic to inject spoofed coordinates into web pages when the feature is enabled.

Location spoofing feature:

  • Added a new "Location Spoofing" section to the settings UI, including input fields for latitude and longitude, preset buttons for popular cities, and contextual help. This section is styled for clarity and disables controls when spoofing is turned off. [1] [2] [3]
  • Extended the settings infrastructure to track spoofed latitude and longitude, detect when they change, and persist them to disk. This includes parsing and saving these values in the settings manager. [1] [2] [3] [4] [5] [6] [7] [8]

UI logic and interactivity:

  • Implemented the hydrateLocationEditor function to synchronize UI controls with settings, handle input validation, update settings on change, and support auto-save functionality. Preset buttons update both the UI and settings.

Core browser functionality:

  • Injected JavaScript into web pages to override navigator.geolocation methods (getCurrentPosition, watchPosition, clearWatch) with the spoofed coordinates whenever location spoofing is enabled. This ensures all geolocation requests return the user-specified values.

Settings catalog updates:

  • Added enable_location_spoofing to the settings catalog and UI, making it selectable in the privacy section and ensuring it can be toggled by the user. [1] [2]

ovsky added 4 commits December 5, 2025 18:51
Introduces a Location Spoofing section in the settings page, including UI for latitude/longitude input, preset buttons, and associated styles. Adds logic to hydrate, update, and save spoofed coordinates, and integrates with the settings' dirty state and auto-save functionality. Also updates the privacy settings list to include location spoofing.
Introduces support for spoofed_latitude and spoofed_longitude in settings. Adds lenient double parsing for these values when loading from disk and ensures they are saved to the settings file.
Introduces location spoofing options to browser settings, allowing users to override navigator.geolocation with custom latitude and longitude values. Updates settings catalog, UI handlers, and payload builder to support enabling spoofing and specifying coordinates.
@ovsky ovsky merged commit 3a5062c into dev Dec 5, 2025
7 checks passed
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