Files
webextensions-examples/bookmark-it/README.md
wbamberg dead97bc38 Rewrite of bookmark-it, fixing issue 182 and some other problems (#186)
* Rewrite of bookmark-it, fixing issue 182 and some other problems

* Catch rejected promises

* Update with review comments, and some more fixes

* Revise fix to be much closer to original

* Remove extra semicolon
2017-05-09 14:23:19 -07:00

19 lines
710 B
Markdown

# bookmark-it
## What it does
Displays a simple button in the menu bar that toggles a bookmark for the currently active tab.
To display the button, the extension registers a [browserAction](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/browserAction) in the manifest.
A background script will listen for tab events and update the browserAction icon correspondingly. It also listens for `browserAction.onClicked` events to create or remove a bookmark when the user has clicked the icon.
## What it shows
* how to use the various `bookmarks` functions
* create a bookmark
* remove a bookmark
* search bookmarks by url
* how to register a browserAction
* how to listen for tab changes