Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Jan 27, 2025
1 parent 181b251 commit 7b988b8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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"],
Expand Down
5 changes: 5 additions & 0 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 7b988b8

Please sign in to comment.