Firefox web extension to expand keywords in bookmark URLs. Modern alternative to KeywordSelection.
Embed directives of the form $[ke:<keyword>[:<options>]]
in your bookmark URLs.
Possible keywords are:
Keyword | Replacement |
---|---|
selection |
The currently selected text (if no text is selected, the fallback option applies) |
location |
The current tab's location URL |
origin |
The current tab's origin |
domain |
The current tab's domain |
host |
The current tab's host |
path |
The current tab's path |
query |
The current tab's query |
directory |
The current tab's path without the last component |
Options are of the form <option>[=<value>]
, where <value>
defaults to true
. Multiple options are separated by ,
.
Option | Description |
---|---|
escape |
Whether the replacement value should be encoded as a URI component (default, specify escape=false if you need the unescaped value) |
fallback |
Which page to load if no text is selected (only applies to the selection keyword); possible values are: origin (the site's homepage, default), path (the URL without the query parameters), directory (the path without the last component), basedir (the path's first component only) |
The following directives are supported for compatibility with keyword searches. Options are not allowed.
Directive | Equivalent |
---|---|
%s |
$[ke:selection] |
%S |
$[ke:selection:escape=false] |
Open keyword-expansion.xpi in Firefox.
This project adheres to the Semantic Versioning Specification.
- Download: https://blackwinter.de/addons/keyword-expansion.xpi
- Source code: https://github.com/blackwinter/keyword-expansion
Copyright (C) 2015-2021 Jens Wille
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.