Skip to content

Instantly share code, notes, and snippets.

@mortalis13
Created October 12, 2024 11:50
Show Gist options
  • Select an option

  • Save mortalis13/f7958f0223d3afa80768381a33fae6d7 to your computer and use it in GitHub Desktop.

Select an option

Save mortalis13/f7958f0223d3afa80768381a33fae6d7 to your computer and use it in GitHub Desktop.
Import custom bookmark structure into Firefox

Save the snippet as an HTML file and use Import Bookmarks from HTML from the Firefox Library.
This will create folders for each H3 under the global category from H1, and corresponding links (DL -> DT) under the folders.

<H1>Bookmarks Menu</H1>
<DL><p>
  <DT><H3>Folder 1</H3>
  <DL><p>
    <DT><A HREF="https://github.com">Link 1.1</A>
  </DL>
  
  <DT><H3>Folder 2</H3>
  <DL><p>
    <DT><A HREF="https://gist.github.com">Link 2.1</A>
  </DL>
</DL>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment