Format Link

Format a link and copy it to the clipboard.

Format Link क्या है?

Format Link hnakamur द्वारा विकसित एक क्रोम एक्सटेंशन है, और इसकी मुख्य विशेषता है "Format a link and copy it to the clipboard."।

एक्सटेंशन स्क्रीनशॉट्स

screenshot
screenshot

एक्सएक्स एक्सटेंशन CRX फ़ाइल डाउनलोड करें

crx प्रारूप में Format Link एक्सटेंशन फ़ाइलें डाउनलोड करें, ब्राउज़र में क्रोम एक्सटेंशन को मैन्युअल रूप से स्थापित करें या दोस्तों के साथ crx फ़ाइलों को साझा करें ताकि क्रोम एक्सटेंशन को आसानी से स्थापित किया जा सके।

एक्सटेंशन उपयोग निर्देश

                        ## 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 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")
* 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

```
{{text.s("<","<")}}
```

* Text

```
{{text}}\n{{url}}
```

* Redmine Texitile

```
"{{title.s("\"",""").s("\\[","[")}}":{{url}}
```

* LaTeX

```
\\href\{{{url}}\}\{{{text}}\}
```

## 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.
* When you copy a link with a context menu after pointing mouse to a link, this extension manually searches the first link whose URL is equals to the link you pointed in the whole document, due to limitation of [chrome.contextMenus API](https://developer.chrome.com/extensions/contextMenus). So if there are multiple links of the same URL, and if you pointed to non-first link, the text is not what you want. However this is the best we can do right now.
* 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.                    

एक्सटेंशन की मूल जानकारी

नाम Format Link Format Link
ID pocemhmkmchpgamlnocemnbhlcjcbjgg
आधिकारिक URL https://chromewebstore.google.com/detail/format-link/pocemhmkmchpgamlnocemnbhlcjcbjgg
विवरण Format a link and copy it to the clipboard.
फ़ाइल का आकार 56.26 KB
स्थापना संख्या 1,372
वर्तमान संस्करण 4.1.1
अंतिम अपडेट 2022-03-30
प्रकाशन तिथि 2020-05-30
रेटिंग 4.45/5 कुल 11 रेटिंग्स
डेवलपर hnakamur
ईमेल [email protected]
भुगतान के प्रकार free
एक्सटेंशन वेबसाइट https://github.com/hnakamur/FormatLink-Chrome
सहायता पृष्ठ URL https://github.com/hnakamur/FormatLink-Chrome/issues
समर्थित भाषाएँ en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "name": "Format Link",
    "version": "4.1.1",
    "manifest_version": 2,
    "description": "Format a link and copy it to the clipboard.",
    "icons": {
        "16": "icon16.png",
        "48": "icon48.png",
        "128": "icon128.png"
    },
    "background": {
        "scripts": [
            "chrome-extension-async.js",
            "common.js",
            "background.js"
        ]
    },
    "browser_action": {
        "default_icon": "icon.png",
        "default_title": "Format Link",
        "default_popup": "popup.html"
    },
    "options_page": "options.html",
    "commands": {
        "_execute_browser_action": {
            "suggested_key": {
                "default": "Shift+Alt+C"
            },
            "description": "Copy a link in the default format"
        },
        "copy-link-in-format1": {
            "suggested_key": {
                "default": "Shift+Alt+1"
            },
            "description": "Copy a link in format 1"
        },
        "copy-link-in-format2": {
            "suggested_key": {
                "default": "Shift+Alt+2"
            },
            "description": "Copy a link in format 2"
        },
        "copy-link-in-format3": {
            "suggested_key": {
                "default": "Shift+Alt+3"
            },
            "description": "Copy a link in format 3"
        }
    },
    "permissions": [
        "activeTab",
        "clipboardWrite",
        "contextMenus",
        "storage"
    ]
}