~netlandish/links#66: 
Firefox: Bookmark Import Issues

In firefox, when I try to export my bookmarks as html, it only exports the bookmarks toolbar no matter what I select.

When I try to import a json full backup, the app says "he file submitted for this source should be html" (note the typo)

I looked at some old code of mine and it seems like I had to implement JSON for ff imports.

Sorry, it's a ruby code snippet haha:

   def load(content)
     @json = JSON.parse(content)
   end

   def check_element(el)
     if el['type'] == 'text/x-moz-place'
       @bookmarks.push({
         title: el['title'],
         url: el['uri']
       })
     end
     (el['children'] || []).each {|c| self.check_element(c) }
   end
   def get_bookmarks()
     self.check_element(@json)

     return @bookmarks
         bmark = {}
         bmark[:url] = child.attribute('href').value
         bmark[:title] = child.inner_text
         @bookmarks.push bmark
   end
Status
RESOLVED INVALID
Submitter
Andrew
Assigned to
No-one
Submitted
2 months ago
Updated
2 months ago
Labels
No labels applied.

~petersanchez 2 months ago

Peter Sanchez referenced this ticket in commit e2ea3b3.

~petersanchez REPORTED INVALID 2 months ago

Testing on Mac and Linux all bookmarks are exported correctly. You need to be sure to have "All bookmarks" selected when in the Library window. Seems like you only had Bookmarks toolbar selected.

~yaderv 2 months ago

Yader Velasquez referenced this ticket in commit da2132e.

Register here or Log in to comment, or comment via email.