Fixed pinterest. Made popup width dynamic.

This commit is contained in:
ManeraKai 2024-08-22 10:22:59 +03:00
parent c8ee9fc782
commit 0b7e38f0be
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
3 changed files with 3 additions and 2 deletions

View File

@ -396,6 +396,7 @@ function rewrite(url, frontend, randomInstance) {
} }
case "binternet": 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=${url.href}`
return `${randomInstance}${url.pathname}${url.search}`
case "laboratory": { case "laboratory": {
let path = url.pathname let path = url.pathname
if (path == "/") path = "" if (path == "/") path = ""

View File

@ -88,7 +88,7 @@
<style> <style>
:global(html, body) { :global(html, body) {
width: 280px; min-width: 260px;
height: min-content; height: min-content;
min-height: auto; min-height: auto;
margin: 0; margin: 0;

View File

@ -27,7 +27,7 @@
<Row> <Row>
<div <div
class="interactive" class="interactive margin margin_{document.body.dir}"
on:keydown={null} on:keydown={null}
on:click={() => on:click={() =>
browser.tabs.create({ url: browser.runtime.getURL(_config.services[serviceKey].url) }, () => { browser.tabs.create({ url: browser.runtime.getURL(_config.services[serviceKey].url) }, () => {