Skip to content

P-Jay23/Google-Maps-History-Cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

About this extension

A Firefox WebExtension that removes duplicate Google Maps history entries in the browser’s history, based on coordinates, keeping only entries where the coordinates differ beyond the third decimal place (approximately 110 meters). The extension will monitor visits to https://www.google.com/maps/*, extract coordinates from the URL, compare them to previous entries, and delete duplicates with coordinates that are too similar.

Approach:

Monitor Google Maps URLs: Use the webNavigation.onHistoryStateUpdated API to detect navigation events on Google Maps. Extract Coordinates: Parse the URL to extract latitude and longitude (e.g., from https://www.google.com/maps/place/.../@,,... or https://www.google.com/maps/@,,...). Compare Coordinates: Check if the coordinates differ beyond the third decimal place (0.001 degrees ≈ 110 meters). Manage History: Use the history API to search for and delete duplicate entries in the browser’s history. Permissions: Request history, webNavigation, and appropriate host permissions.

https://addons.mozilla.org/en-US/firefox/addon/google-maps-history-cleaner/

Before: Screenshot_20260126_133016

After:

Screenshot_20260126_133048

About

A Firefox WebExtension that removes duplicate Maps entries in the browser’s history, based on coordinates, where the coordinates differ beyond the third decimal place (approximately 110 meters). The extension monitors visits to https://www.google.com/maps/*, extract coordinates from the URL, compare them to previous entries, and delete duplicates.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors