No description
Find a file
2022-12-18 17:51:33 -08:00
docs Initial commit 2022-01-10 12:13:06 +01:00
icons Initial commit 2022-01-10 12:13:06 +01:00
options port 2022-12-18 17:51:33 -08:00
popup port 2022-12-18 17:51:33 -08:00
scss port 2022-12-18 17:51:33 -08:00
src port 2022-12-18 17:51:33 -08:00
styles Initial commit 2022-01-10 12:13:06 +01:00
.gitignore Update .gitignore to include scss output files 2022-01-10 12:16:11 +01:00
build.ps1 Update build.ps1 and build.sh to clean up web-ext output 2022-01-10 12:34:56 +01:00
build.sh port 2022-12-18 17:51:33 -08:00
CHANGELOG.md Bump version to 1.2.0 2022-05-31 15:37:17 +02:00
LICENSE.txt Initial commit 2022-01-10 12:13:06 +01:00
manifest.json port 2022-12-18 17:51:33 -08:00
package-lock.json port 2022-12-18 17:51:33 -08:00
package.json port 2022-12-18 17:51:33 -08:00
pnpm-lock.yaml port 2022-12-18 17:51:33 -08:00
README.md port 2022-12-18 17:51:33 -08:00
rollup.config.js port 2022-12-18 17:51:33 -08:00

Shiori injector

This is a fork of linkding-injector to work with shiori.

Original readme below:

Community browser extension for the self-hosted linkding bookmark service.

Features

  • When searching on a search engine the search term is also sent to your linkding instance and results are added in a new box in the sidebar right to the search engine results.
  • Supports google and duckduckgo search engines
  • Automatic light or dark theme detection

Works with: Firefox, Chrome

Usage

After installation the extension needs to be configured and connected to your linkding instance. Either open the extension options in the browser extension manager or follow the link in the new linkding injector box on the search page of google or duckduckgo.

Once the extension is properly configured linkding search results will show in the right sidebar. If there are no search results nothing will appear.

Screenshots

duckduckgo google

Installation

Firefox: Mozilla Addon Store

Chrome: Chrome Web Store

Manual installation

Firefox

Run the build as described below and then follow the instructions here to load it into Firefox.

Chrome

Run the build as described below and then follow the instructions here to load it into Chrome.

Build

Requirements

  • Latest LTS Node version (v14)
  • Latest LTS NPM version (v6)
  • bash (on Linux) or powershell (on Windows)
  • npx (included with npm v5.2+)

Internally, we use web-ext to bundle a distribution package for the extension for Firefox. You do not need to install web-ext. Note that web-ext will generate a zip file which can also be used for the Chrome Web Store.

Then run the following script to generate a build (might need to make the file executable on Linux using chmod +x build.sh):

./build.sh # Linux
./build.ps1 # Windows

The script does:

  • Install all dependencies using NPM
  • Runs rollup to transpile and minify source files, with output written to the build directory
  • Run web-ext to package the extension for uploading to the Mozilla addon store

After the build the root directory contains the complete, unpackaged extension. Use the manifest.json file to load it manually into the browser.

The packaged extension can be found in the web-ext-artifacts folder.

Acknowledgements

This extension reuses and adapts code from the official linkding extension.