ManeraKai 2025-01-27 22:48:12 +03:00
parent 181b2518e2
commit 7b988b818f
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 15 additions and 0 deletions

View File

@ -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"],

View File

@ -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": [