This commit is contained in:
parent
181b2518e2
commit
7b988b818f
@ -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"],
|
||||
|
@ -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": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user