We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

imported bookmarks.html always loads under Bookmarks Menu

more options

I added bookmarks in my Firefox browser under Bookmarks Toolbar. I exported the bookmarks to bookmarks.html. If I import that file into another Firefox browser, it loads the bookmarks under Bookmarks Menu in a subfolder labeled Bookmarks Toolbar instead of under the top-level Bookmarks Toolbar. Is there a way to change this? I'm using Firefox Browser Extended Support Release 102.9.0esr on RHEL 8.8

I added bookmarks in my Firefox browser under Bookmarks Toolbar. I exported the bookmarks to bookmarks.html. If I import that file into another Firefox browser, it loads the bookmarks under Bookmarks Menu in a subfolder labeled Bookmarks Toolbar instead of under the top-level Bookmarks Toolbar. Is there a way to change this? I'm using Firefox Browser Extended Support Release 102.9.0esr on RHEL 8.8
附加的畫面擷圖

所有回覆 (3)

more options

Sounds that something is wrong with the structure.

Does the Bookmarks Toolbar H3 tag in the HTML back have the PERSONAL_TOOLBAR_FOLDER="true" attribute similar to the UNFILED_BOOKMARKS_FOLDER="true" attribute for the Other Bookmarks H3 tag ?

<H1>Bookmarks Menu</H1>
<DL><p>
 <DT><A HREF="url" >BOOKMARK</A></dt>
 <DT><H3>FOLDER</H3>
  <DL><p>
   <DT><A HREF="url" >BOOKMARK</A></dt>
  </DL><p>
 <DT><H3 PERSONAL_TOOLBAR_FOLDER="true" >Bookmarks Toolbar</H3></dt>
  <DL><p>...</DL><p>
 <DT><H3 UNFILED_BOOKMARKS_FOLDER="true" >Other Bookmarks</H3></dt>
  <DL><p>...</DL><p>
</DL><p>

more options

Does this still happen if you delete that fake Bookmarks Toolbar folder and import this HTML backup again ?

As you can see in my above reply, in the HTML backup both Bookmarks Toolbar and Other Bookmarks folders are sub folders under the Bookmarks Menu folder, but they have a special designation that should make them act as system folders.

more options

Thank you for the replies. The bookmarks.html file save from Firefox looks like this:

<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
     It will be read and overwritten.
     DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<meta http-equiv="Content-Security-Policy"
      content="default-src 'self'; script-src 'none'; img-src data: *; object-src 'none'"></meta>
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks Menu</H1>

<DL><p>
    <DT><H3 ADD_DATE="1628237522" LAST_MODIFIED="1702599857" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks Toolbar</H3>
    <DL><p>
        <DT><A HREF="http://google.com" ADD_DATE="1702599857" LAST_MODIFIED="1702599857">Test bookmark 1</A>
        <DT><A HREF="http://google.com" ADD_DATE="1702599828" LAST_MODIFIED="1702599863">Test bookmark 2</A>
    </DL><p>
</DL>

Yes, if I delete the fake Bookmarks Toolbar folder under Bookmarks Menu and import the file again, it puts it right back under Bookmarks Menu in Bookmarks Toolbar.

由 cor-el 於 修改