Browser extension to Save Items From Tabs, Yo!
Searches open tabs for media (images, audio, video), saves them, and closes the tabs.
Get it as a Firefox Add-on.
This extension uses Node.js v12.
- Install NVM.
- Install Node using NVM:
nvm install 12.11.0
- Install the dependencies for the project:
npm install
Tests are automated using Jasmine, modelled after the tests in the sync-tab-groups extension.
You can run the tests with this command:
npm run test
This will build the extension with tests included and load it as a temporary extension in Firefox using web-ext
.
Two firefox windows will open automatically:
- Window 1:
about:debugging
to access console & debugging tools for the extensionabout:addons
to adjust the settings of the extension, e.g. enable in private browsing.
- Window 2:
- Unit tests
- Integration tests
NOTE: If the integration tests fail, you may need to allow the extension in private browsing. When you click 'Allow' the test page should reload automatically because the extension reloads.
- First, do a dry-run of the release process by building a prod version of the extension and loading it into Firefox as a temporary extension. Manually verify that clicking the sifty button in the browser toolbar downloads media items and closes their tabs.
npm run clean && npm run build:prod && npm run firefox:prod
- Package up the extension for uploading to the Firefox Add-on repository, and follow the instructions here to submit a new version of sifty. You'll find a .zip and .xpi in the release/ subfolder.
npm run release