Skip to content

Commit 7b988b8

Browse files
committed
1 parent 181b251 commit 7b988b8

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/assets/javascripts/services.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,15 @@ function rewrite(url, originUrl, frontend, randomInstance, type) {
397397
}
398398
return `${randomInstance}${url.pathname}${url.search}`
399399
}
400+
case "vixipy": {
401+
const regex = /\/[a-z]{1,3}\/(.*)/.exec(url.pathname)
402+
if (regex) {
403+
let path = regex[1]
404+
if (path.startsWith("tags/")) path = path.replace(/tags/, "tag")
405+
return `${randomInstance}/${path}${url.search}`
406+
}
407+
return `${randomInstance}${url.pathname}${url.search}`
408+
}
400409
case "invidious": {
401410
// tracker
402411
url.searchParams.delete("si")
@@ -899,6 +908,7 @@ const defaultInstances = {
899908
painterest: ["https://pt.bloat.cat"],
900909
pixivFe: ["https://pixivfe.exozy.me"],
901910
liteXiv: ["https://litexiv.exozy.me"],
911+
vixipy: ["https://vx.maid.zone"],
902912
indestructables: ["https://indestructables.private.coffee"],
903913
destructables: ["https://ds.vern.cc"],
904914
safetwitch: ["https://safetwitch.drgns.space"],

src/config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,11 @@
477477
"name": "LiteXiv",
478478
"instanceList": true,
479479
"url": "https://codeberg.org/Peaksol/LiteXiv"
480+
},
481+
"vixipy": {
482+
"name": "Vixipy",
483+
"instanceList": true,
484+
"url": "https://codeberg.org/vixipy/Vixipy"
480485
}
481486
},
482487
"targets": [

0 commit comments

Comments
 (0)