Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 175535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:42:58+00:00 2026-05-11T13:42:58+00:00

I am trying to write a Firefox 3 add-on which will enable me to

  • 0

I am trying to write a Firefox 3 add-on which will enable me to easily re-tag bookmarks. For example I have some bookmarks tagged ‘development’ and some tagged ‘Development’ and I would like a way to easily update all the ‘delelopment’ tags to ‘Development’. Unfortunately I can not find an add-on to do this so I thought I would create my own.

Having not developed an add-on before I’ve managed to grasp the basics and discovered that FireFox stores all bookmarks in an SQLite database called Places.sqlite. Within that database there is a table called moz_bookmarks which contains all the bookmarks, tags and folders within the bookmarks directory. The structure of the bookmark folders and their child bookmarks is represented using a foreign key id which points to the parent folder’s id in the same table which again recursses upwards to that parent folder’s Id until it hits the bookmarks root.

However, where I become stuck is how the tags you apply in firefox are related to the bookmarks. Each tag has a type = 2 and parent ID = 4. However I can see no correlation between this and an actual bookmarks that use the tag. If I add a bookmark in firefox to no particular folder but give it 2 or 3 tags then it’s parent folder ID is 5 which corresponds to ‘unfiled’ but I can see no further correlation to the tags associated with it.

I have found this Wiki page on the structure but it does not really help.

It’s driving me nuts 🙁 Please help…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:42:59+00:00Added an answer on May 11, 2026 at 1:42 pm

    You probably already found out yourself, but tags are applied as follows:

    The central place for all URLS in the database is moz_places. The table moz_bookmarks refers to it by the foreign key column fk.

    If you tag a bookmark, there are multiple entries in moz_bookmarks, all having the same reference fk: The first is the bookmark itself (having the title in the title column) For each tag, there’s an additional entriy in moz_bookmarks having the same foreign key fk and refering to the tag in the parent coumn (which points to the moz_bookmarks row for the tag).

    If you have a bookmark ‘http://stackoverflow.com‘ titled ‘Stackoverflow’ with tags ‘programming’ and ‘info’, you will get:

    moz_places ---------- id    url   (some more) 3636  http://stackoverflow.com  moz_bookmarks ------------- id    type    fk     parent    title          (other columns omitted...) 332   1       3636   5         Stackoverflow  (parent=5 -> unfiled folder) 333   2       (NULL) 4         programming    (programming tag, parent=4 -> tags folder) 334   1       3636   333       (NULL)         (link to 'programming' tag) 335   2       (NULL) 4         info           (info tag, parent=4 see above) 336   1       3636   335       (NULL)         (link to 'info' tag) 

    Hope this helps…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 92k
  • Answers 93k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I've always used JAX-WS which works very well with EJB3.… May 11, 2026 at 6:33 pm
  • Editorial Team
    Editorial Team added an answer Well, once I actually took the time to think about… May 11, 2026 at 6:33 pm
  • Editorial Team
    Editorial Team added an answer null is not the problem here, but the index is… May 11, 2026 at 6:33 pm

Related Questions

I am trying to respond back to a client with a PDF stored in
I am just starting to learn javascript, so I don't have the skills to
I'm trying to put some (vertically-stacked) display:block elements within a display:inline-block element. According to
I am trying to write a CSS in which when the user writes text

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.