Export bookmarks as Netscape HTML
browser_bookmarks_exportExports Firefox bookmarks to a Netscape Bookmark HTML file, enabling transfer or backup across browsers such as Chrome, Edge, and Safari.
Instructions
Write the bookmark tree to a Netscape Bookmark HTML file. That is the format Chrome, Edge and Safari also export, so it is how bookmarks move between browsers. MEASURED: Firefox has no usable exportToHTML in this build, so this walks PlacesUtils.bookmarks.search({parentGuid}) recursively and builds the HTML itself. TWO TRAPS: item.url is a URI object (read .spec), and search({parentGuid}) also returns the parent folder itself which must be skipped or the walk never ends.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute .html file path to write | |
| maxNodes | No | Node budget (default 2000) |