Use the chrome.bookmarks module to create, organize,
and otherwise manipulate bookmarks.

Manifest

You must declare the "bookmarks" permission
in the extension manifest
to use the bookmarks API.
For example:

{
"name": "My extension",
...
"permissions": [
"bookmarks"
],
...
}

Objects and properties

Bookmarks are organized in a tree,
where each node in the tree
is either a bookmark or a group
(a folder that can contain nodes).
Each node in the tree
is represented by a
BookmarkTreeNode object.

BookmarkTreeNode properties
are used throughout the chrome.bookmarks API.
For example, when you call
create(),
you pass in the new node's parent (parentId),
and, optionally, the node's
index, title, and url properties.
See BookmarkTreeNode
for information about the properties a node can have.

Examples

The following code creates a folder with the title "Extension bookmarks".
The first argument to create() specifies properties
for the new folder.
The second argument defines a function
to be executed after the folder is created.

The next snippet creates a bookmark pointing to
the developer documentation for extensions.
Since nothing bad will happen if creating the bookmark fails,
this code doesn't bother to define a callback function.

update

Updates the properties of a bookmark or folder. Specify only the properties that you want to change; unspecified properties will be left unchanged. Note: Currently, only 'title' and 'url' are supported.