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!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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于修改