valenzine133 downloadsConverts raw URLs into markdown links by automatically fetching webpage titles.
Forked from: obsidian-url-namer by zfei
This is a plugin for Obsidian (https://obsidian.md) that retrieves HTML titles to name raw URL links.
Select the text that contains the URLs to be named, execute the command Name the URL links in the selected text.
It's recommended to name few URLs at a time. In the case when the URL requests are taking some time, please DO NOT change the text selection or the content itself, before the command is done. Otherwise, the eventual result will be out of order.
Easier with the command binded to a keyboard shortcut.

Customize the regular expression used to detect URLs in your text. The default pattern is:
https?:\/\/[^\s\]\)]+
This pattern is compatible with all devices including iOS. It matches any http:// or https:// URL and automatically filters out URLs already in markdown links [text](url). The plugin validates URLs using the native URL constructor, so invalid URLs are safely ignored.
For websites that don't use standard <title> tags or use lazy-loaded content, you can define custom patterns. Each pattern consists of:
example.com)<meta property="og:title" content="([^"]*)")Add one pattern per line in the format: urlMatch|titleRegex
Example:
arxiv.org|<meta name="citation_title" content="([^"]*)"
pubmed.ncbi.nlm.nih.gov|<meta name="citation_title" content="([^"]*)"
If no site-specific pattern matches, the plugin falls back to extracting from <title> tags.
Some websites use Cloudflare, AWS WAF, or other bot protection systems. The plugin handles these cases through its progressive approach:
Common protection systems:
When you'll see errors: If bot protection is detected and no fallback methods are enabled:
Error: Bot protection detected. Enable a fallback method in settings.
Recommended approach: Enable Microlink fallback in settings for the most reliable experience with protected sites.
When enabled in settings, the plugin will automatically attempt to fetch titles from Archive.org's Wayback Machine if a site blocks direct access. This:
When enabled in settings, the plugin uses Microlink API to fetch titles from protected sites. This is the recommended fallback for protected sites.
Features:
Limitations:
The plugin uses a progressive complexity approach to maximize compatibility:
Simple request — Clean HTTP request with minimal headers
Complex browser emulation — Full browser-like headers if simple request fails
External fallback services — When bot protection is detected:
Both fallback methods are disabled by default. Enable them in settings if you frequently encounter protected sites.
Page titles are automatically decoded for common HTML entities:
&, <, >, ", ', ’, ‘, ”, “–, —…, •{ (decimal) and « (hexadecimal)When both Archive.org and Microlink fallbacks are enabled, you can choose the priority order:
Check your URL regex pattern in settings. The default pattern requires http:// or https:// prefix:
https?:\/\/[^\s\]\)]+
The plugin automatically skips URLs already in markdown links [text](url).
The free tier of Microlink allows 50 requests per day. When this limit is reached:
For websites with non-standard HTML or lazy-loaded titles, configure site-specific patterns in settings. See the Site-Specific Title Patterns section above.
npm i or yarn to install dependenciesnpm run build to compile, or npm run dev to start compilation in watch mode.dist directory to obsidian-url-name-extractor and move it into the vault's plugin directory VaultFolder/.obsidian/plugins/.Original plugin created by zfei. This fork adds configurable settings, multiple fallback methods for bot-protected sites, and improved URL handling.