Skip to content

Provides ability to copy title and URL of selected tabs to the clipboard for Firefox 63 and later.

License

Notifications You must be signed in to change notification settings

piroor/copy-selected-tabs-to-clipboard

Repository files navigation

Copy Selected Tabs to Clipboard

Build Status

Syntax

  • Arguments for functional placeholders can be wrapped with quotations: double quote ("), single quote (') or back quote (`). For convenience, put a backslash preceding to a quotation character, if you want to put the quotation character same to the open/close quotations, in a string literal. For example: 'c\'mon' (apostrophe in a string wrapped with single quotes)
  • Quotations to wrap string arguments are optional. Quotations are required only when the string contains special characters like , (separator of arguments), ) (the end of the arguments) and so on. For example, all of them are same: %TREE_INDENT(--)%, %TREE_INDENT("--")%, %TREE_INDENT('--')% and %TREE_INDENT(`--`)%

Example copy formats

type format string
Only URL %URL%
Title and URL %TITLE%%EOL%%URL%
HTML Link <a title="%HTML_SAFE(%TITLE%)%" href="%HTML_SAFE(%URL%)%">%HTML_SAFE(%TITLE%)%</a>
HTML Link (Rich Text) %RT%<a title="%HTML_SAFE(%TITLE%)%" href="%HTML_SAFE(%URL%)%">%HTML_SAFE(%TITLE%)%</a>
HTML Link List (Rich Text, unordered) %RT%%PREFIX(<ul>%EOL%)%%SUFFIX(</ul>%EOL%)%<li><a href="%URL_HTMLIFIED%">%TITLE_HTMLIFIED%</a></li>%EOL%
Markdown Link [%MD_SAFE(%TITLE%)%](%URL% "%MD_LINK_TITLE_SAFE(%TITLE%)%")
Markdown Link List %TREE_INDENT(" ")%* [%MD_SAFE(%TITLE%)%](%URL% "%MD_LINK_TITLE_SAFE(%TITLE%)%")
Markdown Tables %PREFIX(|title|url|%EOL%|---|---|%EOL%)%|%REPLACE(%TITLE%,'\|','\\|')%|%REPLACE(%URL%,'\|','\\|')%|
URL without query %REPLACE("%URL%", "\?.*$", "")%
URL without query except Google %REPLACE("%URL%", "^(?!\w+://[^/]*\.google\.[^/]*/.*)\?.*$", "$1")
Org Mode Link List *%TREE_INDENT(*)% [[%URL%][%TITLE%]]
Firefox container Org Mode [[%CONTAINER_URL%][%CONTAINER_NAME("", ": ")%%TITLE%]]
Redmine Issue # #%REPLACE("%URL%", "^\w+://.+/([\d+]+)(?:\?[^#]*)?(?:#(?:note-([\d]+))?[^#]*)?$", "$1-$2", "-$", "")%
CSV with header %PREFIX(title,url%EOL%)%"%REPLACE(%TITLE%,'"','""')%","%REPLACE(%URL%,'"','""')%"
Array in JavaScript/JSON %PREFIX([%EOL%)%%SUFFIX(]%EOL%)% "%REPLACE(%TITLE%,'"','\\"')%", "%REPLACE(%URL%,'"','\\"')%",
Hash in JavaScript/JSON %PREFIX({%EOL%)%%SUFFIX(}%EOL%)% "%REPLACE(%TITLE%,'"','\\"')%": "%REPLACE(%URL%,'"','\\"')%",
PlantUML Table %PREFIX(@startuml%EOL%|= title |= url |%EOL%)%%SUFFIX(@enduml%EOL%)%| %REPLACE(%TITLE%,'\|','\\|')% | %REPLACE(%URL%,'\|','\\|')% |
PlantUML List %PREFIX(@startuml%EOL%* Webpages%EOL%)%%SUFFIX(@enduml%EOL%)%** "%TITLE%" : %URL%
PlantUML Nodes %PREFIX(@startuml%EOL%title Webpages%EOL%%EOL%)%%SUFFIX(@enduml%EOL%)%[%TITLE%] --> [%URL%]

Privacy Policy

This software does not collect any privacy data automatically, but this includes ability to synchronize options across multiple devices automatically via Firefox Sync. Any data you input to options may be sent to Mozilla's Sync server, if you configure Firefox to activate Firefox Sync.

このソフトウェアはいかなるプライバシー情報も自動的に収集しませんが、Firefox Syncを介して自動的に設定情報をデバイス間で同期する機能を含みます。 Firefox Syncを有効化している場合、設定画面に入力されたデータは、Mozillaが運用するSyncサーバーに送信される場合があります。