🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/31 02:17:30
🔄 下次更新时间:2026/01/31 03:17:30
手动刷新缓存

Linkify

Convert plain text URLs and emails into clickable links

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

Author
Baarometh
Daily installs
0
Total installs
6
Ratings
0 0 0
Version
2025.10.15.1
Created
2025-10-14
Updated
2025-10-16
Size
7.51 KB
Compatibility
Compatible with Firefox Compatible with Chrome Compatible with Opera Compatible with Safari Compatible with Edge
License
MIT
Applies to
All sites

Linkify

Linkify detecta URLs y correos en texto plano y los convierte en enlaces clicables y seguros en cualquier página. Respeta el contenido ya enlazado, no toca código ni formularios y funciona también en contenido cargado dinámicamente.

Características clave

  • Convierte http, https, ftp, www y correos a <a> reales
  • Normaliza www. y dominios sin protocolo; correos → mailto:
  • Evita etiquetas sensibles: A, SCRIPT, STYLE, CODE, PRE, formularios y áreas editables
  • No usa innerHTML; construye nodos de forma segura
  • Observa cambios con MutationObserver y recorre texto con TreeWalker
  • Añade target="_blank" y rel="noopener noreferrer nofollow ugc"
  • Solo en la ventana principal para reducir coste y efectos laterales
  • Compatible con Chrome, Firefox, Edge, Opera y Safari
  • Sin dependencias, sin llamadas externas, sin rastreo

Uso típico

  • Chats, foros, wikis y paneles internos que muestran texto plano
  • Emails renderizados en web donde se necesitan enlaces rápidos

Notas

  • Patrón robusto para casos comunes. No pretende validar todos los RFC al detalle.
  • Ajustable: puedes modificar el patrón y los atributos del enlace según tu política.