Save for Later is a web extension used to save tabs and windows for later use. This web extension is built using the Webextension APIs. As a result, this extension can be run on Firefox or any Chromium based browser. The extension is available on both Chrome Web Store and Firefox Add-ons store.
The extension requires the following permissions:
- tabs permission is needed to access the details of the tabs which are open in the current window.
- storage permission is needed to store the details of the tabs so that the data persists even after a restart of browser
There are two background scripts that run to ensure working of the extension.
- background-script.js is used to count the number of saves, to display the count in the extension's badge. This script is set to run every 500ms
- browser-polyfill.min.js is necessary to ensure that the above script run runs on a Chromium based browser
-
You'll need to make changes on your on version of the code. For this you need to fork this repo. Learn more about forking here
-
Then you need to clone this forked repository to your local machine. Run the following command on a terminal
git clone <YOUR_GITHUB_REPO_URL>.git
Learn more about cloning here -
Next we need to Temporarily install the extension on the browser of your choice. Follow these instructions to do so:
Note: The extension's directory is the folder which contains the
manifest.json
file
-
For Firefox browser follow this guide
-
For Chrome/Chromium based browsers:
-
Open the Extension Management page by navigating to
chrome://extensions
.- The Extension Management page can also be opened by clicking on the Chrome menu, hovering over More Tools then selecting Extensions.
-
Enable Developer Mode by clicking the toggle switch next to Developer mode.
-
Click the LOAD UNPACKED button and select the extension's directory.
-
- For Firefox (Credits: @emecas)
- web-ext is a useful command line tool when developing extensions. Importantly, it automatically reloads the extension on changes to source files
- You can inspect an extension just like you would any webpage. To do this:
- Open the Add-ons Manager
Ctr+Shift+A
: - Under the gear icon, click on
Debug Add-ons
- Click inspect to inspect any extension
- You can use the Console to
console.log()
values to debug and analyse running of the extension - Use the Extension Storage Under the Storage tab to view data stored by the Extension
- Open the Add-ons Manager
- For Chrome/Chromium based browsers
- You can inspect an extension just like you would any webpage. To do this:
- Open an extension to Inspect
- Right click on the extension's Popup area
- Click on Inspect. This open the dev tools for the given extension
- You can inspect an extension just like you would any webpage. To do this: