Import browsing history from a JSON file
browser_import_historyImports browser history from a JSON file and inserts each entry with its original visit timestamps, preventing migrated visits from appearing as new.
Instructions
Read a JSON file holding an array of {url, title, lastVisit, visitCount} and insert each into Places via PlacesUtils.history.insert, so migrated history keeps its original timestamps instead of looking like fresh visits. Entries whose url already exists are still inserted (Places merges visits for a known url).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a JSON file: array of {url, title, lastVisit, visitCount} |