From 6e420bbb3cfaccebd9e5efbe48ef1ab28239aafa Mon Sep 17 00:00:00 2001 From: idk Date: Sun, 11 Jun 2023 15:35:01 -0400 Subject: [PATCH] pass URL back from fixURL even if URL is not a moz-extension URL --- i2ppb@eyedeekay.github.io.xpi.torrent | Bin 2543 -> 2543 bytes index.html | 2 +- manifest.json | 2 +- manifestv3.json | 2 +- scrub.js | 9 +++++---- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/i2ppb@eyedeekay.github.io.xpi.torrent b/i2ppb@eyedeekay.github.io.xpi.torrent index fcb5521c6ed8ba510a372601deaa7f676a7e5628..cd50cab61e592389d68e79c7fb7499ea32676d48 100644 GIT binary patch delta 617 zcmV-v0+#*n6YmqS;07`^FgGzUIAt_CX>Mk3WHvf%Wo~D5XlXV%GC4LfG-Wh8ZeeX@ zGc-DBGH`HWEio=MHM*JuLy$w7aD{}<1U9^p@NnVA9|>GOFmwupJHI9N{;!JGd-eI zyyEPecTK_6j|LoEqjKE`?Mcvf$}y_vhEG_H6SP$d%m1w%m0oNE6n_NH8i?hV{_==L zDT^Y&lXBuE|IcD39 z0sZ^bZ38!G$wQ+2hveJ~vX%#0{HOV*HCMTXG5Sh_D-@H~&-snXb1aKtNPOHz)j$ z(wgVC|G;TA?9`!xZQb~o0G6@cHw`%2S=>#~s_FhFd{S$Et}~{VRe9qCOR~ge?92CM z}e{HKw2aL%$d?w zUc?SbfI#nSgCN|h0W;bx+iTf{Mk3WHvf%Wo~D5XlXV%GC4IeH)S+BZeeX@ zGc-DBGH`HWEio=MHIottJAX7JxHny1+s~59TC4)N)F)<;u*pu{_O_Z6Ln5^_0qdM_ zG|+KzP9Y3YiSKSAw`{E*k9v+YTeHDvCyaGdFPj)1Yog63K`xXXj>pYA$^VVaB|Pk{3Da-4U+lXF+nEIt9*#Tf=jtZG*g`EagcVX`@7TDA&oH2WD|j*HN)7{-pXQM*Jm#}K6oU~Y|* zpma;{-~Yg2Ws-_d)N}nh#)9${IfIwN1eXLQy4+jKx=3u3dU^};tIIc zarfXd8k=Y(0(l2>tOA!)s~>kbzw|idFIr!tjbwt+D9w|?J2P+o#*MazYgN`ICec%W z-|)aES$g&;f==Dv9$bRu1ymQ`p55`}pm{Iwu`3ihfe=xt#($RC+scK{yJGb~lW2@h zhexXx`!r1MRz~&y9%moQo6dB~x<|zefCw)YbyXN>bvvch1Y7~qtC=er6RX9?#Q%q4 z5S8?@pY#NBU@eivpC?wgpK$?i=^2Gdv*8W`Q*_-jQuH;1pw2K%H)l-8Ss1!VP&vhc zCn5bU{S~F}DIkEF)422xzuo6ELTpI!P10#Y8d=7 diff --git a/manifest.json b/manifest.json index 9063502..9b93d2e 100644 --- a/manifest.json +++ b/manifest.json @@ -27,7 +27,7 @@ ], "manifest_version": 2, "name": "__MSG_extensionName__", - "version": "1.45", + "version": "1.47", "description": "__MSG_extensionDescription__", "homepage_url": "https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox", "icons": { diff --git a/manifestv3.json b/manifestv3.json index ccd26ef..a7907dc 100644 --- a/manifestv3.json +++ b/manifestv3.json @@ -27,7 +27,7 @@ "host_permissions": [""], "manifest_version": 3, "name": "__MSG_extensionName__", - "version": "1.45", + "version": "1.47", "description": "__MSG_extensionDescription__", "homepage_url": "https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox", "icons": { diff --git a/scrub.js b/scrub.js index 1419157..ce547fe 100644 --- a/scrub.js +++ b/scrub.js @@ -155,15 +155,16 @@ function fixURL(contextidentifier, url) { case mailpref: return routerURL + "webmail"; case ircpref: - return "127.0.0.1:7669"; + return "http://127.0.0.1:7669"; case torpref: - return "127.0.0.1:7695"; + return "http://127.0.0.1:7695"; case blogpref: - return "127.0.0.1:8084"; + return "http://127.0.0.1:8084"; default: return "http://proxy.i2p"; } } + return url; } async function forceIntoIsolation(tabId, contextidentifier, pin = true) { @@ -172,7 +173,7 @@ async function forceIntoIsolation(tabId, contextidentifier, pin = true) { var context = await browser.contextualIdentities.query({ name: contextidentifier, }); - console.log("(scrub) tabId URL", tabId.url); + console.log("(scrub) tabId URL", tabId); let newURL = fixURL(contextidentifier, tabId.url); if (tabId.cookieStoreId != context[0].cookieStoreId) { function Create(beforeTab) {