Files
webextensions-examples/bookmark-it
rebloor 82217a05bc Replace var with let in examples (#484)
* Replace var with let in examples

store-collected-images/webextension-plain/deps/uuidv4.js

* Reverted third–party code
2022-08-11 04:27:28 +12:00
..

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 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