Pipecraft
2025-12-04T13:21:39Z

Copy selected link(s) on any page as Markdown: [text](url).

Copy Selected Links as Markdown

Copy selected link(s) on any page to the clipboard as Markdown in the form [text](url). Supports single or multiple anchors inside selection, URL text detection, and page fallback. Includes a keyboard shortcut and a menu command.

中文版

Features

Copies selected link(s) as Markdown [text](url)

Single or multiple anchors; for multiple links outputs a Markdown bullet list

Detects URL in selected text when no anchor is present

Fallback to [document.title](location.href) when nothing is selected

Keyboard shortcut: Cmd/Ctrl + Shift + M

Menu command via GM_registerMenuCommand

Supported Sites

All sites: *://*/*

Installation

1. Install a user script manager:

Tampermonkey

Violentmonkey

2. Install the script:

GitHub Raw

Greasy Fork

ScriptCat

Usage

Select link(s) or text on the page

Trigger one of the following:

Press Cmd/Ctrl + Shift + M

Use the menu command “复制选中链接为 Markdown”

Clipboard will contain Markdown; multiple links produce a Markdown bullet list

Technical Details

Finds anchors that intersect the current selection range and parent anchor when cursor is inside a link

Builds absolute URLs via new URL(anchor.href, location.origin)

Uses Clipboard API with document.execCommand('copy') fallback

Compatibility

Works on modern browsers with Tampermonkey/Violentmonkey.

Changelog

v0.1.0

Initial release: selection parsing, multi‑link output, shortcut and menu

More Useful Scripts

🏷️ UTags - Add User Tags to Links

Link: Greasy Fork · Greasy Fork · ScriptCat · GitHub

Features: Add custom tags and notes to user, post, video and other links

Highlights: Support special tag filtering (like spam, block, clickbait, etc.), data export/import, auto-mark viewed posts

Supported Sites: V2EX, X(Twitter), Reddit, GitHub, Bilibili, Zhihu, Linux.do, Youtube and 50+ websites

Description: Super useful tag management tool for adding tags to forum users or posts, making it easy to identify or block low-quality content

🧰 UTags Advanced Filter

Link: Greasy Fork · ScriptCat · GitHub

Features: Real-time filtering and hiding of scripts on GreasyFork

Highlights: Available as both a userscript and a browser extension

Supported Sites: Greasy Fork

Description: A tool that supports real-time filtering and hiding on GreasyFork, available in userscript and browser extension versions

⚡ UTags Shortcuts

Link: Greasy Fork · ScriptCat · GitHub

Features: Per-site grouping, icon support, floating or sidebar navigation panel

Highlights: Floating/Sidebar modes, URL/JS script support, visual editor, keyboard shortcuts

Supported Sites: All websites

Description: A powerful userscript that streamlines your browsing workflow with a customizable navigation panel for quick access to favorite links and scripts

🔗 Links Helper

Link: Greasy Fork

Features: Open third-party website links in new tabs, parse text links into hyperlinks

Highlights: Support custom rules, parse Markdown and BBCode formats, convert image links to image tags

Supported Sites: Universal for all websites, including Google, YouTube, GitHub, V2EX, etc.

Description: Enhance link browsing experience, automatically process various link formats for more convenient web browsing

🔍 Find Scripts For This Site

Link: Greasy Fork · ScriptCat · GitHub

Features: Quickly find scripts for the current site across multiple repositories

Highlights: Settings dialog, real-time sync, smart domain extraction

Supported Sites: All websites

Description: A user script to quickly find scripts for the current site across multiple repositories, now with a settings dialog and real-time sync across tabs

License

MIT License — see the repository LICENSE file.

Contributing

Issues and pull requests are welcome!