X
Tap here to go to the mobile version of the site.

Support Forum

How do I export just ONE bookmark folder for copying to another computer?

Posted

I have multiple Bookmark folders. I want to export (and then import) just ONE of the folders to another computer.

When I go through the EXPORT BOOKMARKS TO HTML process the html document created contains ALL 18 FOLDERS even though at the time of creating the document, at the bottom of the export menu page in the "NAME" slot it showed just the name of the folder I wanted to export.

As far as I know there is no way to edit the html document to delete the unwanted folders. If there is, please share the information.

Thank you for your assistance.

I have multiple Bookmark folders. I want to export (and then import) just ONE of the folders to another computer. When I go through the EXPORT BOOKMARKS TO HTML process the html document created contains ALL 18 FOLDERS even though at the time of creating the document, at the bottom of the export menu page in the "NAME" slot it showed just the name of the folder I wanted to export. As far as I know there is no way to edit the html document to delete the unwanted folders. If there is, please share the information. Thank you for your assistance.

Additional System Details

Installed Plug-ins

  • Shockwave Flash 32.0 r0

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0

More Information

TanmayM 0 solutions 1 answers

You can do this by Restore and Backup functionality. Additional work need to do is editing JSON file to keep desire folder.

You can do this by Restore and Backup functionality. Additional work need to do is editing JSON file to keep desire folder.

Question owner

Thanks for the reply.

When using the Restore an Backup functionality ALL the folders in Bookmark are copied. I want to copy only ONE of them. If there is a way to do that, could you specify exactly what I should do.

Again, thanks.

Thanks for the reply. When using the Restore an Backup functionality ALL the folders in Bookmark are copied. I want to copy only ONE of them. If there is a way to do that, could you specify exactly what I should do. Again, thanks.
FredMcD
  • Top 10 Contributor
4184 solutions 58423 answers

Export to an HTML file as explained below. After, load the file into a Word type program and remove what you don't want.

Note: This is a better way of backing up your bookmarks as many have had issues when trying to restore from backups.


Open the Bookmarks Manager; Press the Alt or F10 key to bring up the toolbar, and select Bookmarks. Hot key is <Control> (Mac=<Command>) <Shift> B.

Once the window is open, at the top of the page, press the button labeled Import and Backup. Select Export Bookmarks To HTML, and follow the prompts and save it to a HTML file. Copy the file to another computer/profile. Repeat the instructions above, BUT select Import Bookmarks From HTML.

https://support.mozilla.org/en-US/kb/restore-bookmarks-from-backup-or-move-them

https://support.mozilla.org/en-US/kb/recover-lost-or-missing-bookmarks

Export to an HTML file as explained below. After, load the file into a Word type program and remove what you don't want. Note: This is a better way of backing up your bookmarks as many have had issues when trying to restore from backups. ------------ Open the '''Bookmarks Manager; ''' Press the '''Alt''' or '''F10''' key to bring up the toolbar, and select '''Bookmarks. ''' Hot key is '''<Control> ''(Mac=<Command>)'' <Shift> B. ''' Once the window is open, at the top of the page, press the button labeled ''' Import and Backup. ''' Select '''Export''' '''Bookmarks To HTML, ''' and follow the prompts and save it to a '''HTML''' file. '''Copy''' the file to another computer/profile. Repeat the instructions above, BUT select '''Import Bookmarks''' '''From HTML. ''' https://support.mozilla.org/en-US/kb/restore-bookmarks-from-backup-or-move-them https://support.mozilla.org/en-US/kb/recover-lost-or-missing-bookmarks
jscher2000
  • Top 10 Contributor
8568 solutions 70054 answers

Sorry, there's no built-in feature for this. I don't know whether any add-ons do it; there are many bookmark-related extensions on the Mozilla Add-ons site.

https://addons.mozilla.org/en-US/firefox/search/?type=extension&platform=windows&q=bookmark

Sorry, there's no built-in feature for this. I don't know whether any add-ons do it; there are many bookmark-related extensions on the Mozilla Add-ons site. https://addons.mozilla.org/en-US/firefox/search/?type=extension&platform=windows&q=bookmark
jscher2000
  • Top 10 Contributor
8568 solutions 70054 answers

Leah3 said

As far as I know there is no way to edit the html document to delete the unwanted folders. If there is, please share the information.

It depends on whether you want the file to be importable into another browser. In that case you do need to be careful to maintain the structure of the file.

This is a highly simplified example, with one folder and one bookmark on the Bookmarks Menu, and two bookmarks on the Bookmarks Toolbar:

https://pastebin.com/4L0CwQRV

As you can see, the overall set of bookmarks is contained within a <DL> element, each folder title is a <DT> element containing a <H3> element for its title, and the folder contents are in the <DL> element that follows. You can prune away the excess elements, and you should still have an importable file.

If you don't have an editor that offers syntax coloring for HTML tags, you could consider installing one.

''Leah3 [[#question-1246330|said]]'' <blockquote> As far as I know there is no way to edit the html document to delete the unwanted folders. If there is, please share the information. </blockquote> It depends on whether you want the file to be importable into another browser. In that case you do need to be careful to maintain the structure of the file. This is a highly simplified example, with one folder and one bookmark on the Bookmarks Menu, and two bookmarks on the Bookmarks Toolbar: https://pastebin.com/4L0CwQRV As you can see, the overall set of bookmarks is contained within a '''&lt;DL>''' element, each folder title is a '''&lt;DT>''' element containing a '''&lt;H3>''' element for its title, and the folder contents are in the '''&lt;DL>''' element that follows. You can prune away the excess elements, and you should still have an importable file. If you don't have an editor that offers syntax coloring for HTML tags, you could consider installing one.
cor-el
  • Top 10 Contributor
  • Moderator
17334 solutions 156717 answers

If there are only bookmarks in this folder then you can select these bookmarks and copy them via the right-click context menu to the clipboard. This only works for real bookmarks (folders only give you the folder name and not the bookmarks in this folder).

The text/html flavor gives you a HREF code like this.

<A HREF="https://support.mozilla.org/en-US/questions/1246330#answer-preview">How do I export just ONE bookmark folder for copying to another computer? | Firefox Support Forum | Mozilla Support</A>

If you paste this data in an HTML file then file can be imported like an HTML file in the Library and these bookmarks would appear in the Bookmarks Menu folder.

Code for the Browser Console to convert text/html to text/unicode:

var cbio = [1,0]; // in: text/html; out: text/unicode
var flavors = ["text/unicode","text/html","text/x-moz-place"];
var flavor = flavors[cbio[0]]; // [1]: text/html
var trans = Cc["@mozilla.org/widget/transferable;1"].createInstance(Ci.nsITransferable);
trans.init(null);
trans.addDataFlavor(flavor);
var cb = Services.clipboard;
cb.getData(trans, cb.kGlobalClipboard);
var str       = {};
var strLength = {};
trans.getTransferData(flavor, str, strLength);
if(str&&str.value){pastedTxt = str.value.QueryInterface(Ci.nsISupportsString).data;
var str = Cc["@mozilla.org/supports-string;1"].createInstance(Ci.nsISupportsString);
str.data = pastedTxt;
var flavor = flavors[cbio[1]]; // [0]: text/unicode
var trans = Cc["@mozilla.org/widget/transferable;1"].createInstance(Ci.nsITransferable);
trans.init(null);
trans.addDataFlavor(flavor);
trans.setTransferData(flavor,str,pastedTxt.length*2);
cb.setData(trans,null,cb.kGlobalClipboard);
}
If there are only bookmarks in this folder then you can select these bookmarks and copy them via the right-click context menu to the clipboard. This only works for real bookmarks (folders only give you the folder name and not the bookmarks in this folder). The text/html flavor gives you a HREF code like this. <pre><nowiki><A HREF="https://support.mozilla.org/en-US/questions/1246330#answer-preview">How do I export just ONE bookmark folder for copying to another computer? | Firefox Support Forum | Mozilla Support</A></nowiki></pre> If you paste this data in an HTML file then file can be imported like an HTML file in the Library and these bookmarks would appear in the Bookmarks Menu folder. * [/questions/1156596#answer-959910] How can I copy a single bookmark file in the bookmark library? Code for the Browser Console to convert text/html to text/unicode: <pre><nowiki>var cbio = [1,0]; // in: text/html; out: text/unicode var flavors = ["text/unicode","text/html","text/x-moz-place"]; var flavor = flavors[cbio[0]]; // [1]: text/html var trans = Cc["@mozilla.org/widget/transferable;1"].createInstance(Ci.nsITransferable); trans.init(null); trans.addDataFlavor(flavor); var cb = Services.clipboard; cb.getData(trans, cb.kGlobalClipboard); var str = {}; var strLength = {}; trans.getTransferData(flavor, str, strLength); if(str&&str.value){pastedTxt = str.value.QueryInterface(Ci.nsISupportsString).data; var str = Cc["@mozilla.org/supports-string;1"].createInstance(Ci.nsISupportsString); str.data = pastedTxt; var flavor = flavors[cbio[1]]; // [0]: text/unicode var trans = Cc["@mozilla.org/widget/transferable;1"].createInstance(Ci.nsITransferable); trans.init(null); trans.addDataFlavor(flavor); trans.setTransferData(flavor,str,pastedTxt.length*2); cb.setData(trans,null,cb.kGlobalClipboard); }</nowiki></pre>

Modified by cor-el