Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Import bookmarks into Firefox' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Import bookmarks into Firefox
Authored by: gab on Jun 03, '05 08:28:58AM
A disadvantage of installing the latest firefox nightly build is that it seems to do something to your local firefox data, such as extensions. Besides, it didn't work either, i.e., it was unable to parse the bookmarks i exported from Opera.

So i did the following:
1. Export the Bookmarks from Opera as HTML; this yields a file opera6.html.
2. In a Terminal (Unix shell), go to that file and type


     grep -e '<dd>' -e '<dt>' -e '<dl>' -e '</dl>' -e '</dd>' opera6.html > qq.html

3. Edit qq.html in your favorite editor, do this:
a) insert a
<dl>
at the very first line;
b) append
</dl>
at the very last line;
c) replace all occurences of
i)
<dt>
by
<dt><h3>

ii)
</dt>
by
</h3></dt> 

In vim, this would be done by the following two substitute commands:
i)
:%s/<\/dt>/<\/h3><\/dt>/ 

ii)
:%s/<dt>/<dt><h3>/ 

Save this as qqq.html. Now you can import the file qqq.html in firefox 1.0.2.

There seems to be a bug in opera's bookmark export. The toplevel folder structure is not correct, so you would have to fix that after importing the bookmarks by hand in firefox. HTH, gabriel.

[ Reply to This | # ]