diff --git a/Makefile b/Makefile index 06e1bec..589856f 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,7 @@ uninstall: $(PREFIX)/share/webext/i2psetproxy.js@eyedeekay.github.io \ $(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384} + ls: ls -lah $(PREFIX)/share/webext/i2ppb@eyedeekay.github.io; \ ls -lah $(PREFIX)/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384} @@ -36,8 +37,8 @@ clean: ## EVEN RELEASES are AMO RELEASES ## ODD RELEASES are SELFHOSTED RELEASES -MOZ_VERSION=0.42 -VERSION=0.43 +MOZ_VERSION=0.44 +VERSION=0.45 #VERSION=$(MOZ_VERSION) #VERSION=1.27 diff --git a/background.js b/background.js index eeaebb6..58061dc 100644 --- a/background.js +++ b/background.js @@ -90,6 +90,8 @@ if (!isDroid()) { chrome.windows.onRemoved.addListener(themeWindow); chrome.tabs.onUpdated.addListener(themeWindowByTab); chrome.tabs.onActivated.addListener(themeWindowByTab); +}else{ + } function themeWindowByTab(tabId) { diff --git a/context.js b/context.js index 2b32f15..ad4a8b0 100644 --- a/context.js +++ b/context.js @@ -15,7 +15,7 @@ function onError(error) { function eventHandler(event) { if (event.target.dataset.action == "create") { - var creating = browser.windows.create({ + var creating = browser.tabs.create({ cookieStoreId: event.target.dataset.identity }); creating.then(onCreated, onError); diff --git a/debian/changelog b/debian/changelog index 5bf9229..3936f6b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +i2psetproxy.js (0.45-1) UNRELEASED; urgency=low + + * Improve the user interface a whole bunch + + -- idk Thu, 22 NOV 2019 18:17:33 -0400 + i2psetproxy.js (0.43-1) UNRELEASED; urgency=low * Contextualize All the Things diff --git a/home.html b/home.html index e396117..5eb40f1 100644 --- a/home.html +++ b/home.html @@ -12,12 +12,12 @@
-

The Invisible Internet Browser

+

I2P In Private Browsing

-

The Invisible Internet Browser ( I2P Browser ) is preconfigured to get your content using the anonymous and private I2P network and to provide accessible, first-class access to I2P Peer-to-Peer applications.

-

This is a experimental sub-project of I2P. It is currently Beta software.

+

I2P in Private Browsing is a webextension to secure and enhance your I2P use in the browser.

+

This is an experimental product.

diff --git a/info.css b/info.css index 313864e..c079180 100644 --- a/info.css +++ b/info.css @@ -51,4 +51,4 @@ img.readyness { } #consoleOn { min-height: 2rem -} +} \ No newline at end of file diff --git a/info.js b/info.js index c3c2f5f..6f54122 100644 --- a/info.js +++ b/info.js @@ -8,7 +8,7 @@ document.addEventListener("click", e => { type: "panel", incognito: true }; - let creating = browser.windows.create(createData); + let creating = browser.tabs.create(createData); creating.then(() => { console.log("The help panel has been created"); }); @@ -17,7 +17,7 @@ document.addEventListener("click", e => { type: "panel", incognito: true }; - let creating = browser.windows.create(createData); + let creating = browser.tabs.create(createData); creating.then(() => { console.log("The news panel has been created"); }); @@ -73,11 +73,27 @@ function proxyReadiness() { } function goHome() { - let createData = { - url: "home.html" - }; - console.log("visiting homepage"); - let creating = browser.tabs.create(createData); + function gotProxyInfo(info) { + let host = info.value.http.split(":")[0]; + let port = info.value.http.split(":")[1]; + if (port == "7644") { + let createData = { + url: "about:I2p" + }; + console.log("visiting homepage"); + let creating = browser.tabs.create(createData); + } else { + let createData = { + url: "home.html" + }; + console.log("visiting homepage"); + let creating = browser.tabs.create(createData); + } + console.log("(bookmarks) adding home page bookmark"); + } + console.log("(bookmarks) checking if we're running in an I2P Browser"); + var gettingInfo = browser.proxy.settings.get({}); + gettingInfo.then(gotProxyInfo); } function goTunnel() { diff --git a/manifest.json b/manifest.json index 719e3cd..9689b21 100644 --- a/manifest.json +++ b/manifest.json @@ -24,7 +24,7 @@ ], "manifest_version": 2, "name": "__MSG_extensionName__", - "version": "0.43", + "version": "0.47", "description": "__MSG_extensionDescription__", "homepage_url": "https://github.com/eyedeekay/i2psetproxy.js", "icons": {