diff --git a/linkify.user.js b/linkify.user.js new file mode 100644 index 0000000..cb4dfdd --- /dev/null +++ b/linkify.user.js @@ -0,0 +1,18 @@ +// ==UserScript== +// @name Linkify Gemini Protocol +// @version 1.0.0 +// @description Linkyfy any gemini:// links found on the site. +// @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 +// ==/UserScript== + +(function() { + linkify.registerCustomProtocol("gemini"); + const options = { + /* … */ + }; + linkifyElement(document.body, {}, document); +})();