Skip to content

Commit

Permalink
Added Painterest #1011
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Jan 20, 2025
1 parent 4dbc36c commit fc7a1c5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,10 @@ function rewrite(url, originUrl, frontend, randomInstance, type) {
}
}
case "binternet":
if (url.hostname == "i.pinimg.com") return `${randomInstance}/image_proxy.php?url=${url.href}`
if (url.hostname == "i.pinimg.com") return `${randomInstance}/image_proxy.php?url=${encodeURIComponent(url.href)}`
return `${randomInstance}${url.pathname}${url.search}`
case "painterest":
if (url.hostname == "i.pinimg.com") return `${randomInstance}/_/proxy?url=${encodeURIComponent(url.href)}`
return `${randomInstance}${url.pathname}${url.search}`
case "laboratory": {
let path = url.pathname
Expand Down Expand Up @@ -880,6 +883,7 @@ const defaultInstances = {
wolfreeAlpha: ["https://gqq.gitlab.io", "https://uqq.gitlab.io"],
laboratory: ["https://lab.vern.cc"],
binternet: ["https://bn.bloat.cat"],
painterest: ["https://pt.bloat.cat"],
pixivFe: ["https://pixivfe.exozy.me"],
liteXiv: ["https://litexiv.exozy.me"],
indestructables: ["https://indestructables.private.coffee"],
Expand Down
6 changes: 6 additions & 0 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,12 @@
"instanceList": true,
"url": "https://github.com/Ahwxorg/Binternet",
"embeddable": true
},
"painterest": {
"name": "Painterest",
"instanceList": true,
"url": "https://codeberg.org/thirtysix/painterest",
"embeddable": true
}
},
"targets": [
Expand Down

0 comments on commit fc7a1c5

Please sign in to comment.