X
點擊此處開啟此網站的行動版。

技術支援討論區

How do I import a bookmark html from the command line?

已張貼

I have a bookmark file that I have exported to an HTML. I am using Firefox 31.4.0 in Linux and I would like to know how I can import the bookmark from the command line. I would not like to use the mouse & pointer to do this as I have to automate creating/placing bookmarks for a kickstart installation of linux

I have a bookmark file that I have exported to an HTML. I am using Firefox 31.4.0 in Linux and I would like to know how I can import the bookmark from the command line. I would not like to use the mouse & pointer to do this as I have to automate creating/placing bookmarks for a kickstart installation of linux
FredMcD
  • Top 10 Contributor
4396 個解決方法 61677 個答案

To open the Bookmarks Manager, press the Alt or F10 key bring up the tool bar, 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. Repeat the instructions above, BUT select Import Bookmarks From HTML,

To open the '''Bookmarks Manager,''' press the '''Alt''' or '''F10''' key bring up the tool bar, 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. Repeat the instructions above, BUT select '''Import Bookmarks From HTML,'''
cor-el
  • Top 10 Contributor
  • Moderator
17865 個解決方法 161668 個答案

Firefox can automatically import the bookmarks from a bookmarks.html file in the Firefox profile folder when you delete the places.sqlite files in case there are no compressed .jsonlz4 backups in the bookmarkbackups folder. Firefox normally keeps up to 15 backups (browser.bookmarks.max_backups) in the bookmarkbackups folder.

Deleting the places.sqlite file will also delete the browsing history.

You can use this button to go to the current Firefox profile folder:

Firefox can automatically import the bookmarks from a bookmarks.html file in the Firefox profile folder when you delete the places.sqlite files in case there are no compressed .jsonlz4 backups in the bookmarkbackups folder. Firefox normally keeps up to 15 backups (browser.bookmarks.max_backups) in the bookmarkbackups folder. Deleting the places.sqlite file will also delete the browsing history. *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox You can use this button to go to the current Firefox profile folder: *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder) *http://kb.mozillazine.org/Profile_folder_-_Firefox

提出問題者

Thanks, but what I am looking for is to do stuff from command line.. like placing some files in certain locations which would mirror what I would normally do using GUI.

Thanks, but what I am looking for is to do stuff from command line.. like placing some files in certain locations which would mirror what I would normally do using GUI.
cor-el
  • Top 10 Contributor
  • Moderator
17865 個解決方法 161668 個答案

I don't think that is possible. Maybe open the Bookmarks Manager (Library) via a modified desktop shortcut by appending -chrome "chrome://browser/content/places/places.xul" to the command line.

32 bit Windows:

  • "C:\Program Files\Mozilla Firefox\" -chrome "chrome://browser/content/places/places.xul"

I don't think that is possible. Maybe open the Bookmarks Manager (Library) via a modified desktop shortcut by appending <b>-chrome "chrome://browser/content/places/places.xul"</b> to the command line. 32 bit Windows: * "C:\Program Files\Mozilla Firefox\" -chrome "chrome://browser/content/places/places.xul" ---- *https://developer.mozilla.org/Command_Line_Options