pass URL back from fixURL even if URL is not a moz-extension URL
This commit is contained in:
Binary file not shown.
@@ -72,7 +72,7 @@ Clearnet Bittorrent network(With a web seed to support it in case one goes
|
||||
dead).</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="magnet:?xl=2543magnetsubdn=i2ppb%40eyedeekay.github.io.xpi.torrentmagnetsubxt=urn:tree:tiger:5bxkevuqseho2z3qlq37tuhhiu7hl3hpadalj3qmagnetsubxt=urn:ed2k:0804cf6de0e6a92077d4e5ee162ad5edmagnetsubxt=urn:aich:lfnei3gpxttn5xmesfpfk5gcvpuwspmm">Magnet Link</a></li>
|
||||
<li><a href="magnet:?xl=2543magnetsubdn=i2ppb%40eyedeekay.github.io.xpi.torrentmagnetsubxt=urn:tree:tiger:yq5q5m2lg7b3stfeed6lnoply2zqafv7ynngalamagnetsubxt=urn:ed2k:512d2217fd31371b90666a6616210e74magnetsubxt=urn:aich:2ekivpta7ewhqmejcdp475unogaukyt2">Magnet Link</a></li>
|
||||
<li><a href="./i2ppb@eyedeekay.github.io.xpi.torrent">Get the .torrent file</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"host_permissions": ["<all_urls>"],
|
||||
"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": {
|
||||
|
||||
9
scrub.js
9
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) {
|
||||
|
||||
Reference in New Issue
Block a user