From 0bf18b7fbf117d845c9a626054a97674176d3a3c Mon Sep 17 00:00:00 2001 From: Fijxu Date: Fri, 8 Aug 2025 19:16:14 -0400 Subject: [PATCH] Add phantom --- src/assets/javascripts/services.js | 4 +++- src/config.json | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index bd0a270d..d0334bf8 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -201,6 +201,7 @@ function rewrite(url, originUrl, frontend, randomInstance, type) { if (query) return `${randomInstance}/search?query="${query}${mapCentre}&${utils.prefsEncoded(prefs)}` return `${randomInstance}/${mapCentre}&${utils.prefsEncoded(prefs)}` } + case "phantom": case "breezeWiki": { let wiki, urlpath = "" @@ -955,7 +956,8 @@ const defaultInstances = { gocook: ["https://cook.adminforge.de"], wikimore: ["https://wikimore.private.coffee"], libreTranslate: ["https://libretranslate.com"], - cryptPad: ["https://cryptpad.org"] + cryptPad: ["https://cryptpad.org"], + phantom: ["https://phantom.kuuro.net"] } async function getDefaults() { diff --git a/src/config.json b/src/config.json index 35c65707..7830a17c 100644 --- a/src/config.json +++ b/src/config.json @@ -507,6 +507,11 @@ "name": "BreezeWiki", "instanceList": true, "url": "https://breezewiki.com" + }, + "phantom": { + "name": "Phantom", + "instanceList": true, + "url": "https://codeberg.org/phantom-org/phantom" } }, "targets": [