开发者

How can you get a list or traversable tree of bookmarks from within a Firefox Extension?

I am working on a simple Fi开发者_JAVA百科refox Extension, and I need a list of the user's bookmarks. I have found the nsINavBookmarksService class which appears to be the recommended way of manipulating bookmarks since Firefox 3.0. Strangely I don't see a method that I could use to get a list of all the bookmarks in a folder. I need some way of creating a flat list of all the Bookmark URIs, but without any methods that return information about more than one bookmark I don't see a way to do it.


This tutorial is what you want Places Query API

The bookmarks are in a sqlite file in the profile directory and you need to use the query api to read them.

Good luck!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜