update the extensions
This commit is contained in:
4
Makefile
4
Makefile
@@ -21,7 +21,7 @@ clobber:
|
||||
rm -f ../i2psetproxy.js.zip ../i2p_proxy*.xpi
|
||||
|
||||
xpi:
|
||||
mv ~/Downloads/i2p_proxy*.xpi ../i2psetproxy.js@eyedeekay.github.io.xpi
|
||||
mv ~/Downloads/i2p_proxy-$(VERSION)-an+fx.xpi ../i2psetproxy.js@eyedeekay.github.io.xpi
|
||||
|
||||
cp:
|
||||
cp ../i2psetproxy.js@eyedeekay.github.io.xpi ./i2psetproxy.js@eyedeekay.github.io.xpi
|
||||
@@ -29,7 +29,7 @@ cp:
|
||||
VERSION=1.15
|
||||
|
||||
version:
|
||||
sed -i 's|$(shell grep "\"version\": " manifest.json)| \"version\": $(VERSION)|g' manifest.json
|
||||
sed -i 's|$(shell grep "\"version\": " manifest.json)| \"version\": \"$(VERSION)\",|g' manifest.json
|
||||
|
||||
zip: version
|
||||
zip --exclude="./i2psetproxy.js@eyedeekay.github.io.xpi" \
|
||||
|
Binary file not shown.
@@ -8,7 +8,7 @@
|
||||
"permissions": ["theme", "proxy", "privacy", "storage"],
|
||||
"manifest_version": 2,
|
||||
"name": "__MSG_extensionName__",
|
||||
"version": 1.15
|
||||
"version": "1.15",
|
||||
"description": "__MSG_extensionDescription__",
|
||||
"icons": {
|
||||
"48": "icons/toopie.png"
|
||||
|
7
proxy.js
7
proxy.js
@@ -16,6 +16,9 @@ browser.privacy.network.webRTCIPHandlingPolicy.set({value: "disable_non_proxied_
|
||||
|
||||
console.log("Preliminarily disabled WebRTC.")
|
||||
|
||||
var controlHost = "127.0.0.1"
|
||||
var controlPort = "7951"
|
||||
|
||||
function setupProxy() {
|
||||
if (isFirefox()) {
|
||||
if (getScheme() == "http") {
|
||||
@@ -63,8 +66,8 @@ function setupProxy() {
|
||||
|
||||
function RefreshIdentity(){
|
||||
console.log("Generating new identity")
|
||||
const controlhost = getControlHost();
|
||||
const controlport = getControlPort();
|
||||
const controlhost = controlHost;
|
||||
const controlport = controlPort;
|
||||
const Http = new XMLHttpRequest();
|
||||
const url='http://' + controlhost + ":" + controlport
|
||||
Http.open("GET", url);
|
||||
|
Reference in New Issue
Block a user