搜尋 Mozilla 技術支援網站

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

Learn More

Format of HTML bookmarks file

  • 2 回覆
  • 2 有這個問題
  • 1062 次檢視
  • 最近回覆由 BernieC

more options

I want to set up a bunch of bookmarks in FF [84.0.1] and I cannot find out what the acceptable bookmark format is. [the bookmarks will come from someone else so I'd like to write a program to generate the appropriate import file]. I've tried edit an exported HTML file and then importing that [modified] file and it doesn't seem to work at all, so I'm clearly not understanding what has to be in the file so it'll work.

My plan/hope was to be able create a file with

<DL><P>
   <DT> FOLDERNAME 
   <DL> <P>
        <DT> <A HREF=URL> name for the bookmark</a>
       <DT> <A HREF=URL> name for trhe bookmakr</a>
               ...
    </DL>
</DL>

Is that even vaguely close to something that'll work?

I want to set up a bunch of bookmarks in FF [84.0.1] and I cannot find out what the acceptable bookmark format is. [the bookmarks will come from someone else so I'd like to write a program to generate the appropriate import file]. I've tried edit an exported HTML file and then importing that [modified] file and it doesn't seem to work at all, so I'm clearly not understanding what has to be in the file so it'll work. My plan/hope was to be able create a file with <pre><nowiki><DL><P> <DT> FOLDERNAME <DL> <P> <DT> <A HREF=URL> name for the bookmark</a> <DT> <A HREF=URL> name for trhe bookmakr</a> ... </DL> </DL></nowiki></pre><br> Is that even vaguely close to something that'll work?

由 cor-el 於 修改

被選擇的解決方法

Hi, I'm not aware of an official document, although there might be one out there.

When you strip it down, Firefox will import this structure successfully:

<DL>
    <DT><H3>Folder Name 1</H3></DT>
    <DL>
        <DT><A HREF="https://support.mozilla.org/en-US/products/firefox">Help and Tutorials</A></DT>
        <DT><A HREF="https://support.mozilla.org/en-US/kb/customize-firefox-controls-buttons-and-toolbars">Customize Firefox</A></DT>
    </DL>

    <DT><H3>Folder Name B</H3></DT>
    <DL>
        <DT><A HREF="https://www.mozilla.org/en-US/contribute/">Get Involved</A></DT>
        <DT><A HREF="https://www.mozilla.org/en-US/about/">About Us</A></DT>
    </DL>
</DL>

(You don't need to close the <DT> tags, but I recommend it so that if you view the HTML in a syntax highlighting editor, it will be well understood.)

從原來的回覆中察看解決方案 👍 1

所有回覆 (2)

more options

選擇的解決方法

Hi, I'm not aware of an official document, although there might be one out there.

When you strip it down, Firefox will import this structure successfully:

<DL>
    <DT><H3>Folder Name 1</H3></DT>
    <DL>
        <DT><A HREF="https://support.mozilla.org/en-US/products/firefox">Help and Tutorials</A></DT>
        <DT><A HREF="https://support.mozilla.org/en-US/kb/customize-firefox-controls-buttons-and-toolbars">Customize Firefox</A></DT>
    </DL>

    <DT><H3>Folder Name B</H3></DT>
    <DL>
        <DT><A HREF="https://www.mozilla.org/en-US/contribute/">Get Involved</A></DT>
        <DT><A HREF="https://www.mozilla.org/en-US/about/">About Us</A></DT>
    </DL>
</DL>

(You don't need to close the <DT> tags, but I recommend it so that if you view the HTML in a syntax highlighting editor, it will be well understood.)

more options

thanks -- that's the information I was looking for. I'll be trying it Xmas day [since we're sheltering in place and it'll be a quiet day :)]