1 Commits

Author SHA1 Message Date
idk
80c66ba2f7 Auto-proxy on sites that specify a port 2021-12-28 20:13:12 -05:00
7 changed files with 15 additions and 17 deletions

View File

@@ -37,11 +37,11 @@ clean: rc clean-artifacts
## EVEN RELEASES are AMO RELEASES
## ODD RELEASES are SELFHOSTED RELEASES
MOZ_VERSION=0.126
VERSION=0.125
MOZ_VERSION=0.128
VERSION=0.127
## INCREMENT THIS EVERY TIME YOU DO A RELEASE
LAST_VERSION=0.123
LAST_VERSION=0.125
YELLOW=F7E59A
ORANGE=FFC56D

View File

@@ -20,7 +20,7 @@
"description": "Description of the extension."
},
"extensionVersion": {
"message": "0.108",
"message": "1.28",
"description": "Version of the extension."
},
"proxyFailedStatus": {

View File

@@ -20,7 +20,7 @@
"description": "Descripción de la extensión."
},
"extensionVersion": {
"message": "0.108",
"message": "1.28",
"description": "Versión de la extensión."
},
"proxyFailedStatus": {

View File

@@ -12,6 +12,7 @@ function contentUpdateById(id, message) {
contentUpdateById("text-section-header", "extensionName");
contentUpdateById("description", "extensionDescription");
contentUpdateById("i2pbrowser-version", "extensionVersion");
contentUpdateById("proxy-check", "proxyFailedStatus");
// Control Section
contentUpdateById("controlHeader", "controlHeader");
@@ -53,12 +54,6 @@ fetch("http://proxy.i2p").then((myJson) => {
if (readyness != null) {
hide(readyness);
}
}, (error) => {
contentUpdateById("proxy-check", "proxyFailedStatus");
let readyness = document.querySelectorAll(".readyness");
if (readyness != null) {
hide(readyness);
}
});
function hide(elements) {

View File

@@ -95,7 +95,8 @@ function i2pHostName(url) {
function i2pHost(url) {
let hostname = i2pHostName(url);
return hostname.endsWith(".i2p");
let postname = hostname.split(":")[0]
return postname.endsWith(".i2p");
}
function routerHost(url) {

View File

@@ -2,7 +2,8 @@
"browser_specific_settings": {
"gecko": {
"id": "i2ppb@eyedeekay.github.io",
"strict_min_version": "91.1.0"
"strict_min_version": "91.1.0",
"update_url": "https://thiswillneedtobeaneephttpdbase32address.b32.i2p/updates.json"
}
},
"permissions": [
@@ -27,7 +28,7 @@
],
"manifest_version": 2,
"name": "__MSG_extensionName__",
"version": "0.125",
"version": "0.123",
"description": "__MSG_extensionDescription__",
"homepage_url": "https://github.com/eyedeekay/I2P-in-Private-Browsing-Mode-Firefox",
"icons": {

View File

@@ -446,10 +446,11 @@ function i2pHostName(url) {
function i2pHost(url) {
let hostname = i2pHostName(url);
if (hostname.endsWith(".i2p")) {
console.log("(hostname) i2p", hostname);
let postname = hostname.split(":")[0];
if (postname.endsWith(".i2p")) {
console.log("(hostname) i2p", postname);
}
return hostname.endsWith(".i2p");
return postname.endsWith(".i2p");
}
function onContextGotLog(contexts) {