Skip to content

Instantly share code, notes, and snippets.

@trumad
Last active May 20, 2024 06:22
Show Gist options
  • Save trumad/368ed72d1d1e87a22569c2ac815ae0bf to your computer and use it in GitHub Desktop.
Save trumad/368ed72d1d1e87a22569c2ac815ae0bf to your computer and use it in GitHub Desktop.
Import Arc history in Firefox

No good reason why this had to be so tricky:

  • Install Export Chrome History extension in Arc
  • Export history to JSON. Choosing the forever option does actually export ALL the history in Arc
  • Install History Export for firefox
  • Optional: Export Firefox history, to see what the json looks like
  • Make the Arc history match what firefox expects. I used this javascript to convert it:
arcHistory.map(item => {
    return {
        id: item.id,
        url: item.url,
        title: item.title,
        lastVisitTime: Math.floor(item.lastVisitTime),
        visitCount: item.visitCount,
    }
})
  • Not much conversion required, but still, I didn't want firefox to crash because there was extra data, or floating point timestamps
  • Import the resulting json file using History Export
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment