Skip to content

Commit fc7a1c5

Browse files
committed
Added Painterest #1011
1 parent 4dbc36c commit fc7a1c5

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/assets/javascripts/services.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,10 @@ function rewrite(url, originUrl, frontend, randomInstance, type) {
358358
}
359359
}
360360
case "binternet":
361-
if (url.hostname == "i.pinimg.com") return `${randomInstance}/image_proxy.php?url=${url.href}`
361+
if (url.hostname == "i.pinimg.com") return `${randomInstance}/image_proxy.php?url=${encodeURIComponent(url.href)}`
362+
return `${randomInstance}${url.pathname}${url.search}`
363+
case "painterest":
364+
if (url.hostname == "i.pinimg.com") return `${randomInstance}/_/proxy?url=${encodeURIComponent(url.href)}`
362365
return `${randomInstance}${url.pathname}${url.search}`
363366
case "laboratory": {
364367
let path = url.pathname
@@ -880,6 +883,7 @@ const defaultInstances = {
880883
wolfreeAlpha: ["https://gqq.gitlab.io", "https://uqq.gitlab.io"],
881884
laboratory: ["https://lab.vern.cc"],
882885
binternet: ["https://bn.bloat.cat"],
886+
painterest: ["https://pt.bloat.cat"],
883887
pixivFe: ["https://pixivfe.exozy.me"],
884888
liteXiv: ["https://litexiv.exozy.me"],
885889
indestructables: ["https://indestructables.private.coffee"],

src/config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,12 @@
541541
"instanceList": true,
542542
"url": "https://github.com/Ahwxorg/Binternet",
543543
"embeddable": true
544+
},
545+
"painterest": {
546+
"name": "Painterest",
547+
"instanceList": true,
548+
"url": "https://codeberg.org/thirtysix/painterest",
549+
"embeddable": true
544550
}
545551
},
546552
"targets": [

0 commit comments

Comments
 (0)