From 30fad7c923514373f59937f3d15123c7cc996cb6 Mon Sep 17 00:00:00 2001 From: erick Date: Tue, 24 Dec 2024 06:45:07 -0500 Subject: [PATCH] Add all Lagrange's supported protocols --- linkify.user.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/linkify.user.js b/linkify.user.js index cb4dfdd..8c5fced 100644 --- a/linkify.user.js +++ b/linkify.user.js @@ -1,18 +1,24 @@ // ==UserScript== -// @name Linkify Gemini Protocol -// @version 1.0.0 -// @description Linkyfy any gemini:// links found on the site. +// @name Small Web Protocols +// @version 1.0.1 +// @description Linkify all links found on the site using supported protocols by Lagrange browser. // @author Erick Ruiz de Chavez // @include * // @grant none // @require https://cdn.jsdelivr.net/npm/linkifyjs@4.2.0/dist/linkify.min.js // @require https://cdn.jsdelivr.net/npm/linkify-element@4.2.0/dist/linkify-element.min.js +// @updateURL https://code.palmiers.xyz/erick/user-scripts/raw/branch/main/linkify.user.js +// @downloadURL https://code.palmiers.xyz/erick/user-scripts/raw/branch/main/linkify.user.js // ==/UserScript== (function() { + // Lagrange's supported protocols linkify.registerCustomProtocol("gemini"); - const options = { - /* … */ - }; + linkify.registerCustomProtocol("gopher"); + linkify.registerCustomProtocol("finger"); + linkify.registerCustomProtocol("guppy"); + linkify.registerCustomProtocol("misfin"); + linkify.registerCustomProtocol("titan"); + linkifyElement(document.body, {}, document); })();