Add linkify.user.js

This commit is contained in:
Erick Ruiz de Chavez 2024-12-24 06:43:29 -05:00
parent 3b02fdac23
commit 7da0360ce5

18
linkify.user.js Normal file
View file

@ -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 <erick@fastmail.net>
// @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);
})();