Skip to content

MethodGrab/firefox-open-image-in-new-tab

Repository files navigation

Open Image In New Tab

GitHub Workflow Status Version Rating Users Downloads

A Firefox extension that adds a context menu item to open images in a new tab.

Options

  • Hold down shift when selecting "Open image in new tab" from the context menu to invert the default tab active behaviour.
    i.e. if "Switch to image tab immediately" is set to "Yes" then holding shift will load the image tab in the background rather than the foreground.

Restrictions

  • Only works with http://, https:// & data: URLs (not file://, ftp://, etc.)

Development

Testing unsigned extensions only works with non-release builds of Firefox, to develop the extension:

  1. Install a non-release build (e.g. Firefox Developer Edition)
  2. npm install
  3. npm run start to load Firefox Developer Edition with the extension installed. Making changes to the code will automatically reload the extension.

Release Process

To publish a new version:

  1. npm run validate
  2. Bump the version in src/manifest.json
  3. Commit with the version number as the commit message (e.g. :bookmark: 1.0.0) and tag the commit with the version number (e.g. v1.0.0)
  4. npm run package to bundle the extension as a zip file
  5. Upload the generated zip to https://addons.mozilla.org/en-US/developers/addons

Credits