Skip to content

cssnr/link-extractor

Repository files navigation

Chrome Web Store Users Mozilla Add-on Users Chrome Web Store Rating Mozilla Add-on Rating Chrome Web Store Version Mozilla Add-on Version GitHub Release Version Manifest Version Build Quality Gate Status

Link Extractor

Modern Chrome Web Extension and Firefox Browser Addon to easily extract, parse, or open all links/domains from a site or text with optional filters. Feature packed with automatic dark/light mode, copy to clipboard, keyboard shortcuts, custom options, and much more...

Website: https://link-extractor.cssnr.com/

Install

Chrome Firefox Edge Chromium Brave Vivaldi Opera

All Chromium Based Browsers can install the extension from the Chrome Web Store.

Features

Please submit a Feature Request for new features.
For any issues, bugs or concerns; please Open an Issue.

  • Extract All Links and Domains from Any Site
  • Extract Links from Selected Text on any Site
  • Extract Links from Clipboard or Any Text
  • Extract Links from All Selected Tabs
  • Open Multiple Links in Tabs from Text
  • Download Links and Domains as a Text File
  • Copy the Text from a Link via Context Menu
  • Quick Filter Links with a Regular Expression
  • Store Regular Expressions for Quick Filtering
  • Import and Export Saved Regular Expressions
  • Automatic Dark/Light Mode based on Browser Setting
  • Activate from Icon, Context Menu, or Keyboard Shortcuts

Link Extractor Screenshots

Planned Upcoming Features

  • Option to Extract and Display Link Titles
  • Option to Set Names/Titles for Saved Filters
  • Option to Extract Using Multiple Filters with AND/OR

Tip

Don't see your feature here? Request one on the Feature Request Discussion.

Configuration

Documentation: https://link-extractor.cssnr.com/docs/

You can pin the Addon by clicking the Puzzle Piece, find the Link Extractor 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.
Here you can set flags and add as many saved regular expressions as you would like for easy use later.
Make sure to clickSave Options when finished.

For more information on regex, see: https://regex101.com/

Development

Quick Start

To install and run chrome or firefox with web-ext.

npm isntall
npm run chrome
npm run firefox

To Load Unpacked/Temporary Add-on make a manifest.json and run from the src folder.

npm run manifest:chrome
npm run manifest:firefox

For more information on web-ext, read this documentation.
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 for more information on postinstall.

npm install

To load unpacked or temporary addon from the src folder, you must generate the src/manifest.json for the desired browser.

npm run manifest:chrome
npm run manifest:firefox

If you would like to create a .zip archive of the src directory for the desired browser.

npm run build
npm run build:chrome
npm run build:firefox

For more information on building, see the scripts in the package.json file.

Chrome Setup

To install for production: https://chromewebstore.google.com/detail/link-extractor/ifefifghpkllfibejafbakmflidjcjfp

  1. Build or Download a Release.
  2. Unzip the archive, place the folder where it must remain and note its location for later.
  3. Open Chrome, click the 3 dots in the top right, click Extensions, click Manage Extensions.
  4. In the top right, click Developer Mode then on the top left click Load unpacked.
  5. Navigate to the folder you extracted in step #3 then click Select Folder.

Firefox Setup

To install for production: https://addons.mozilla.org/addon/link-extractor

Note: Firefox Temporary addon's will not remain after restarting Firefox, therefore; it is very useful to keep addon storage after uninstall/restart with keepStorageOnUninstall.

  1. Build or Download a Release.
  2. Unzip the archive, place the folder where it must remain and note its location for later.
  3. Go to about:debugging#/runtime/this-firefox and click Load Temporary Add-on...
  4. Navigate to the folder you extracted earlier, select manifest.json then click Select File.
  5. 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.

  1. Run npm run build:firefox then use web-ext-artifacts/{name}-firefox-{version}.zip.
  2. Open about:config search for xpinstall.signatures.required and set to false.
  3. Open about:addons and drag the zip file to the page or choose Install from File from the Settings wheel.