From 00353f5d7a0c63399eba832af5bb3b34b7f46abf Mon Sep 17 00:00:00 2001 From: idk Date: Tue, 20 Jun 2023 15:38:33 -0400 Subject: [PATCH] fmt --- consoleinfo.js | 4 ++-- host.js | 9 +++++++-- i2ppb@eyedeekay.github.io.xpi.torrent | Bin 2543 -> 0 bytes proxyinfo.js | 5 ++--- 4 files changed, 11 insertions(+), 7 deletions(-) delete mode 100644 i2ppb@eyedeekay.github.io.xpi.torrent diff --git a/consoleinfo.js b/consoleinfo.js index f6be3bb..a6d37e7 100644 --- a/consoleinfo.js +++ b/consoleinfo.js @@ -28,7 +28,7 @@ function hide(elementsToHide) { ? elementsToHide : [elementsToHide]; elements.forEach((element) => { - console.log("(consoleinfo) hiding") + console.log("(consoleinfo) hiding"); el.classList.add("hidden"); }); } @@ -39,7 +39,7 @@ function unhide(elementsToShow) { : [elementsToShow]; elements.forEach((element) => { if (element.style) { - console.log("(consoleinfo) unhiding") + console.log("(consoleinfo) unhiding"); el.classList.remove("hidden"); } }); diff --git a/host.js b/host.js index 0026e5a..bf279a8 100644 --- a/host.js +++ b/host.js @@ -1,5 +1,10 @@ function isProxyHost(requestDetails) { - if (requestDetails.url.includes(control_host()+":"+control_port()+"/jsonrpc")) return false; + if ( + requestDetails.url.includes( + control_host() + ":" + control_port() + "/jsonrpc" + ) + ) + return false; const originUrl = requestDetails.originUrl; const isWindowOrHomeUrl = originUrl !== browser.runtime.getURL("window.html") && @@ -168,7 +173,7 @@ function isRouterHost(url) { path = url.replace(protocol + hostname + "/", ""); } else if (identifyProtocolHandler(url)) { const newUrl = identifyProtocolHandler(url); - console.log("(host) testing router host protocol handler identified") + console.log("(host) testing router host protocol handler identified"); return isRouterHost(newUrl); } else { hostname = url.split("/")[0]; diff --git a/i2ppb@eyedeekay.github.io.xpi.torrent b/i2ppb@eyedeekay.github.io.xpi.torrent deleted file mode 100644 index cd50cab61e592389d68e79c7fb7499ea32676d48..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001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!L9PG(1?r}a+Id%P|m(2ZlOYXU67W(IJXuq3WRk@`5sfGK5X`{DZ_ILQJ z?1QnN{Q1kB>E-R-9yy?3)6v<3KWu$%Ti1QD8#i|6RIJ9vW0=|HuiisB@9B=Ts=DcbpE#}OaJMBC7C}O+| z%C7M$j5$7b4ONk;K{@2gM*?t-fGP+g%kAubz-mBq3&@m3#0u_u_qr2Cew>HFzg`K{ A=>Px# diff --git a/proxyinfo.js b/proxyinfo.js index d3dfdd0..3e1a4a0 100644 --- a/proxyinfo.js +++ b/proxyinfo.js @@ -31,7 +31,7 @@ function hide(elements) { const elems = Array.isArray(elements) ? elements : [elements]; elems.forEach((elem) => { if (elem.style) { - console.log("(proxyinfo) hiding") + console.log("(proxyinfo) hiding"); elem.classList.add("hidden"); } }); @@ -42,7 +42,7 @@ function unhide(elements) { const elems = Array.isArray(elements) ? elements : [elements]; elems.forEach((elem) => { if (elem.style) { - console.log("(proxyinfo) unhiding") + console.log("(proxyinfo) unhiding"); elem.classList.remove("hidden"); } }); @@ -76,4 +76,3 @@ fetch("http://127.0.0.1:7657/jsonrpc/") var toopieIDLinks = document.querySelectorAll(".window-visit-toopie"); hide(toopieIDLinks); }); -