Simple script that imports entries from the Safari history database into that of Chrome
Back up first.
$ bundle exec ruby import.rb safari.db chrome.db [--verbose --progress]
Can be run multiple times as the import process is indempotent. Indeed, duplicates are removed at the end.
Locations of SQLite database files in macOS:
- Safari:
~/Library/Safari/History.db
- Chrome:
~/Library/Application Support/Google/Chrome/Default/History
Thanks to @dropmeaword. This script is inspired by his gist browser_history.md.