From fc7a1c5f124b601d59363c61cb2db76398362117 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Mon, 20 Jan 2025 14:56:43 +0300 Subject: Added Painterest https://github.com/libredirect/browser_extension/issues/1011 --- src/assets/javascripts/services.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/assets/javascripts/services.js') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 5fe3e2eb..c602b917 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -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 @@ -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"], -- cgit 1.4.1