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 5cc93f45..1db192a0 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -397,6 +397,15 @@ function rewrite(url, originUrl, frontend, randomInstance, type) {
       }
       return `${randomInstance}${url.pathname}${url.search}`
     }
+    case "vixipy": {
+      const regex = /\/[a-z]{1,3}\/(.*)/.exec(url.pathname)
+      if (regex) {
+        let path = regex[1]
+        if (path.startsWith("tags/")) path = path.replace(/tags/, "tag")
+        return `${randomInstance}/${path}${url.search}`
+      }
+      return `${randomInstance}${url.pathname}${url.search}`
+    }
     case "invidious": {
       // tracker
       url.searchParams.delete("si")
@@ -899,6 +908,7 @@ const defaultInstances = {
   painterest: ["https://pt.bloat.cat"],
   pixivFe: ["https://pixivfe.exozy.me"],
   liteXiv: ["https://litexiv.exozy.me"],
+  vixipy: ["https://vx.maid.zone"],
   indestructables: ["https://indestructables.private.coffee"],
   destructables: ["https://ds.vern.cc"],
   safetwitch: ["https://safetwitch.drgns.space"],
diff --git a/src/config.json b/src/config.json
index 429b7865..115bf2eb 100644
--- a/src/config.json
+++ b/src/config.json
@@ -477,6 +477,11 @@
           "name": "LiteXiv",
           "instanceList": true,
           "url": "https://codeberg.org/Peaksol/LiteXiv"
+        },
+        "vixipy": {
+          "name": "Vixipy",
+          "instanceList": true,
+          "url": "https://codeberg.org/vixipy/Vixipy"
         }
       },
       "targets": [