Location Spoofing Feature#57
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
UI logic and interactivity:
hydrateLocationEditorfunction 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:
navigator.geolocationmethods (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:
enable_location_spoofingto the settings catalog and UI, making it selectable in the privacy section and ensuring it can be toggled by the user. [1] [2]