about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/assets/javascripts/services.js10
-rw-r--r--src/config.json5
2 files changed, 15 insertions, 0 deletions
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index 31325574..e5e4cc57 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -287,6 +287,15 @@ function rewrite(url, originUrl, frontend, randomInstance, type) {
     }
     case "biblioReads":
       return `${randomInstance}${url.pathname}${url.search}`
+    case "wikimore": {
+      let hostSplit = url.host.split(".")
+      // wikiless doesn't have mobile view support yet
+      if (hostSplit[0] != "wikipedia" && hostSplit[0] != "www") {
+        const lang = url.hostname.split(".")[0]
+        return `${randomInstance}/wiki/${lang}${url.pathname}${url.search}${url.hash}`
+      }
+      return `${randomInstance}${url.pathname}${url.search}${url.hash}`
+    }
     case "wikiless": {
       let hostSplit = url.host.split(".")
       // wikiless doesn't have mobile view support yet
@@ -910,6 +919,7 @@ const defaultInstances = {
   koub: ["https://koub.clovius.club"],
   soundcloak: ["https://soundcloak.fly.dev"],
   gocook: ["https://cook.adminforge.de"],
+  wikimore: ["https://wikimore.private.coffee"],
 }
 
 async function getDefaults() {
diff --git a/src/config.json b/src/config.json
index 4fb40ae8..b9d61832 100644
--- a/src/config.json
+++ b/src/config.json
@@ -1012,6 +1012,11 @@
           "name": "Wikiless",
           "instanceList": true,
           "url": "https://wikiless.org"
+        },
+        "wikimore": {
+          "name": "Wikimore",
+          "instanceList": true,
+          "url": "https://git.private.coffee/privatecoffee/wikimore"
         }
       },
       "targets": [