Fehérke's GitHub Site == glue between Fehérke's GitHub hosted projects

[Popup,Hybrid] Copy URL and Title

Displays a list of formats and copies a link to the clipboard.

Currently the following formats are included :

If the gesture was performed on an a element, the link will point to its href, otherwise to the current document. If there is selected text, that will be the link text, otherwise the link text or the document title respectively.

Screenshot

screenshot of the script's context menu

Usage

Perform a gesture anywhere on a document to get a list of formats and select the one to apply before copying the link into the clipboard.

Configuration

Configuration not really supported.

But adding new formats is pretty simple. The formats are enumerated in FireGestures.API_copyURLTitle.format and the filters in FireGestures.API_copyURLTitle.filter.

The format strings are somehow Liquid-like templates, where :

However there is no intention to completely reproduce Liquid, so filters can have at most one parameter, filter parameters are not enclosed in quotes and white spaces inside the placeholders are not allowed. Only two fields exist : url and text. I bet you guess what they are.

Versions

Plans

Download

You can find the related files on GitHub in my FireGestures-script repository’s popup-hybrid-copy-url-and-title directory :