Removing description from Firefox bookmarks
By default Firefox populates the Description field of a bookmark with the content of the page’s <meta name="Description" content="..." />
tag. I find is a little annoying and was looking for a way to remove these descriptions.
Since I have a lot of bookmarks I wanted to clean them all up in one go rather than editing them one by one. Luckily there is an easy way to do this since Firefox stores the bookmarks in an SQLite database file which can be opened and manipulated.
- Install SQLite Database Browser (Ubuntu:
sudo apt-get install sqlitebrowser
Windows: download and install from SourceForge). - IMPORTANT! Export your Firefox bookmarks to have a backup in case something goes wrong.
- Close Firefox (you can’t edit the bookmarks file while Firefox is running).
- Run SQLite Database Browser and open the places.sqlite file which is located in your profile folder.
- Run the following SQL which will remove the description from all bookmarks.
delete from moz_items_annos where anno_attribute_id = 2 - Save and close, run Firefox.
Reference on the places.sqlite file can be found on mozillaZine and Mozilla Developer Network.
absolutely unhelpful
there is no such databas file in windows older version of firefox
only bookmarks.html in the mozilla folder
what gives
Hi “B”, you are correct this is applicable to Firefox 3 and later. By the way, Mozilla stopped support for Firefox 2 in December 2008. You should upgrade.
Will this work for bulk renaming of bookmarks i.e. the name field. I have a ton of youtube bookmarks and I would like to rename all of them by deleting the youtube at the beginning of the bookmark name.
Yes, it should be possible. The SQL to run would be something like
update moz_bookmarks set title = substr( title, 1+length( 'YouTube' )) where title like 'YouTube%'
.Make sure to BACKUP to places.sqlite file first.
For some reason this didn’t work when I used:
“delete from moz_items_annos where anno_attribute_id = 2”
but when I changed “anno_attribute_id = 2” to “anno_attribute_id = 1” it suddenly did work. Why is that? What is anno_attribute_id anyways? I hope that I’m not harming my bookmark database in any way…
Anyways, great article. I can FINALLY get rid of those annoying descriptions 🙂