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
4
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.