Fixed pinterest. Made popup width dynamic.
This commit is contained in:
parent
c8ee9fc782
commit
0b7e38f0be
|
@ -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 = ""
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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) }, () => {
|
||||||
|
|
Loading…
Reference in New Issue