https://github.com/cssnr/open-links-in-new-tab
https://github.com/cssnr/open-links-in-new-tab
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cssnr/open-links-in-new-tab
- Owner: cssnr
- License: gpl-3.0
- Created: 2023-11-18T02:03:30.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T09:28:13.000Z (about 2 years ago)
- Last Synced: 2024-05-28T21:41:11.038Z (about 2 years ago)
- Language: JavaScript
- Homepage: https://open-links-in-new-tab.cssnr.com
- Size: 334 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
[](https://addons.mozilla.org/addon/open-links-in-new-tab)
[](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
[](https://addons.mozilla.org/addon/open-links-in-new-tab)
[](https://github.com/cssnr/open-links-in-new-tab/stargazers)
[](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
[](https://addons.mozilla.org/addon/open-links-in-new-tab)
[](https://github.com/cssnr/open-links-in-new-tab/releases/latest)
[](https://github.com/cssnr/open-links-in-new-tab/actions/workflows/build.yaml)
[](https://github.com/cssnr/open-links-in-new-tab/actions/workflows/test.yaml)
[](https://sonarcloud.io/summary/overall?id=cssnr_open-links-in-new-tab)
[](https://github.com/cssnr/open-links-in-new-tab/graphs/commit-activity)
[](https://github.com/cssnr/open-links-in-new-tab)
[](https://discord.gg/wXy6m2X8wY)
# Open Links in New Tab
Modern Chrome Web Extension and Firefox Browser Addon to Open Links in New Tabs for Specified Domains or Temporarily on Any Tab.
* [Install](#install)
* [Features](#features)
- [Upcoming Features](#Upcoming-Features)
* [Known Issues](#known-issues)
* [Configuration](#configuration)
* [Support](#support)
* [Development](#development)
- [Building](#building)
* [Contributing](#Contributing)
## Install
* [Google Chrome Web Store](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
* [Mozilla Firefox Add-ons](https://addons.mozilla.org/addon/open-links-in-new-tab)
[](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
[](https://addons.mozilla.org/addon/open-links-in-new-tab)
[](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
[](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
[](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
[](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc)
All **Chromium** Based Browsers can install the extension from the
[Chrome Web Store](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc).
## Features
Please submit a [Feature Request](https://github.com/cssnr/open-links-in-new-tab/discussions/new?category=feature-requests) for new features.
For any issues, bugs or concerns; please [Open an Issue](https://github.com/cssnr/open-links-in-new-tab/issues/new).
* Toggle Sites to Always Open Links in New Tabs
* Temporarily Open All Links in New Tabs for Current Site
* Option to Open Links in the Background
* Update on Scroll Option to Always Update Links
* Update on Any Attributes Changes and New Links
* Options Page to View and Edit Toggled Sites and More
* Automatic Dark/Light Mode based on Browser Setting
* Activate from Icon, Context Menu, or Keyboard Shortcuts
### Upcoming Features
* Enable for Specific URL Only
* Enable for Matching Regex URL Only
* Toggle Enable Globally
* Toggle Blacklist/Whitelist
* Export/Import URL List
* Options on a Per-Site Basis
> [!TIP]
> **Don't see your feature here?**
> Request one on the [Feature Request Discussion](https://github.com/cssnr/open-links-in-new-tab/discussions/categories/feature-requests).
## Known Issues
* Does not work on some sites that use JavaScript events to handle links.
- Many of these sites should be fixed when v3 is released.
> [!TIP]
> **Don't see your issue here?**
> Open one on the [Issues](https://github.com/cssnr/open-links-in-new-tab/issues).
## Configuration
You can pin the Addon by clicking the `Puzzle Piece`, find the Web Extension icon, then;
**Chrome**, click the `Pin` icon.
**Firefox**, click the `Settings Wheel` and `Pin to Toolbar`.
To open the options, click on the icon (from above) then click `Open Options`.
## Support
For help using the web extension, utilize any these resources:
- Documentation: https://open-links-in-new-tab.cssnr.com/docs/
- Q&A Discussion: https://github.com/cssnr/open-links-in-new-tab/discussions/categories/q-a
- Request a Feature: https://github.com/cssnr/open-links-in-new-tab/discussions/categories/feature-requests
If you are experiencing an issue/bug or getting unexpected results, use:
- Report an Issue: https://github.com/cssnr/open-links-in-new-tab/issues
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
- Provide General Feedback: [https://cssnr.github.io/feedback/](https://cssnr.github.io/feedback/?app=Open%20Links%20in%20New%20Tab)
Logs can be found inspecting the page (Ctrl+Shift+I), clicking on the Console, and;
Firefox: toggling Debug logs, Chrome: toggling Verbose from levels dropdown.
To support this project, see the [Contributing](#Contributing) section at the bottom.
# Development
**Quick Start**
First, clone (or download) this repository and change into the directory.
Second, install the dependencies:
```shell
npm install
```
Finally, to run Chrome or Firefox with web-ext, run one of the following:
```shell
npm run chrome
npm run firefox
```
Additionally, to Load Unpacked/Temporary Add-on make a `manifest.json` and run from the [src](src) folder, run one of the following:
```shell
npm run manifest:chrome
npm run manifest:firefox
```
Chrome: [https://developer.chrome.com/docs/extensions/get-started/tutorial/hello-world#load-unpacked](https://developer.chrome.com/docs/extensions/get-started/tutorial/hello-world#load-unpacked)
Firefox: [https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/](https://extensionworkshop.com/documentation/develop/temporary-installation-in-firefox/)
For more information on web-ext, [read this documentation](https://extensionworkshop.com/documentation/develop/web-ext-command-reference/).
To pass additional arguments to an `npm run` command, use `--`.
Example: `npm run chrome -- --chromium-binary=...`
## Building
Install the requirements and copy libraries into the `src/dist` directory by running `npm install`.
See [gulpfile.js](gulpfile.js) for more information on `postinstall`.
```shell
npm install
```
To create a `.zip` archive of the [src](src) directory for the desired browser run one of the following:
```shell
npm run build
npm run build:chrome
npm run build:firefox
```
For more information on building, see the scripts section in the [package.json](package.json) file.
### Chrome Setup
1. Build or Download a [Release](https://github.com/cssnr/open-links-in-new-tab/releases).
1. Unzip the archive, place the folder where it must remain and note its location for later.
1. Open Chrome, click the `3 dots` in the top right, click `Extensions`, click `Manage Extensions`.
1. In the top right, click `Developer Mode` then on the top left click `Load unpacked`.
1. Navigate to the folder you extracted in step #3 then click `Select Folder`.
### Firefox Setup
1. Build or Download a [Release](https://github.com/cssnr/open-links-in-new-tab/releases).
1. Unzip the archive, place the folder where it must remain and note its location for later.
1. Go to `about:debugging#/runtime/this-firefox` and click `Load Temporary Add-on...`
1. Navigate to the folder you extracted earlier, select `manifest.json` then click `Select File`.
1. Optional: Open `about:config` search for `extensions.webextensions.keepStorageOnUninstall` and set to `true`.
If you need to test a restart, you must pack the addon. This only works in ESR, Development, or Nightly.
You may also use an Unbranded Build: [https://wiki.mozilla.org/Add-ons/Extension_Signing#Unbranded_Builds](https://wiki.mozilla.org/Add-ons/Extension_Signing#Unbranded_Builds)
1. Run `npm run build:firefox` then use `web-ext-artifacts/{name}-firefox-{version}.zip`.
1. Open `about:config` search for `xpinstall.signatures.required` and set to `false`.
1. Open `about:addons` and drag the zip file to the page or choose Install from File from the Settings wheel.
# Contributing
Currently, the best way to contribute to this project is to give a 5-star rating on
[Google](https://chromewebstore.google.com/detail/open-links-in-new-tab/efahmjakjnnmleokcaomicgfhobabdkc) or
[Mozilla](https://addons.mozilla.org/addon/open-links-in-new-tab) and to star this project on GitHub.
Other Web Extensions I have created and published:
- [Link Extractor](https://github.com/cssnr/link-extractor)
- [Open Links in New Tab](https://github.com/cssnr/open-links-in-new-tab)
- [HLS Video Downloader](https://github.com/cssnr/hls-video-downloader)
- [SMWC Web Extension](https://github.com/cssnr/smwc-web-extension)
- [PlayDrift Extension](https://github.com/cssnr/playdrift-extension)
- [ASN Plus](https://github.com/cssnr/asn-plus)
- [Aviation Tools](https://github.com/cssnr/aviation-tools)
- [Text Formatter](https://github.com/cssnr/text-formatter)
For a full list of current projects visit: [https://cssnr.github.io/](https://cssnr.github.io/)