https://github.com/phocks/snatcher
https://github.com/phocks/snatcher
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phocks/snatcher
- Owner: phocks
- Created: 2019-04-07T09:01:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-23T21:03:13.000Z (almost 5 years ago)
- Last Synced: 2025-06-02T11:49:16.722Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 796 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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