Format Link のアイテムロゴ画像

Format Link

4.5(

12 件の評価

)
拡張機能ツール1,000 ユーザー
Format Link のアイテム メディア 1 のスクリーンショット
Format Link のアイテム メディア 2 のスクリーンショット

概要

Format a link and copy it to the clipboard.

## Why do I need it? To format the link of the active tab instantly to use in Markdown, reST, HTML, Text, Textile or other formats. ## How to use You can use keyboard shortcuts, context menus, or the toolbar button of Format Link extension to copy a link in the specified format. Before doing that, you can optionally select some text which may or may not contain a link. ### keyboard shortcut The keyboard shortcut for "Copy a link in the default format" is shortcut for clicking the toolbar button. The link is copied in the default format and the popup is shown under the toolbar button. Also there are shortcuts for copying in the link in the corresponding format regardless of the default format. You can change shortcuts at chrome://extensions/shortcuts ### context menu Open the context menu and select the "Format Link as XXX" menu item. "XXX" in the menu item label changes as you change the default format by clicking the "Set as default" button in the popup page for the toolbar button. If you check the "Create submenus" in the options page and save the options, submenus for each format are created under the "Format Link" context menu group. ### toolbar button When you press the toolbar button of "Format Link", the link is copied in the default format, the popup page becomes open, and the formatted text is shown in the text area. If you want to copy the link in different format, you can press one of the radio buttons. Also if you want to change the default format, you can press the "Set as default" button. ## Flexible settings You can modify formats in [Tools] -> [Extensions] -> Clik "Options" link in "Format Link" Extension. In format settings, you can use the mini template language. * {{variable}} * variable = title / url / pageUrl / text * The value of variable `title` is the HTML page title. * The value of variable `text` is the selected text if some text is selected, the link text if you open the context menu over a link (see KNOWN LIMITATION below for link text), or the page URL if no text is selected and you open the context menu not over a link. * The value of variable `selectedText` is * the selected text if some text is selected, * empty string if no text is selected. * The value of the variable `url` is the link if you open the context menu over a link, the first link if selection contains a link, or the HTML page URL otherwise. * The value of the variable `pageUrl` is always the page URL. * No spaces are allowed between variable name and braces. * {{variable.s("foo","bar")}} * Which means `variable.replace(new RegExp("foo", 'g'), "bar")` * You can use escape character \ in strings. * You must escape the first argument for string and regexp. For example, `.s("\\[","\\[")` means replacing `\[` with `\\[` * You can chain multiple .s("foo","bar") * {{variable.urlencode()}} * Which means `encodeURIComponent(variable)` * You can use the escape character \ in strings. For example, you need to escape `\` with `\` like `\\`, and also you need to escape `{` with `\` like `\{`. See the LaTeX example below. * Other characters are treated as literal strings. Here are examples: * Markdown ``` [{{text.s("\\[","\\[").s("\\]","\\]")}}]({{url.s("\\(","%28").s("\\)","%29")}}) ``` * reST ``` {{text}} <{{url}}>`_ ``` * HTML ``` <a href="{{url.s("\"","&quot;")}}">{{text.s("<","&lt;")}}</a> ``` * HTML with selected text ``` <a href="{{page_url.s("\"","&quot;")}}#:~:text={{selected_text.urlencode()}}">{{title.s("<","&lt;")}}</a> ``` * Text ``` {{text}}\n{{url}} ``` * Redmine Texitile ``` "{{title.s("\"","&quot;").s("\\[","&#91;")}}":{{url}} ``` * LaTeX ``` \\href\{{{url}}\}\{{{text}}\} ``` ## Permissions required by this extension * To use this extension, the following two permissions are required: * "Read and change all your data on all websites" * This permission is needed for this extension to run the ["content script"](https://developer.chrome.com/docs/extensions/develop/concepts/content-scripts?hl=en) into the content of pages you visit in order to get the page title, the selected text, the page URL, or the link URL. * "Modify data you copy and paste" * This permission is needed to copy a URL and a text to the clipboard. For technical details, see the following pages: * [Declare permissions](https://developer.chrome.com/docs/extensions/develop/concepts/declare-permissions?hl=en) * ["content_scripts.matches"](https://developer.chrome.com/docs/extensions/develop/concepts/match-patterns?hl=en) * This extension uses `"<all_urls>"`. * [Permissions](https://developer.chrome.com/docs/extensions/reference/permissions-list?hl=en) * This extension requires the following permissions: * "activeTab" * "clipboardWrite" * "contextMenus" * "storage" ## License MIT License. Source codes are hosted at [Github](https://github.com/hnakamur/FormatLink-Chrome) ## KNOWN LIMITATIONS * Due to security reason, you cannot copy the URL on some pages like the Chrome Extension Gallary. * Chrome allow each extension to have at most 4 keyboard shortcuts. One shortcut is used for copying a link with the default format, and the rest of three are used for copying a link with the corresponding format 1 to format 3. So format 4 to format 9 does not have keyboard shortcut.

詳細

  • バージョン
    5.2.1
  • 更新:
    2026年4月5日
  • 提供元
    hnakamur
  • サイズ
    52.45KiB
  • 言語
    English
  • デベロッパー
    メール
    hnakamur@gmail.com
  • 非取引業者
    このデベロッパーは取引業者として申告していません。EU 加盟国の消費者とこのデベロッパーとの間に締結された契約には、消費者の権利が適用されません。

プライバシー

拡張機能を管理し、組織での使用状況を確認できます
デベロッパーは、お客様のデータを収集または使用しないことを表明しています。

このデベロッパーは、お客様のデータについて以下を宣言しています

  • 承認されている以外の用途で第三者に販売しないこと
  • アイテムの中心機能と関係のない目的で使用または転送しないこと
  • 信用力を判断する目的または融資目的で使用または転送しないこと

サポート

質問や提案、問題がある場合は、デベロッパーのサポートサイトにアクセスしてください。

関連アイテム

Copy As Hyperlink

3.6

Copy page title or selected text as a pasteable hyperlink

Copy Title and Url as Markdown Style

4.8

現在開いているページのタイトルと URL を Markdown 形式でコピーします。

CopyTabTitleUrl

4.4

タイトルと URL をクリップボードにコピーします。

BlogLinkClipper

4.1

現在表示中のページの URL とタイトルを様々な形式でクリップボードにコピーする Google Chrome 拡張機能です。リンクのタイトル付きでの共有や、ドキュメント作成のお供にどうぞ。

Copy Link

3.7

Copy links and page urls with text from context menu

Copy URL with Title (plain text/markdown)

3.0

Copy the title and URL in plain text/markdown format by keyboard shortcuts: Ctrl+C/Cmd+C for plain text, Alt+C/Opt+C for markdown.

Hyperlink from selected text

3.4

Creates a hyperlink to the current page from the selected text in one click via the context (right click) menu

Rich URL

4.8

Copy, save and share information in a convenient format.

Copy title & URL

3.8

Copy title & URL

URL をクリップボードにコピー

3.7

ドキュメントのURLやリンクのURLを、HTML、Markdown、Text形式などでクリップボードにコピー

Copy Link Name

3.3

Copies the name of a link (anchor text) to the clipboard.

Create Link

4.3

Copy current page URL to clipboard in various formats.

Copy As Hyperlink

3.6

Copy page title or selected text as a pasteable hyperlink

Copy Title and Url as Markdown Style

4.8

現在開いているページのタイトルと URL を Markdown 形式でコピーします。

CopyTabTitleUrl

4.4

タイトルと URL をクリップボードにコピーします。

BlogLinkClipper

4.1

現在表示中のページの URL とタイトルを様々な形式でクリップボードにコピーする Google Chrome 拡張機能です。リンクのタイトル付きでの共有や、ドキュメント作成のお供にどうぞ。

Copy Link

3.7

Copy links and page urls with text from context menu

Copy URL with Title (plain text/markdown)

3.0

Copy the title and URL in plain text/markdown format by keyboard shortcuts: Ctrl+C/Cmd+C for plain text, Alt+C/Opt+C for markdown.

Hyperlink from selected text

3.4

Creates a hyperlink to the current page from the selected text in one click via the context (right click) menu

Rich URL

4.8

Copy, save and share information in a convenient format.

Google アプリ