🔗 Auto Link Plain-Text URLs / 纯文本网址自动转超链接
Automatically detects plain-text URLs on any webpage and converts them into clickable hyperlinks that open in a new tab. Supports www. URLs, full http(s):// URLs, and bare domains (e.g. example.com).
自动识别网页中纯文本形式的网址,一键转换为可点击超链接,点击后在新标签页打开。支持 www. 开头网址、完整 http(s):// 网址,以及裸域名(如 example.com)。
✨ Features / 功能特性
- 🔍
www. / http(s):// Detection: matches www.example.com and full http:// or https:// URLs / 标准网址识别:识别 www.example.com 及完整 http(s):// 网址
- 🌐 Bare Domain Detection: matches domains without
www. (e.g. example.com) against a common TLD whitelist (.com .net .org .hk .cn .co.uk, etc.) / 裸域名识别:匹配不带 www. 的域名,基于常见后缀白名单判断
- 🚫 Smart Skip: skips existing hyperlinks, code blocks, input and textarea fields, and editable regions / 智能跳过:跳过已有超链接、代码块、输入框及可编辑区域
- 🔒 Privacy Safe: no data sent externally, no special permissions required / 隐私安全:无外部请求,无需特殊权限
⚙️ Notes / 注意事项
- Bare-domain matching relies on a TLD whitelist and is not 100% accurate — uncommon TLDs may not be detected, and rare strings (e.g. version numbers like
v2.3) could theoretically be misidentified / 裸域名匹配基于常见顶级域名白名单,非 100% 准确,冷门 TLD 可能识别不到,个别英文缩写(如版本号 v2.3)理论上可能被误判
- Applies to all sites by default; edit the script's @match rule to restrict it to specific domains / 默认对所有网站生效,可自行编辑 @match 规则限定生效域名
- Found a misdetected URL? Please leave feedback with the specific URL pattern / 发现识别不准的网址?欢迎在反馈区留言说明具体样式
📝 Changelog / 更新日志
- v1.1.0: Added bare-domain detection, fixed false positives on text nested inside hyperlink tags, added skip logic for code blocks and editable regions / 新增裸域名识别、修复嵌套超链接标签内文本误判问题、增加代码块与可编辑区域跳过逻辑
- v1.0.0: Initial release — supports
www. and http(s):// URL detection / 首个版本,支持 www. 与 http(s):// 网址识别
MIT License