Add linkify.user.js
This commit is contained in:
parent
3b02fdac23
commit
7da0360ce5
1 changed files with 18 additions and 0 deletions
18
linkify.user.js
Normal file
18
linkify.user.js
Normal 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);
|
||||
})();
|
Loading…
Reference in a new issue