Linkify

Convert plain text URLs and emails into clickable links

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
Baarometh
1日のインストール数
0
累計インストール数
4
評価
0 0 0
バージョン
2025.10.15.1
作成日
2025/10/14
更新日
2025/10/16
大きさ
7.51KB
互換性
Firefox への互換性あり Chrome への互換性あり Opera への互換性あり Safari への互換性あり Edge への互換性あり
ライセンス
MIT
対象サイト
すべてのサイト

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.