Compare commits
51 Commits
20220808
...
auto-confi
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c2485eeea0 | ||
![]() |
603c10ed9f | ||
![]() |
7806b6f232 | ||
![]() |
3d67aa4dca | ||
![]() |
646778680d | ||
![]() |
910aeed82c | ||
![]() |
2f0e553b20 | ||
![]() |
bc33051d8d | ||
![]() |
e4d0be36c9 | ||
![]() |
9374b1b274 | ||
![]() |
e4e3df90dc | ||
![]() |
acb66c97d0 | ||
![]() |
a8ac47966c | ||
![]() |
acf67d93c6 | ||
![]() |
07f7b84817 | ||
![]() |
c7a42e6447 | ||
![]() |
66e93709ca | ||
![]() |
a7eba5f5ae | ||
![]() |
ba0e2fb8c0 | ||
![]() |
8ee2a1170e | ||
![]() |
a08046655b | ||
![]() |
54be1d3acd | ||
![]() |
e7e40a96ba | ||
![]() |
6de7e95a4b | ||
![]() |
b4d9687eed | ||
![]() |
73b779ba5c | ||
![]() |
f4d55be5b4 | ||
![]() |
03ea86c345 | ||
![]() |
1ba8327589 | ||
![]() |
50c8804c8a | ||
![]() |
3d29135e50 | ||
![]() |
419105420d | ||
![]() |
217f54db07 | ||
![]() |
6afecedf59 | ||
![]() |
1347859bc5 | ||
![]() |
eafa1bf04d | ||
![]() |
63e1326dae | ||
![]() |
50b00c6c88 | ||
![]() |
49d52e150b | ||
![]() |
86e363d13e | ||
![]() |
3930c6750d | ||
![]() |
cead2e1133 | ||
![]() |
82b85ca77f | ||
![]() |
06f7521e2e | ||
![]() |
b7a9d57c73 | ||
![]() |
0219d14b48 | ||
![]() |
1657111ddb | ||
![]() |
3329925e73 | ||
![]() |
e154064cbd | ||
![]() |
c784284b03 | ||
![]() |
0efd2495b5 |
@@ -1,12 +1,13 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>
|
<title>
|
||||||
I2P Browsing Pro...
|
I2P Easy-Install...
|
||||||
</title>
|
</title>
|
||||||
<meta name="author" content="eyedeekay" />
|
<meta name="author" content="eyedeekay" />
|
||||||
<meta name="description" content="i2p.firefox" />
|
<meta name="description" content="i2p.firefox" />
|
||||||
<meta name="keywords" content="master" />
|
<meta name="keywords" content="master" />
|
||||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="navbar">
|
<div id="navbar">
|
||||||
@@ -98,6 +99,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://geti2p.net/">
|
<a href="https://geti2p.net/">
|
||||||
|
<img src="i2plogo.png"></img>
|
||||||
I2P
|
I2P
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
I2P Browsing Profile for Firefox
|
I2P Easy-Install Bundle for Windows(Also/formerly)I2P Browsing Profile for Firefox
|
||||||
================================
|
==================================================================================
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
---------
|
---------
|
||||||
|
@@ -1,12 +1,13 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>
|
<title>
|
||||||
I2P Browsing Pro...
|
I2P Easy-Install...
|
||||||
</title>
|
</title>
|
||||||
<meta name="author" content="eyedeekay" />
|
<meta name="author" content="eyedeekay" />
|
||||||
<meta name="description" content="i2p.firefox" />
|
<meta name="description" content="i2p.firefox" />
|
||||||
<meta name="keywords" content="master" />
|
<meta name="keywords" content="master" />
|
||||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="navbar">
|
<div id="navbar">
|
||||||
@@ -135,6 +136,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://geti2p.net/">
|
<a href="https://geti2p.net/">
|
||||||
|
<img src="i2plogo.png"></img>
|
||||||
I2P
|
I2P
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
6
build.sh
6
build.sh
@@ -65,8 +65,12 @@ if [ ! -f "$HERE/build/jna-platform.jar" ]; then
|
|||||||
wget -O "$HERE/build/jna-platform.jar" "https://repo1.maven.org/maven2/net/java/dev/jna/jna-platform/$JNA_VERSION/jna-platform-$JNA_VERSION.jar"
|
wget -O "$HERE/build/jna-platform.jar" "https://repo1.maven.org/maven2/net/java/dev/jna/jna-platform/$JNA_VERSION/jna-platform-$JNA_VERSION.jar"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$HERE/build/i2pfirefox.jar" ]; then
|
||||||
|
wget -O "$HERE/build/i2pfirefox.jar" https://github.com/eyedeekay/i2p.plugins.firefox/releases/download/0.0.16/i2pfirefox.jar
|
||||||
|
fi
|
||||||
|
|
||||||
cd java
|
cd java
|
||||||
"$JAVA_HOME"/bin/javac -d ../build -classpath "$HERE/build/jna.jar":"$HERE/build/jna-platform.jar":"$HERE/build/i2p.jar":"$HERE/build/router.jar":"$HERE/build/routerconsole.jar" \
|
"$JAVA_HOME"/bin/javac -d ../build -classpath "$HERE/build/i2pfirefox.jar:$HERE/build/jna.jar":"$HERE/build/jna-platform.jar":"$HERE/build/i2p.jar":"$HERE/build/router.jar":"$HERE/build/routerconsole.jar" \
|
||||||
net/i2p/router/Elevator.java \
|
net/i2p/router/Elevator.java \
|
||||||
net/i2p/router/Shell32X.java \
|
net/i2p/router/Shell32X.java \
|
||||||
net/i2p/router/WinLauncher.java \
|
net/i2p/router/WinLauncher.java \
|
||||||
|
@@ -1,3 +1,9 @@
|
|||||||
|
2022-08-28 idk
|
||||||
|
* Migrate away from batch scripts and simply launch a browser if I2P is already running.
|
||||||
|
This is more flexible, stable, and simplet to install
|
||||||
|
* Improves compatibility with detatched and un-bundled routers on the same system
|
||||||
|
* Fixes bugs in Firefox path finding
|
||||||
|
|
||||||
2022-05-8 idk
|
2022-05-8 idk
|
||||||
* Add translations for Arabic, German, French, Italian, Japanese, Portuguese, Russian,
|
* Add translations for Arabic, German, French, Italian, Japanese, Portuguese, Russian,
|
||||||
and Chinese.
|
and Chinese.
|
||||||
|
BIN
i2plogo.png
Normal file
BIN
i2plogo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
@@ -6,12 +6,12 @@ export JNA_VERSION=5.11.0
|
|||||||
#Comment this out to build from an alternate branch or
|
#Comment this out to build from an alternate branch or
|
||||||
# the tip of the master branch.
|
# the tip of the master branch.
|
||||||
VERSIONMAJOR=1
|
VERSIONMAJOR=1
|
||||||
VERSIONMINOR=8
|
VERSIONMINOR=9
|
||||||
VERSIONBUILD=1
|
VERSIONBUILD=0
|
||||||
I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
||||||
export I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
export I2P_VERSION="$VERSIONMAJOR.$VERSIONMINOR.$VERSIONBUILD"
|
||||||
VERSION=i2p-1.8.1
|
VERSION=i2p-1.9.0
|
||||||
export VERSION=i2p-1.8.1
|
export VERSION=i2p-1.9.0
|
||||||
|
|
||||||
#Uncomment this to build from the tip of the master.
|
#Uncomment this to build from the tip of the master.
|
||||||
#I2P_VERSION=1.8.0
|
#I2P_VERSION=1.8.0
|
||||||
|
@@ -1,12 +1,13 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>
|
<title>
|
||||||
I2P Browsing Pro...
|
I2P Easy-Install...
|
||||||
</title>
|
</title>
|
||||||
<meta name="author" content="eyedeekay" />
|
<meta name="author" content="eyedeekay" />
|
||||||
<meta name="description" content="i2p.firefox" />
|
<meta name="description" content="i2p.firefox" />
|
||||||
<meta name="keywords" content="master" />
|
<meta name="keywords" content="master" />
|
||||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="showhider.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="navbar">
|
<div id="navbar">
|
||||||
@@ -40,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h1>
|
<h1>
|
||||||
I2P Browsing Profile for Firefox
|
I2P Easy-Install Bundle for Windows(Also/formerly)I2P Browsing Profile for Firefox
|
||||||
</h1>
|
</h1>
|
||||||
<h2>
|
<h2>
|
||||||
Features:
|
Features:
|
||||||
@@ -714,6 +715,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://geti2p.net/">
|
<a href="https://geti2p.net/">
|
||||||
|
<img src="i2plogo.png"></img>
|
||||||
I2P
|
I2P
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -2,6 +2,7 @@ package net.i2p.router;
|
|||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
|
import java.net.ServerSocket;
|
||||||
import java.net.Socket;
|
import java.net.Socket;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.logging.FileHandler;
|
import java.util.logging.FileHandler;
|
||||||
@@ -17,6 +18,7 @@ import net.i2p.update.UpdateManager;
|
|||||||
import net.i2p.update.UpdatePostProcessor;
|
import net.i2p.update.UpdatePostProcessor;
|
||||||
import net.i2p.util.SystemVersion;
|
import net.i2p.util.SystemVersion;
|
||||||
import net.i2p.update.*;
|
import net.i2p.update.*;
|
||||||
|
import net.i2p.i2pfirefox.*;
|
||||||
|
|
||||||
import static net.i2p.update.UpdateType.*;
|
import static net.i2p.update.UpdateType.*;
|
||||||
|
|
||||||
@@ -48,6 +50,14 @@ public class WinLauncher {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
boolean privateBrowsing = false;
|
||||||
|
if (args != null && args.length > 0) {
|
||||||
|
logger.info("checking for private browsing");
|
||||||
|
if (args[0].equals("-private")) {
|
||||||
|
privateBrowsing = true;
|
||||||
|
logger.info("private browsing is true, profile will be discarded at end of session");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
File programs = selectProgramFile();
|
File programs = selectProgramFile();
|
||||||
if (!programs.exists())
|
if (!programs.exists())
|
||||||
@@ -67,7 +77,10 @@ public class WinLauncher {
|
|||||||
|
|
||||||
if (i2pIsRunning()) {
|
if (i2pIsRunning()) {
|
||||||
logger.warning("I2P is already running");
|
logger.warning("I2P is already running");
|
||||||
System.exit(0);
|
I2PBrowser i2pBrowser = new I2PBrowser();
|
||||||
|
System.out.println("i2pBrowser");
|
||||||
|
i2pBrowser.launch(privateBrowsing);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
System.setProperty("i2p.dir.base", programs.getAbsolutePath());
|
System.setProperty("i2p.dir.base", programs.getAbsolutePath());
|
||||||
@@ -88,27 +101,40 @@ public class WinLauncher {
|
|||||||
RouterLaunch.main(args);
|
RouterLaunch.main(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// see https://stackoverflow.com/questions/434718/sockets-discover-port-availability-using-java
|
||||||
|
public static boolean isAvailable(int portNr) {
|
||||||
|
boolean portFree;
|
||||||
|
try (var ignored = new ServerSocket(portNr)) {
|
||||||
|
portFree = true;
|
||||||
|
} catch (IOException e) {
|
||||||
|
portFree = false;
|
||||||
|
}
|
||||||
|
return portFree;
|
||||||
|
}
|
||||||
|
|
||||||
private static boolean i2pIsRunning() {
|
private static boolean i2pIsRunning() {
|
||||||
// check if there's something listening on port 7657
|
sleep(2000);
|
||||||
|
// check if there's something listening on port 7657(Router Console)
|
||||||
|
if (!isAvailable(7657)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
// check if there's something listening on port 7654(I2CP)
|
||||||
|
if (!isAvailable(7654)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
// check for the existence of router.ping file, if it's less then 2 minutes old,
|
// check for the existence of router.ping file, if it's less then 2 minutes old,
|
||||||
// exit
|
// exit
|
||||||
File home = selectHome();
|
File home = selectHome();
|
||||||
File ping = new File(home, "router.ping");
|
File ping = new File(home, "router.ping");
|
||||||
if (ping.exists()) {
|
if (ping.exists()) {
|
||||||
long diff = System.currentTimeMillis() - ping.lastModified();
|
long diff = System.currentTimeMillis() - ping.lastModified();
|
||||||
if (diff < 2 * 60 * 1000) {
|
if (diff < 60 * 1000) {
|
||||||
logger.info("router.ping exists and is less than 2 minutes old, I2P appears to be running already.");
|
logger.info("router.ping exists and is less than 1 minute old, I2P appears to be running already.");
|
||||||
|
logger.info("If I2P is not running, wait 60 seconds and try again.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
return false;
|
||||||
InetAddress localhost = InetAddress.getLocalHost();
|
|
||||||
Socket s = new Socket(localhost, 7657);
|
|
||||||
s.close();
|
|
||||||
return true;
|
|
||||||
} catch (IOException e) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Runnable REGISTER_UPP = () -> {
|
private static final Runnable REGISTER_UPP = () -> {
|
||||||
|
@@ -212,10 +212,6 @@ Applications:
|
|||||||
Copyright (c) 2006, Matthew Estes
|
Copyright (c) 2006, Matthew Estes
|
||||||
See licenses/LICENSE-BlockFile.txt
|
See licenses/LICENSE-BlockFile.txt
|
||||||
|
|
||||||
BOB (BOB.jar):
|
|
||||||
Copyright (C) sponge
|
|
||||||
See licenses/COPYING-BOB.txt
|
|
||||||
|
|
||||||
Desktopgui (desktopgui.jar):
|
Desktopgui (desktopgui.jar):
|
||||||
Copyright (c) Mathias De Maré
|
Copyright (c) Mathias De Maré
|
||||||
See licenses/LICENSE-DesktopGUI.txt
|
See licenses/LICENSE-DesktopGUI.txt
|
||||||
@@ -339,9 +335,9 @@ Applications:
|
|||||||
Systray (systray.jar):
|
Systray (systray.jar):
|
||||||
Public domain.
|
Public domain.
|
||||||
|
|
||||||
Tomcat 9.0.54 (jasper-runtime.jar):
|
Tomcat 9.0.62 (jasper-runtime.jar):
|
||||||
(not included in most distribution packages)
|
(not included in most distribution packages)
|
||||||
Copyright 1999-2021 The Apache Software Foundation
|
Copyright 1999-2022 The Apache Software Foundation
|
||||||
See licenses/LICENSE-Apache2.0.txt
|
See licenses/LICENSE-Apache2.0.txt
|
||||||
See licenses/NOTICE-Tomcat.txt
|
See licenses/NOTICE-Tomcat.txt
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
Apache Tomcat
|
Apache Tomcat
|
||||||
Copyright 1999-2021 The Apache Software Foundation
|
Copyright 1999-2022 The Apache Software Foundation
|
||||||
|
|
||||||
This product includes software developed at
|
This product includes software developed at
|
||||||
The Apache Software Foundation (https://www.apache.org/).
|
The Apache Software Foundation (https://www.apache.org/).
|
||||||
|
@@ -7,8 +7,16 @@ app-profile.tgz: app-profile
|
|||||||
install -m755 src/unix/i2pconfig.sh build/app-profile/i2pconfig.sh
|
install -m755 src/unix/i2pconfig.sh build/app-profile/i2pconfig.sh
|
||||||
cd build && tar -czf app-profile-$(PROFILE_VERSION).tgz app-profile && cp app-profile-$(PROFILE_VERSION).tgz ../
|
cd build && tar -czf app-profile-$(PROFILE_VERSION).tgz app-profile && cp app-profile-$(PROFILE_VERSION).tgz ../
|
||||||
|
|
||||||
|
src/app-profile/user.js:
|
||||||
|
wget -O src/app-profile/user.js "https://github.com/arkenfox/user.js/raw/master/user.js"
|
||||||
|
sed -i 's|user_pref("extensions.autoDisableScopes", 15);|user_pref("extensions.autoDisableScopes", 0);|g src/app-profile/user.js
|
||||||
|
sed -i 's|user_pref("extensions.enabledScopes", 5);|user_pref("extensions.enabledScopes", 1);|g' src/app-profile/user.js
|
||||||
|
sed -i 's|user_pref("dom.security.https_only_mode", true);|user_pref("dom.security.https_only_mode", false);|g' src/app-profile/user.js
|
||||||
|
|
||||||
|
|
||||||
build/app-profile/user.js: build/app-profile src/app-profile/user.js
|
build/app-profile/user.js: build/app-profile src/app-profile/user.js
|
||||||
cp src/app-profile/user.js build/app-profile/user.js
|
cp src/app-profile/user.js build/app-profile/user.js
|
||||||
|
cp src/app-profile/user-overrides.js build/app-profile/user-overrides.js
|
||||||
|
|
||||||
build/app-profile/prefs.js: build/app-profile src/app-profile/prefs.js
|
build/app-profile/prefs.js: build/app-profile src/app-profile/prefs.js
|
||||||
cp src/app-profile/prefs.js build/app-profile/prefs.js
|
cp src/app-profile/prefs.js build/app-profile/prefs.js
|
||||||
|
@@ -8,25 +8,25 @@ build/win:
|
|||||||
mkdir -p build/win/
|
mkdir -p build/win/
|
||||||
|
|
||||||
build/win/common.bat:
|
build/win/common.bat:
|
||||||
cp src/win/common.bat build/win/common.bat
|
#cp src/win/common.bat build/win/common.bat
|
||||||
|
|
||||||
build/win/copy-config-profile.bat:
|
build/win/copy-config-profile.bat:
|
||||||
cp src/win/copy-config-profile.bat build/win/copy-config-profile.bat
|
#cp src/win/copy-config-profile.bat build/win/copy-config-profile.bat
|
||||||
|
|
||||||
build/win/copy-profile.bat:
|
build/win/copy-profile.bat:
|
||||||
cp src/win/launchi2p.bat build/win/copy-profile.bat
|
#cp src/win/launchi2p.bat build/win/copy-profile.bat
|
||||||
|
|
||||||
build/win/launchi2p.bat:
|
build/win/launchi2p.bat:
|
||||||
cp src/win/launchi2p.bat build/win/launchi2p.bat
|
#cp src/win/launchi2p.bat build/win/launchi2p.bat
|
||||||
|
|
||||||
build/win/i2pbrowser.bat: build/win/common.bat build/win/copy-config-profile.bat build/win/copy-profile.bat build/win/launchi2p.bat
|
build/win/i2pbrowser.bat: build/win/common.bat build/win/copy-config-profile.bat build/win/copy-profile.bat build/win/launchi2p.bat
|
||||||
cp src/win/i2pbrowser.bat build/win/i2pbrowser.bat
|
#cp src/win/i2pbrowser.bat build/win/i2pbrowser.bat
|
||||||
|
|
||||||
build/win/i2pconfig.bat: build/win/common.bat build/win/copy-config-profile.bat build/win/copy-profile.bat build/win/launchi2p.bat
|
build/win/i2pconfig.bat: build/win/common.bat build/win/copy-config-profile.bat build/win/copy-profile.bat build/win/launchi2p.bat
|
||||||
cp src/win/i2pconfig.bat build/win/i2pconfig.bat
|
#cp src/win/i2pconfig.bat build/win/i2pconfig.bat
|
||||||
|
|
||||||
build/win/i2pbrowser-private.bat: build/win/common.bat build/win/copy-config-profile.bat build/win/copy-profile.bat build/win/launchi2p.bat
|
build/win/i2pbrowser-private.bat: build/win/common.bat build/win/copy-config-profile.bat build/win/copy-profile.bat build/win/launchi2p.bat
|
||||||
cp src/win/i2pbrowser-private.bat build/win/i2pbrowser-private.bat
|
#cp src/win/i2pbrowser-private.bat build/win/i2pbrowser-private.bat
|
||||||
|
|
||||||
launchers: build/win build/win/i2pbrowser.bat build/win/i2pbrowser-private.bat build/win/i2pconfig.bat
|
launchers: build/win build/win/i2pbrowser.bat build/win/i2pbrowser-private.bat build/win/i2pconfig.bat
|
||||||
|
|
||||||
|
@@ -8,8 +8,15 @@ profile.tgz: .version profile
|
|||||||
install -m755 src/unix/i2pbrowser.sh build/profile/i2pbrowser.sh
|
install -m755 src/unix/i2pbrowser.sh build/profile/i2pbrowser.sh
|
||||||
cd build && tar -czf profile-$(PROFILE_VERSION).tgz profile && cp profile-$(PROFILE_VERSION).tgz ../
|
cd build && tar -czf profile-$(PROFILE_VERSION).tgz profile && cp profile-$(PROFILE_VERSION).tgz ../
|
||||||
|
|
||||||
|
src/profile/user.js:
|
||||||
|
wget -O src/profile/user.js "https://github.com/arkenfox/user.js/raw/master/user.js"
|
||||||
|
sed -i 's|user_pref("extensions.autoDisableScopes", 15);|user_pref("extensions.autoDisableScopes", 0);|g src/profile/user.js
|
||||||
|
sed -i 's|user_pref("extensions.enabledScopes", 5);|user_pref("extensions.enabledScopes", 1);|g' src/profile/user.js
|
||||||
|
sed -i 's|user_pref("dom.security.https_only_mode", true);|user_pref("dom.security.https_only_mode", false);|g' src/profile/user.js
|
||||||
|
|
||||||
build/profile/user.js: build/profile src/profile/user.js
|
build/profile/user.js: build/profile src/profile/user.js
|
||||||
cp src/profile/user.js build/profile/user.js
|
cp src/profile/user.js build/profile/user.js
|
||||||
|
cp src/profile/user-overrides.js build/profile/user-overrides.js
|
||||||
|
|
||||||
build/profile/prefs.js: build/profile src/profile/prefs.js
|
build/profile/prefs.js: build/profile src/profile/prefs.js
|
||||||
cp src/profile/prefs.js build/profile/prefs.js
|
cp src/profile/prefs.js build/profile/prefs.js
|
||||||
|
@@ -1,3 +1,5 @@
|
|||||||
router.updateURL=http://ekm3fu6fr5pxudhwjmdiea5dovc3jdi66hjgop4c7z7dfaw7spca.b32.i2p/i2pwinupdate.su3
|
router.updateURL=http://ekm3fu6fr5pxudhwjmdiea5dovc3jdi66hjgop4c7z7dfaw7spca.b32.i2p/i2pwinupdate.su3
|
||||||
router.newsURL=http://dn3tvalnjz432qkqsvpfdqrwpqkw3ye4n4i2uyfr4jexvo3sp5ka.b32.i2p/news/win/beta/news.su3
|
router.newsURL=http://dn3tvalnjz432qkqsvpfdqrwpqkw3ye4n4i2uyfr4jexvo3sp5ka.b32.i2p/news/win/beta/news.su3
|
||||||
router.backupNewsURL=http://tc73n4kivdroccekirco7rhgxdg5f3cjvbaapabupeyzrqwv5guq.b32.i2p/win/beta/news.su3
|
router.backupNewsURL=http://tc73n4kivdroccekirco7rhgxdg5f3cjvbaapabupeyzrqwv5guq.b32.i2p/win/beta/news.su3
|
||||||
|
routerconsole.browser=I2P.exe
|
||||||
|
router.disableTunnelTesting=false
|
10
showhider.css
Normal file
10
showhider.css
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
/* edgar showhider CSS file */
|
||||||
|
#show {display:none; }
|
||||||
|
#hide {display:block; }
|
||||||
|
#show:target {display: block; }
|
||||||
|
#hide:target {display: none; }
|
||||||
|
|
||||||
|
#shownav {display:none; }
|
||||||
|
#hidenav {display:block; }
|
||||||
|
#shownav:target {display: block; }
|
||||||
|
#hidenav:target {display: none; }
|
2
sign.sh
2
sign.sh
@@ -40,6 +40,6 @@ if [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
|||||||
linuxsign I2P-Profile-Installer-$I2P_VERSION.exe
|
linuxsign I2P-Profile-Installer-$I2P_VERSION.exe
|
||||||
cp "I2P-Profile-Installer-$I2P_VERSION.exe" "I2P-Profile-Installer-$I2P_VERSION-signed.exe"
|
cp "I2P-Profile-Installer-$I2P_VERSION.exe" "I2P-Profile-Installer-$I2P_VERSION-signed.exe"
|
||||||
else
|
else
|
||||||
signtool.exe sign "I2P-Profile-Installer-$I2P_VERSION.exe"
|
signtool.exe sign /a "I2P-Profile-Installer-$I2P_VERSION.exe"
|
||||||
cp "I2P-Profile-Installer-$I2P_VERSION.exe" "I2P-Profile-Installer-$I2P_VERSION-signed.exe"
|
cp "I2P-Profile-Installer-$I2P_VERSION.exe" "I2P-Profile-Installer-$I2P_VERSION-signed.exe"
|
||||||
fi
|
fi
|
||||||
|
@@ -60,4 +60,6 @@ user_pref("webgl.disable-fail-if-major-performance-caveat", true);
|
|||||||
user_pref("webgl.enable-webgl2", false);
|
user_pref("webgl.enable-webgl2", false);
|
||||||
user_pref("media.navigator.enabled", false);
|
user_pref("media.navigator.enabled", false);
|
||||||
user_pref("dom.w3c_touch_events.enabled", false);
|
user_pref("dom.w3c_touch_events.enabled", false);
|
||||||
user_pref("browser.display.use_system_colors", false);
|
user_pref("browser.display.use_system_colors", false);
|
||||||
|
user_pref("extensions.autoDisableScopes", 0);
|
||||||
|
user_pref("extensions.enabledScopes", 1);
|
229
src/app-profile/user-overrides.js
Normal file
229
src/app-profile/user-overrides.js
Normal file
@@ -0,0 +1,229 @@
|
|||||||
|
/*
|
||||||
|
Overrides#
|
||||||
|
for Extension Preferences# Tor Browser Bundle# Do not edit this file.##This file is modified from a file included in the Tor Browser Bundle.##Copyright 2017 The Tor Project.See LICENSE.tor#
|
||||||
|
for licensing information.
|
||||||
|
|
||||||
|
HTTPS Everywhere Preferences:
|
||||||
|
*/
|
||||||
|
user_pref("extensions.https_everywhere._observatory.popup_shown", true);
|
||||||
|
user_pref("extensions.https_everywhere.toolbar_hint_shown", true);
|
||||||
|
|
||||||
|
/*
|
||||||
|
NoScript Preferences: #In order to disable all scripts by
|
||||||
|
default, uncomment the following line...#user_pref("capability.policy.maonoscript.javascript.enabled", "noAccess");#
|
||||||
|
and comment out the following line
|
||||||
|
*/
|
||||||
|
user_pref("capability.policy.maonoscript.javascript.enabled", "allAccess");
|
||||||
|
user_pref("capability.policy.maonoscript.sites", "[System+Principal] about: about:tbupdate about:tor chrome: resource: blob: mediasource: moz-extension: moz-safe-about: about:neterror about:certerror about:feeds about:tabcrashed about:cache");
|
||||||
|
user_pref("noscript.default", "[System+Principal] about: about:tbupdate about:tor chrome: resource: blob: mediasource: moz-extension: moz-safe-about: about:neterror about:certerror about:feeds about:tabcrashed about:cache");
|
||||||
|
user_pref("noscript.mandatory", "[System+Principal] about: about:tbupdate about:tor chrome: resource: blob: mediasource: moz-extension: moz-safe-about: about:neterror about:certerror about:feeds about:tabcrashed about:cache");
|
||||||
|
user_pref("noscript.ABE.enabled", false);
|
||||||
|
user_pref("noscript.ABE.notify", false);
|
||||||
|
user_pref("noscript.ABE.wanIpAsLocal", false);
|
||||||
|
user_pref("noscript.confirmUnblock", false);
|
||||||
|
user_pref("noscript.contentBlocker", true);
|
||||||
|
user_pref("noscript.firstRunRedirection", false);
|
||||||
|
user_pref("noscript.global", true);
|
||||||
|
user_pref("noscript.gtemp", "");
|
||||||
|
user_pref("noscript.opacizeObject", 3);
|
||||||
|
user_pref("noscript.forbidWebGL", true);
|
||||||
|
user_pref("noscript.forbidFonts", true);
|
||||||
|
user_pref("noscript.options.tabSelectedIndexes", "5,0,0");
|
||||||
|
user_pref("noscript.policynames", "");
|
||||||
|
user_pref("noscript.secureCookies", true);
|
||||||
|
user_pref("noscript.showAllowPage", false);
|
||||||
|
user_pref("noscript.showBaseDomain", false);
|
||||||
|
user_pref("noscript.showDistrust", false);
|
||||||
|
user_pref("noscript.showRecentlyBlocked", false);
|
||||||
|
user_pref("noscript.showTemp", false);
|
||||||
|
user_pref("noscript.showTempToPerm", false);
|
||||||
|
user_pref("noscript.showUntrusted", false);
|
||||||
|
user_pref("noscript.STS.enabled", false);
|
||||||
|
user_pref("noscript.subscription.lastCheck", -142148139);
|
||||||
|
user_pref("noscript.temp", "");
|
||||||
|
user_pref("noscript.untrusted", "");
|
||||||
|
user_pref("noscript.forbidMedia", true);
|
||||||
|
user_pref("noscript.allowWhitelistUpdates", false);
|
||||||
|
user_pref("noscript.fixLinks", false);
|
||||||
|
// Now handled by plugins.click_to_play // Not in this one.
|
||||||
|
user_pref("noscript.forbidFlash", true);
|
||||||
|
user_pref("noscript.forbidSilverlight", true);
|
||||||
|
user_pref("noscript.forbidJava", true);
|
||||||
|
user_pref("noscript.forbidPlugins", true);
|
||||||
|
// Usability tweaks
|
||||||
|
user_pref("noscript.showPermanent", false);
|
||||||
|
user_pref("noscript.showTempAllowPage", true);
|
||||||
|
user_pref("noscript.showRevokeTemp", true);
|
||||||
|
user_pref("noscript.notify", false);
|
||||||
|
user_pref("noscript.autoReload", true);
|
||||||
|
user_pref("noscript.autoReload.allTabs", false);
|
||||||
|
user_pref("noscript.cascadePermissions", true);
|
||||||
|
user_pref("noscript.restrictSubdocScripting", true);
|
||||||
|
user_pref("noscript.showVolatilePrivatePermissionsToggle", false);
|
||||||
|
user_pref("noscript.volatilePrivatePermissions", true);
|
||||||
|
user_pref("noscript.clearClick", 0);
|
||||||
|
|
||||||
|
user_pref("intl.locale.matchOS", false);
|
||||||
|
|
||||||
|
user_pref("extensions.https_everywhere._observatory.enabled", false);
|
||||||
|
user_pref("extensions.https_everywhere.options.autoUpdateRulesets", false);
|
||||||
|
user_pref("extensions.https_everywhere.globalEnabled", false);
|
||||||
|
user_pref("extensions.https_everywhere._observatory.submit_during_tor", false);
|
||||||
|
user_pref("extensions.https_everywhere._observatory.submit_during_nontor", false);
|
||||||
|
user_pref("extensions.https_everywhere._observatory.use_custom_proxy", true);
|
||||||
|
user_pref("extensions.https_everywhere._observatory.proxy_host", "127.0.0.1");
|
||||||
|
user_pref("extensions.https_everywhere._observatory.proxy_port", 4444);
|
||||||
|
|
||||||
|
user_pref("extensions.torbutton.use_nontor_proxy", true);
|
||||||
|
|
||||||
|
//For socket conversion: in the future, I'll need to make TBB communicate with
|
||||||
|
//i2p over a unix socket. Fortunately, this is how you do that. It will be
|
||||||
|
//configurable in a similar way to the host:port configuration when that happens.
|
||||||
|
//user_pref("extensions.torlauncher.socks_port_use_ipc", );
|
||||||
|
//user_pref("extensions.torlauncher.socks_ipc_path", "");
|
||||||
|
|
||||||
|
// TODO: this is a Tor Browser specific setting which is ignored on Firefox. If
|
||||||
|
// I make it true, the SOCKS outproxy will have something to connect to. But I
|
||||||
|
// need to test more to find out if that's prudent.
|
||||||
|
user_pref("extensions.torlauncher.start_tor", false);
|
||||||
|
//user_pref("extensions.torlauncher.default_bridge_type", "");
|
||||||
|
user_pref("extensions.torlauncher.prompt_at_startup", false);
|
||||||
|
|
||||||
|
// Resist-fingerprinting and first-party isolation enable
|
||||||
|
|
||||||
|
user_pref("privacy.resistFingerprinting", true);
|
||||||
|
user_pref("privacy.firstparty.isolate", true);
|
||||||
|
|
||||||
|
// Use i2p http proxy for all connections and set homepage to safe local form.
|
||||||
|
|
||||||
|
// DON'T allow access to the admin panel from the profile we browse i2p with.
|
||||||
|
user_pref("network.proxy.no_proxies_on", "127.0.0.1:7657,localhost:7657,127.0.0.1:7662,localhost:7662,127.0.0.1:7669,localhost:7669");
|
||||||
|
user_pref("network.proxy.type", 1);
|
||||||
|
user_pref("network.proxy.http", "127.0.0.1");
|
||||||
|
user_pref("network.proxy.http_port", 4444);
|
||||||
|
user_pref("network.proxy.ssl", "127.0.0.1");
|
||||||
|
user_pref("network.proxy.ssl_port", 4444);
|
||||||
|
user_pref("network.proxy.ftp", "127.0.0.1");
|
||||||
|
user_pref("network.proxy.ftp_port", 4444);
|
||||||
|
user_pref("network.proxy.socks", "127.0.0.1");
|
||||||
|
user_pref("network.proxy.socks_port", 4444);
|
||||||
|
user_pref("network.proxy.share_proxy_settings", true);
|
||||||
|
user_pref("browser.startup.homepage", "http://127.0.0.1:7657/home");
|
||||||
|
|
||||||
|
// Privacy-harden and disable irrelevant features.
|
||||||
|
user_pref("app.normandy.api_url", "");
|
||||||
|
user_pref("app.normandy.enabled", false);
|
||||||
|
user_pref("app.update.auto", false);
|
||||||
|
user_pref("app.update.enabled", false);
|
||||||
|
user_pref("beacon.enabled", false);
|
||||||
|
user_pref("browser.aboutHomeSnippets.updateUrl", "");
|
||||||
|
user_pref("browser.cache.disk_cache_ssl", false);
|
||||||
|
user_pref("browser.cache.disk.enable", false);
|
||||||
|
user_pref("browser.cache.offline.enable", false);
|
||||||
|
user_pref("browser.disableResetPrompt", true);
|
||||||
|
user_pref("browser.display.use_document_fonts", 0);
|
||||||
|
user_pref("browser.fixup.alternate.enabled", false);
|
||||||
|
user_pref("browser.formfill.enable", false);
|
||||||
|
user_pref("browser.library.activity-stream.enabled", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.disableSnippets", true);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.enabled", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.feeds.section.highlights", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.feeds.snippets", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.feeds.topsites", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.prerender", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.showSearch", false);
|
||||||
|
user_pref("browser.newtabpage.enhanced", false);
|
||||||
|
user_pref("browser.newtabpage.introShown", true);
|
||||||
|
user_pref("browser.newtab.preload", false);
|
||||||
|
user_pref("browser.onboarding.enabled", false);
|
||||||
|
user_pref("browser.pagethumbnails.capturing_disabled", true);
|
||||||
|
user_pref("browser.safebrowsing.appRepURL", "");
|
||||||
|
user_pref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||||
|
user_pref("browser.safebrowsing.downloads.enabled", false);
|
||||||
|
user_pref("browser.safebrowsing.downloads.remote.enabled", false);
|
||||||
|
user_pref("browser.safebrowsing.downloads.remote.url", "");
|
||||||
|
user_pref("browser.safebrowsing.enabled", false);
|
||||||
|
user_pref("browser.safebrowsing.malware.enabled", false);
|
||||||
|
user_pref("browser.safebrowsing.phishing.enabled", false);
|
||||||
|
user_pref("browser.search.geoip.timeout", 1);
|
||||||
|
user_pref("browser.search.suggest.enabled", false);
|
||||||
|
user_pref("browser.selfsupport.url", "");
|
||||||
|
user_pref("browser.send_pings", false);
|
||||||
|
user_pref("browser.shell.checkDefaultBrowser", false);
|
||||||
|
user_pref("browser.startup.homepage_override.mstone", "ignore");
|
||||||
|
user_pref("browser.startup.page", 0);
|
||||||
|
user_pref("browser.toolbarbuttons.introduced.pocket-button", true);
|
||||||
|
user_pref("browser.urlbar.speculativeConnect.enabled", false);
|
||||||
|
user_pref("browser.urlbar.trimURLs", false);
|
||||||
|
user_pref("datareporting.healthreport.uploadEnabled", false);
|
||||||
|
user_pref("datareporting.policy.dataSubmissionEnabled", false);
|
||||||
|
user_pref("dom.battery.enabled", false);
|
||||||
|
user_pref("dom.enable_performance", false);
|
||||||
|
user_pref("dom.enable_performance_navigation_timing", false);
|
||||||
|
user_pref("dom.enable_resource_timing", false);
|
||||||
|
user_pref("dom.event.clipboardevents.enabled", false);
|
||||||
|
user_pref("dom.gamepad.enabled", false);
|
||||||
|
user_pref("dom.indexedDB.enabled", false);
|
||||||
|
user_pref("dom.min_timeout_value", 400);
|
||||||
|
user_pref("dom.push.connection.enabled", false);
|
||||||
|
user_pref("dom.push.enabled", false);
|
||||||
|
user_pref("dom.serviceWorkers.enabled", false);
|
||||||
|
user_pref("dom.serviceWorkers.interception.enabled", false);
|
||||||
|
user_pref("dom.storage.enabled", false);
|
||||||
|
user_pref("dom.webaudio.enabled", false);
|
||||||
|
user_pref("extensions.autoDisableScopes", 0);
|
||||||
|
user_pref("extensions.enabledScopes", 1);
|
||||||
|
user_pref("extensions.getAddons.cache.enabled", false);
|
||||||
|
user_pref("extensions.getAddons.showPane", false);
|
||||||
|
user_pref("extensions.pocket.enabled", false);
|
||||||
|
user_pref("extensions.screenshots.disabled", true);
|
||||||
|
user_pref("extensions.webservice.discoverURL", "");
|
||||||
|
user_pref("geo.enabled", false);
|
||||||
|
user_pref("geo.wifi.uri", "");
|
||||||
|
user_pref("gfx.downloadable_fonts.disable_cache", true);
|
||||||
|
user_pref("javascript.options.shared_memory", false);
|
||||||
|
user_pref("layout.css.visited_links_enabled", false);
|
||||||
|
user_pref("media.autoplay.enabled", false);
|
||||||
|
user_pref("media.cache_size", 0);
|
||||||
|
user_pref("media.navigator.enabled", false);
|
||||||
|
user_pref("media.peerconnection.ice.no_host", true);
|
||||||
|
user_pref("media.video_stats.enabled", false);
|
||||||
|
user_pref("captivedetect.canonicalURL", "");
|
||||||
|
user_pref("network.captive-portal-service.enabled", false);
|
||||||
|
user_pref("network.cookie.cookieBehavior", 1);
|
||||||
|
user_pref("network.cookie.lifetimePolicy", 2);
|
||||||
|
user_pref("network.dns.disablePrefetch", true);
|
||||||
|
user_pref("network.http.referer.spoofSource", true);
|
||||||
|
user_pref("network.http.referer.trimmingPolicy", 2);
|
||||||
|
user_pref("network.http.referer.XOriginPolicy", 2);
|
||||||
|
user_pref("network.prefetch-next", false);
|
||||||
|
user_pref("privacy.donottrackheader.enabled", true);
|
||||||
|
user_pref("privacy.donottrackheader.value", 1);
|
||||||
|
user_pref("toolkit.telemetry.archive.enabled", false);
|
||||||
|
user_pref("toolkit.telemetry.coverage.opt-out", true);
|
||||||
|
user_pref("toolkit.telemetry.enabled", false);
|
||||||
|
user_pref("toolkit.telemetry.server", "");
|
||||||
|
user_pref("toolkit.telemetry.unified", false);
|
||||||
|
user_pref("webgl.disabled", true);
|
||||||
|
user_pref("browser.chrome.errorReporter.infoURL", "");
|
||||||
|
user_pref("breakpad.reportURL", "");
|
||||||
|
//user_pref("browser.newtabpage.activity-stream.default.sites", "");
|
||||||
|
user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.showSponsored", false);
|
||||||
|
user_pref("services.sync.prefs.sync.browser.newtabpage.activity-stream.showSponsored", false);
|
||||||
|
user_pref("browser.newtabpage.enabled", true);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.default.sites", "http://planet.i2p/,http://legwork.i2p/,http://i2pwiki.i2p/,http://i2pforums.i2p/,http://zzz.i2p/");
|
||||||
|
user_pref("dom.security.https_only_mode", false);
|
||||||
|
user_pref("keyword.enabled", false);
|
||||||
|
user_pref("extensions.allowPrivateBrowsingByDefault", true);
|
||||||
|
user_pref("extensions.PrivateBrowsing.notification", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.feeds.topsites", true);
|
||||||
|
user_pref("ui.use_standins_for_native_colors", true);
|
||||||
|
user_pref("webgl.disable-extensions", true);
|
||||||
|
user_pref("webgl.min_capability_mode", true);
|
||||||
|
user_pref("webgl.disable-fail-if-major-performance-caveat", true);
|
||||||
|
user_pref("webgl.enable-webgl2", false);
|
||||||
|
user_pref("dom.w3c_touch_events.enabled", false);
|
||||||
|
user_pref("browser.privatebrowsing.autostart", false);
|
||||||
|
user_pref("browser.display.use_system_colors", false);
|
1353
src/app-profile/user.js
Normal file
1353
src/app-profile/user.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
|||||||
1.8.1
|
1.9.0
|
||||||
|
@@ -14,23 +14,13 @@ UniCode true
|
|||||||
!include i2pbrowser-jpackage.nsi
|
!include i2pbrowser-jpackage.nsi
|
||||||
!include FindProcess.nsh
|
!include FindProcess.nsh
|
||||||
|
|
||||||
var FFINSTEXE
|
|
||||||
var FFNONTORINSTEXE
|
|
||||||
var I2PINSTEXE
|
var I2PINSTEXE
|
||||||
Var PARENTOPTIONS
|
|
||||||
|
|
||||||
SetOverwrite on
|
SetOverwrite on
|
||||||
!define FFINSTEXE
|
|
||||||
!define FFNONTORINSTEXE
|
|
||||||
!define FFINSTEXE32 "$PROGRAMFILES32\Mozilla Firefox\"
|
|
||||||
!define FFINSTEXE64 "$PROGRAMFILES64\Mozilla Firefox\"
|
|
||||||
|
|
||||||
!define I2PINSTEXE
|
!define I2PINSTEXE
|
||||||
!define I2PINSTEXE32 "$PROGRAMFILES32\i2p"
|
|
||||||
!define I2PINSTEXE64 "$PROGRAMFILES64\i2p"
|
|
||||||
!define I2PINSTEXE_USERMODE "$LOCALAPPDATA\i2p"
|
!define I2PINSTEXE_USERMODE "$LOCALAPPDATA\i2p"
|
||||||
|
|
||||||
|
|
||||||
!define RAM_NEEDED_FOR_64BIT 0x80000000
|
!define RAM_NEEDED_FOR_64BIT 0x80000000
|
||||||
|
|
||||||
InstallDir "$PROGRAMFILES64\${COMPANYNAME}\${APPNAME}"
|
InstallDir "$PROGRAMFILES64\${COMPANYNAME}\${APPNAME}"
|
||||||
@@ -111,15 +101,15 @@ RequestExecutionLevel user
|
|||||||
!insertmacro MUI_LANGUAGE "Basque"
|
!insertmacro MUI_LANGUAGE "Basque"
|
||||||
!insertmacro MUI_LANGUAGE "Welsh"
|
!insertmacro MUI_LANGUAGE "Welsh"
|
||||||
# Commented out languages below do not compile on NSIS v2
|
# Commented out languages below do not compile on NSIS v2
|
||||||
# !insertmacro MUI_LANGUAGE "Asturian"
|
!insertmacro MUI_LANGUAGE "Asturian"
|
||||||
# !insertmacro MUI_LANGUAGE "Pashto"
|
!insertmacro MUI_LANGUAGE "Pashto"
|
||||||
# !insertmacro MUI_LANGUAGE "ScotsGaelic"
|
!insertmacro MUI_LANGUAGE "ScotsGaelic"
|
||||||
# !insertmacro MUI_LANGUAGE "Georgian"
|
!insertmacro MUI_LANGUAGE "Georgian"
|
||||||
# !insertmacro MUI_LANGUAGE "Vietnamese"
|
!insertmacro MUI_LANGUAGE "Vietnamese"
|
||||||
# !insertmacro MUI_LANGUAGE "Armenian"
|
!insertmacro MUI_LANGUAGE "Armenian"
|
||||||
# !insertmacro MUI_LANGUAGE "Corsican"
|
!insertmacro MUI_LANGUAGE "Corsican"
|
||||||
# !insertmacro MUI_LANGUAGE "Tatar"
|
!insertmacro MUI_LANGUAGE "Tatar"
|
||||||
# !insertmacro MUI_LANGUAGE "Hindi"
|
!insertmacro MUI_LANGUAGE "Hindi"
|
||||||
### END LANGUAGES
|
### END LANGUAGES
|
||||||
|
|
||||||
# small speed optimization
|
# small speed optimization
|
||||||
@@ -130,13 +120,6 @@ RequestExecutionLevel user
|
|||||||
PageEx license
|
PageEx license
|
||||||
licensetext "${LICENSE_TITLE}"
|
licensetext "${LICENSE_TITLE}"
|
||||||
licensedata "licenses\LICENSE.txt"
|
licensedata "licenses\LICENSE.txt"
|
||||||
#PageCallbacks elevatorCallback
|
|
||||||
PageExEnd
|
|
||||||
PageEx directory
|
|
||||||
dirtext "${FIREFOX_MESSAGE}"
|
|
||||||
dirvar $FFINSTEXE
|
|
||||||
dirvar $FFNONTORINSTEXE
|
|
||||||
PageCallbacks firefoxDetect
|
|
||||||
PageExEnd
|
PageExEnd
|
||||||
PageEx directory
|
PageEx directory
|
||||||
dirtext "${I2P_MESSAGE}"
|
dirtext "${I2P_MESSAGE}"
|
||||||
@@ -145,75 +128,47 @@ PageEx directory
|
|||||||
PageExEnd
|
PageExEnd
|
||||||
Page instfiles
|
Page instfiles
|
||||||
|
|
||||||
!include i2pbrowser-mozcompat.nsi
|
#!include i2pbrowser-mozcompat.nsi
|
||||||
|
|
||||||
Function .onInit
|
Function .onInit
|
||||||
StrCpy $I2PINSTEXE "${I2PINSTEXE64}"
|
StrCpy $I2PINSTEXE "${I2PINSTEXE_USERMODE}"
|
||||||
UserInfo::GetAccountType
|
UserInfo::GetAccountType
|
||||||
pop $0
|
pop $0
|
||||||
${If} $0 != "admin"
|
${If} $0 != "admin"
|
||||||
StrCpy $INSTDIR "$LOCALAPPDATA\${COMPANYNAME}\${APPNAME}"
|
StrCpy $INSTDIR "$LOCALAPPDATA\${COMPANYNAME}\${APPNAME}"
|
||||||
StrCpy $I2PINSTEXE "${I2PINSTEXE_USERMODE}"
|
StrCpy $I2PINSTEXE "${I2PINSTEXE_USERMODE}"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
${If} ${FileExists} "${I2PINSTEXE32}\i2p.exe"
|
|
||||||
StrCpy $I2PINSTEXE "${I2PINSTEXE32}"
|
|
||||||
${EndIf}
|
|
||||||
${If} ${FileExists} "${I2PINSTEXE64}\i2p.exe"
|
|
||||||
StrCpy $I2PINSTEXE "${I2PINSTEXE64}"
|
|
||||||
${EndIf}
|
|
||||||
!insertmacro MUI_LANGDLL_DISPLAY
|
!insertmacro MUI_LANGDLL_DISPLAY
|
||||||
Call ShouldInstall64Bit
|
#Call ShouldInstall64Bit
|
||||||
${If} $0 == 1
|
|
||||||
${If} ${FileExists} "${FFINSTEXE64}\firefox.exe"
|
|
||||||
StrCpy $FFINSTEXE "${FFINSTEXE64}"
|
|
||||||
StrCpy $FFNONTORINSTEXE "${FFINSTEXE64}"
|
|
||||||
${ElseIf} ${FileExists} "${FFINSTEXE32}\firefox.exe"
|
|
||||||
StrCpy $FFINSTEXE "${FFINSTEXE32}"
|
|
||||||
StrCpy $FFNONTORINSTEXE "${FFINSTEXE32}"
|
|
||||||
${EndIf}
|
|
||||||
${If} ${FileExists} "$PROFILE\OneDrive\Desktop\Tor Browser\Browser\firefox.exe"
|
|
||||||
StrCpy $FFINSTEXE "$PROFILE\OneDrive\Desktop\Tor Browser\Browser\"
|
|
||||||
${EndIf}
|
|
||||||
${If} ${FileExists} "$PROFILE\Desktop\Tor Browser\Browser\firefox.exe"
|
|
||||||
StrCpy $FFINSTEXE "$PROFILE\Desktop\Tor Browser\Browser\"
|
|
||||||
${EndIf}
|
|
||||||
${Else}
|
|
||||||
${If} ${FileExists} "${FFINSTEXE32}\firefox.exe"
|
|
||||||
StrCpy $FFINSTEXE "${FFINSTEXE32}"
|
|
||||||
StrCpy $FFNONTORINSTEXE "${FFINSTEXE32}"
|
|
||||||
${EndIf}
|
|
||||||
${If} ${FileExists} "$PROFILE\OneDrive\Desktop\Tor Browser\Browser\firefox.exe"
|
|
||||||
StrCpy $FFINSTEXE "$PROFILE\OneDrive\Desktop\Tor Browser\Browser\"
|
|
||||||
${EndIf}
|
|
||||||
${If} ${FileExists} "$PROFILE\Desktop\Tor Browser\Browser\firefox.exe"
|
|
||||||
StrCpy $FFINSTEXE "$PROFILE\Desktop\Tor Browser\Browser\"
|
|
||||||
${EndIf}
|
|
||||||
${EndIf}
|
|
||||||
# look for user installs
|
# look for user installs
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function firefoxDetect
|
|
||||||
${If} ${FileExists} "$FFINSTEXE\firefox.exe"
|
|
||||||
Abort directory
|
|
||||||
${EndIf}
|
|
||||||
FunctionEnd
|
|
||||||
|
|
||||||
Function routerDetect
|
Function routerDetect
|
||||||
${If} ${FileExists} "$I2PINSTEXE"
|
createDirectory $I2PINSTEXE
|
||||||
Abort directory
|
SetOutPath $I2PINSTEXE
|
||||||
${Else}
|
File /a /r "I2P\"
|
||||||
createDirectory $I2PINSTEXE
|
File /nonfatal /a /r "I2P\I2P.exe"
|
||||||
SetOutPath $I2PINSTEXE
|
File "I2P\config\jpackaged"
|
||||||
File /nonfatal /a /r "I2P\"
|
|
||||||
File /nonfatal /a /r "I2P\I2P.exe"
|
|
||||||
File /nonfatal "I2P\config\jpackaged"
|
|
||||||
|
|
||||||
createDirectory "$I2PINSTEXE\"
|
createDirectory "$I2PINSTEXE\"
|
||||||
SetOutPath "$I2PINSTEXE\"
|
SetOutPath "$I2PINSTEXE\"
|
||||||
File /nonfatal /a /r "I2P/config/*"
|
IfFileExists $I2PINSTEXE\router.config +2 0
|
||||||
|
File /a /r "I2P/config/router.config"
|
||||||
|
IfFileExists $I2PINSTEXE\clients.config +2 0
|
||||||
|
File /a /r "I2P/config/clients.config"
|
||||||
|
IfFileExists $I2PINSTEXE\wrapper.config +2 0
|
||||||
|
File /a /r "I2P/config/wrapper.config"
|
||||||
|
IfFileExists $I2PINSTEXE\hosts.txt +2 0
|
||||||
|
File /a /r "I2P/config/hosts.txt"
|
||||||
|
IfFileExists $I2PINSTEXE\eepsite +2 0
|
||||||
|
File /a /r "I2P/config/eepsite"
|
||||||
|
IfFileExists $I2PINSTEXE\webapps +2 0
|
||||||
|
File /a /r "I2P/config/webapps"
|
||||||
|
File /a /r "I2P/config/certificates"
|
||||||
|
File /a /r "I2P/config/geoip"
|
||||||
|
File /a /r "I2P/config/i2ptunnel.config"
|
||||||
|
|
||||||
Abort directory
|
Abort directory
|
||||||
${EndIf}
|
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function installerFunction
|
Function installerFunction
|
||||||
@@ -237,33 +192,19 @@ ${If} ${Silent}
|
|||||||
${If} ${Silent}
|
${If} ${Silent}
|
||||||
ReadEnvStr $0 OLD_I2P_VERSION
|
ReadEnvStr $0 OLD_I2P_VERSION
|
||||||
${If} $0 < ${I2P_VERSION}
|
${If} $0 < ${I2P_VERSION}
|
||||||
rmDir /r $I2PINSTEXE/app
|
call routerDetect
|
||||||
rmDir /r $I2PINSTEXE/runtime
|
|
||||||
File /nonfatal /a /r "I2P\"
|
|
||||||
File /nonfatal "I2P\config\jpackaged"
|
|
||||||
|
|
||||||
createDirectory "$I2PINSTEXE\"
|
|
||||||
SetOutPath "$I2PINSTEXE\"
|
|
||||||
File /nonfatal /a /r "I2P/config/*"
|
|
||||||
|
|
||||||
${EndIf}
|
${EndIf}
|
||||||
${Else}
|
${Else}
|
||||||
rmDir /r $I2PINSTEXE/app
|
call routerDetect
|
||||||
rmDir /r $I2PINSTEXE/runtime
|
|
||||||
File /nonfatal /a /r "I2P\"
|
|
||||||
File /nonfatal "I2P\config\jpackaged"
|
|
||||||
|
|
||||||
createDirectory "$I2PINSTEXE\"
|
|
||||||
SetOutPath "$I2PINSTEXE\"
|
|
||||||
File /nonfatal /a /r "I2P/config/*"
|
|
||||||
|
|
||||||
${EndIf}
|
${EndIf}
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
# Install the launcher scripts
|
# Install the launcher scripts
|
||||||
createDirectory "$INSTDIR"
|
createDirectory "$INSTDIR"
|
||||||
SetOutPath "$INSTDIR"
|
#SetOutPath "$INSTDIR"
|
||||||
File "win/*"
|
#File "win/*"
|
||||||
|
|
||||||
# Install the licenses
|
# Install the licenses
|
||||||
createDirectory "$INSTDIR\licenses"
|
createDirectory "$INSTDIR\licenses"
|
||||||
@@ -280,28 +221,16 @@ ${If} ${Silent}
|
|||||||
SetOutPath "$INSTDIR\firefox.profile.config.i2p"
|
SetOutPath "$INSTDIR\firefox.profile.config.i2p"
|
||||||
File /a /r "app-profile/*"
|
File /a /r "app-profile/*"
|
||||||
|
|
||||||
SetOutPath "$INSTDIR"
|
SetOutPath "$I2PINSTEXE"
|
||||||
createDirectory "$SMPROGRAMS\${APPNAME}"
|
createDirectory "$SMPROGRAMS\${APPNAME}"
|
||||||
CreateShortCut "$SMPROGRAMS\${APPNAME}\Browse I2P.lnk" "C:\Windows\system32\cmd.exe" "/c $\"$INSTDIR\i2pbrowser.bat$\" ${CONSOLE_URL}" "$INSTDIR\ui2pbrowser_icon.ico"
|
CreateShortCut "$SMPROGRAMS\${APPNAME}\Browse I2P.lnk" "$I2PINSTEXE\I2P.exe" "" "$INSTDIR\ui2pbrowser_icon.ico"
|
||||||
CreateShortCut "$SMPROGRAMS\${APPNAME}\Browse I2P - Temporary Identity.lnk" "C:\Windows\system32\cmd.exe" "/c $\"$INSTDIR\i2pbrowser-private.bat$\"" "$INSTDIR\ui2pbrowser_icon.ico"
|
CreateShortCut "$SMPROGRAMS\${APPNAME}\Browse I2P - Temporary Identity.lnk" "$I2PINSTEXE\I2P.exe -private" "" "$INSTDIR\ui2pbrowser_icon.ico"
|
||||||
; CreateShortCut "$SMPROGRAMS\${APPNAME}\I2P Applications.lnk" "C:\Windows\system32\cmd.exe" "/c $\"$INSTDIR\i2pconfig.bat$\"" "$INSTDIR\ui2pbrowser_icon.ico"
|
; CreateShortCut "$SMPROGRAMS\${APPNAME}\I2P Applications.lnk" "C:\Windows\system32\cmd.exe" "/c $\"$INSTDIR\i2pconfig.bat$\"" "$INSTDIR\ui2pbrowser_icon.ico"
|
||||||
|
|
||||||
CreateShortCut "$DESKTOP\Browse I2P.lnk" "C:\Windows\system32\cmd.exe" "/c $\"$INSTDIR\i2pbrowser.bat$\" ${CONSOLE_URL}" "$INSTDIR\ui2pbrowser_icon.ico"
|
CreateShortCut "$DESKTOP\Browse I2P.lnk" "$I2PINSTEXE\I2P.exe" "" "$INSTDIR\ui2pbrowser_icon.ico"
|
||||||
CreateShortCut "$DESKTOP\Browse I2P - Temporary Identity.lnk" "C:\Windows\system32\cmd.exe" "/c $\"$INSTDIR\i2pbrowser-private.bat$\"" "$INSTDIR\ui2pbrowser_icon.ico"
|
CreateShortCut "$DESKTOP\Browse I2P - Temporary Identity.lnk" "$I2PINSTEXE\I2P.exe -private" "" "$INSTDIR\ui2pbrowser_icon.ico"
|
||||||
; CreateShortCut "$DESKTOP\I2P Applications.lnk" "C:\Windows\system32\cmd.exe" "/c $\"$INSTDIR\i2pconfig.bat$\"" "$INSTDIR\ui2pbrowser_icon.ico"
|
; CreateShortCut "$DESKTOP\I2P Applications.lnk" "C:\Windows\system32\cmd.exe" "/c $\"$INSTDIR\i2pconfig.bat$\"" "$INSTDIR\ui2pbrowser_icon.ico"
|
||||||
|
SetOutPath "$INSTDIR"
|
||||||
;# Point the browser config setting in the base router.config
|
|
||||||
FileOpen $0 "$I2PINSTEXE\router.config" a
|
|
||||||
FileSeek $0 0 END
|
|
||||||
FileWriteByte $0 "13"
|
|
||||||
FileWriteByte $0 "10"
|
|
||||||
FileWrite $0 "routerconsole.browser=$\"$INSTDIR\i2pconfig.bat$\""
|
|
||||||
FileWriteByte $0 "13"
|
|
||||||
FileWriteByte $0 "10"
|
|
||||||
FileWrite $0 "router.disableTunnelTesting=false"
|
|
||||||
FileWriteByte $0 "13"
|
|
||||||
FileWriteByte $0 "10"
|
|
||||||
FileClose $0
|
|
||||||
|
|
||||||
SetShellVarContext current
|
SetShellVarContext current
|
||||||
Var /Global I2PAPPDATA
|
Var /Global I2PAPPDATA
|
||||||
@@ -319,20 +248,7 @@ ${If} ${Silent}
|
|||||||
SetOutPath "$I2PAPPDATA"
|
SetOutPath "$I2PAPPDATA"
|
||||||
|
|
||||||
IfFileExists "$LOCALAPPDATA\I2P\eepsite\docroot" +2 0
|
IfFileExists "$LOCALAPPDATA\I2P\eepsite\docroot" +2 0
|
||||||
File /nonfatal /a /r "I2P\eepsite"
|
File /a /r "I2P\eepsite"
|
||||||
|
|
||||||
;# Point the browser config setting in the working config
|
|
||||||
FileOpen $0 "$I2PAPPDATA\router.config" a
|
|
||||||
FileSeek $0 0 END
|
|
||||||
FileWriteByte $0 "13"
|
|
||||||
FileWriteByte $0 "10"
|
|
||||||
FileWrite $0 "routerconsole.browser=$\"$INSTDIR\i2pconfig.bat$\""
|
|
||||||
FileWriteByte $0 "13"
|
|
||||||
FileWriteByte $0 "10"
|
|
||||||
FileWrite $0 "router.disableTunnelTesting=false"
|
|
||||||
FileWriteByte $0 "13"
|
|
||||||
FileWriteByte $0 "10"
|
|
||||||
FileClose $0
|
|
||||||
|
|
||||||
createDirectory "$I2PINSTEXE"
|
createDirectory "$I2PINSTEXE"
|
||||||
SetOutPath "$I2PINSTEXE"
|
SetOutPath "$I2PINSTEXE"
|
||||||
@@ -345,20 +261,6 @@ ${If} ${Silent}
|
|||||||
CreateShortCut "$SMPROGRAMS\${APPNAME}\Uninstall-${APPNAME}.lnk" "$INSTDIR\uninstall-i2pbrowser.exe"
|
CreateShortCut "$SMPROGRAMS\${APPNAME}\Uninstall-${APPNAME}.lnk" "$INSTDIR\uninstall-i2pbrowser.exe"
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
Function elevatorCallback
|
|
||||||
${GetOptions} $CMDLINE "/p" $PARENTOPTIONS
|
|
||||||
${If} "${PARENTOPTIONS}" != ""
|
|
||||||
StrCpy $PARENTOPTIONS "-ArgumentList '$PARENTOPTIONS'"
|
|
||||||
${EndIf}
|
|
||||||
${If} ${FileExists} "${I2PINSTEXE64}\i2p.exe"
|
|
||||||
ExecShell open "powershell -Command Start-Process .\$EXEFILE -Wait -Verb RunAs $PARENTOPTIONS"
|
|
||||||
#Quit
|
|
||||||
${ElseIf} ${FileExists} "${I2PINSTEXE32}\i2p.exe"
|
|
||||||
ExecShell open "powershell -Command Start-Process .\$EXEFILE -Wait -Verb RunAs $PARENTOPTIONS"
|
|
||||||
#Quit
|
|
||||||
${EndIf}
|
|
||||||
FunctionEnd
|
|
||||||
|
|
||||||
|
|
||||||
# start default section
|
# start default section
|
||||||
Section Install
|
Section Install
|
||||||
@@ -374,7 +276,6 @@ Section "uninstall"
|
|||||||
Delete $I2PINSTEXE\*
|
Delete $I2PINSTEXE\*
|
||||||
rmDir /r "$I2PINSTEXE"
|
rmDir /r "$I2PINSTEXE"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
|
||||||
# Remove shortcuts and folders
|
# Remove shortcuts and folders
|
||||||
Delete "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk"
|
Delete "$SMPROGRAMS\${APPNAME}\${APPNAME}.lnk"
|
||||||
@@ -404,12 +305,26 @@ SectionEnd
|
|||||||
!insertmacro MUI_PAGE_FINISH
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
||||||
Function LaunchLink
|
Function LaunchLink
|
||||||
|
SetOutPath "$I2PINSTEXE"
|
||||||
|
StrCpy $OUTDIR $I2PINSTEXE
|
||||||
${If} ${Silent}
|
${If} ${Silent}
|
||||||
ReadEnvStr $0 RESTART_I2P
|
ReadEnvStr $0 RESTART_I2P
|
||||||
${If} $0 != ""
|
${If} $0 != ""
|
||||||
ShellExecAsUser::ShellExecAsUser "open" "$DESKTOP\Browse I2P.lnk"
|
UserInfo::GetAccountType
|
||||||
|
pop $0
|
||||||
|
${If} $0 == "admin"
|
||||||
|
ShellExecAsUser::ShellExecAsUser "open" "$DESKTOP\Browse I2P.lnk"
|
||||||
|
${Else}
|
||||||
|
ExecShell "" "$DESKTOP\Browse I2P.lnk"
|
||||||
|
${EndIf}
|
||||||
${EndIf}
|
${EndIf}
|
||||||
${Else}
|
${Else}
|
||||||
ShellExecAsUser::ShellExecAsUser "open" "$DESKTOP\Browse I2P.lnk"
|
UserInfo::GetAccountType
|
||||||
|
pop $0
|
||||||
|
${If} $0 == "admin"
|
||||||
|
ShellExecAsUser::ShellExecAsUser "open" "$DESKTOP\Browse I2P.lnk"
|
||||||
|
${Else}
|
||||||
|
ExecShell "" "$DESKTOP\Browse I2P.lnk"
|
||||||
|
${EndIf}
|
||||||
${EndIf}
|
${EndIf}
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
@@ -1 +1 @@
|
|||||||
!define I2P_VERSION 1.8.1
|
!define I2P_VERSION 1.9.0
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
!define VERSIONMAJOR 1
|
!define VERSIONMAJOR 1
|
||||||
!define VERSIONMINOR 8
|
!define VERSIONMINOR 9
|
||||||
!define VERSIONBUILD 1
|
!define VERSIONBUILD 0
|
||||||
|
@@ -60,4 +60,6 @@ user_pref("media.navigator.enabled", false);
|
|||||||
user_pref("dom.w3c_touch_events.enabled", false);
|
user_pref("dom.w3c_touch_events.enabled", false);
|
||||||
user_pref("browser.privatebrowsing.autostart", false);
|
user_pref("browser.privatebrowsing.autostart", false);
|
||||||
user_pref("browser.display.use_system_colors", false);
|
user_pref("browser.display.use_system_colors", false);
|
||||||
user_pref("dom.image-lazy-loading.enabled", false)
|
user_pref("dom.image-lazy-loading.enabled", false)
|
||||||
|
user_pref("extensions.autoDisableScopes", 0);
|
||||||
|
user_pref("extensions.enabledScopes", 1);
|
229
src/profile/user-overrides.js
Normal file
229
src/profile/user-overrides.js
Normal file
@@ -0,0 +1,229 @@
|
|||||||
|
/*
|
||||||
|
Overrides#
|
||||||
|
for Extension Preferences# Tor Browser Bundle# Do not edit this file.##This file is modified from a file included in the Tor Browser Bundle.##Copyright 2017 The Tor Project.See LICENSE.tor#
|
||||||
|
for licensing information.
|
||||||
|
|
||||||
|
HTTPS Everywhere Preferences:
|
||||||
|
*/
|
||||||
|
user_pref("extensions.https_everywhere._observatory.popup_shown", true);
|
||||||
|
user_pref("extensions.https_everywhere.toolbar_hint_shown", true);
|
||||||
|
|
||||||
|
/*
|
||||||
|
NoScript Preferences: #In order to disable all scripts by
|
||||||
|
default, uncomment the following line...#user_pref("capability.policy.maonoscript.javascript.enabled", "noAccess");#
|
||||||
|
and comment out the following line
|
||||||
|
*/
|
||||||
|
user_pref("capability.policy.maonoscript.javascript.enabled", "allAccess");
|
||||||
|
user_pref("capability.policy.maonoscript.sites", "[System+Principal] about: about:tbupdate about:tor chrome: resource: blob: mediasource: moz-extension: moz-safe-about: about:neterror about:certerror about:feeds about:tabcrashed about:cache");
|
||||||
|
user_pref("noscript.default", "[System+Principal] about: about:tbupdate about:tor chrome: resource: blob: mediasource: moz-extension: moz-safe-about: about:neterror about:certerror about:feeds about:tabcrashed about:cache");
|
||||||
|
user_pref("noscript.mandatory", "[System+Principal] about: about:tbupdate about:tor chrome: resource: blob: mediasource: moz-extension: moz-safe-about: about:neterror about:certerror about:feeds about:tabcrashed about:cache");
|
||||||
|
user_pref("noscript.ABE.enabled", false);
|
||||||
|
user_pref("noscript.ABE.notify", false);
|
||||||
|
user_pref("noscript.ABE.wanIpAsLocal", false);
|
||||||
|
user_pref("noscript.confirmUnblock", false);
|
||||||
|
user_pref("noscript.contentBlocker", true);
|
||||||
|
user_pref("noscript.firstRunRedirection", false);
|
||||||
|
user_pref("noscript.global", true);
|
||||||
|
user_pref("noscript.gtemp", "");
|
||||||
|
user_pref("noscript.opacizeObject", 3);
|
||||||
|
user_pref("noscript.forbidWebGL", true);
|
||||||
|
user_pref("noscript.forbidFonts", true);
|
||||||
|
user_pref("noscript.options.tabSelectedIndexes", "5,0,0");
|
||||||
|
user_pref("noscript.policynames", "");
|
||||||
|
user_pref("noscript.secureCookies", true);
|
||||||
|
user_pref("noscript.showAllowPage", false);
|
||||||
|
user_pref("noscript.showBaseDomain", false);
|
||||||
|
user_pref("noscript.showDistrust", false);
|
||||||
|
user_pref("noscript.showRecentlyBlocked", false);
|
||||||
|
user_pref("noscript.showTemp", false);
|
||||||
|
user_pref("noscript.showTempToPerm", false);
|
||||||
|
user_pref("noscript.showUntrusted", false);
|
||||||
|
user_pref("noscript.STS.enabled", false);
|
||||||
|
user_pref("noscript.subscription.lastCheck", -142148139);
|
||||||
|
user_pref("noscript.temp", "");
|
||||||
|
user_pref("noscript.untrusted", "");
|
||||||
|
user_pref("noscript.forbidMedia", true);
|
||||||
|
user_pref("noscript.allowWhitelistUpdates", false);
|
||||||
|
user_pref("noscript.fixLinks", false);
|
||||||
|
// Now handled by plugins.click_to_play // Not in this one.
|
||||||
|
user_pref("noscript.forbidFlash", true);
|
||||||
|
user_pref("noscript.forbidSilverlight", true);
|
||||||
|
user_pref("noscript.forbidJava", true);
|
||||||
|
user_pref("noscript.forbidPlugins", true);
|
||||||
|
// Usability tweaks
|
||||||
|
user_pref("noscript.showPermanent", false);
|
||||||
|
user_pref("noscript.showTempAllowPage", true);
|
||||||
|
user_pref("noscript.showRevokeTemp", true);
|
||||||
|
user_pref("noscript.notify", false);
|
||||||
|
user_pref("noscript.autoReload", true);
|
||||||
|
user_pref("noscript.autoReload.allTabs", false);
|
||||||
|
user_pref("noscript.cascadePermissions", true);
|
||||||
|
user_pref("noscript.restrictSubdocScripting", true);
|
||||||
|
user_pref("noscript.showVolatilePrivatePermissionsToggle", false);
|
||||||
|
user_pref("noscript.volatilePrivatePermissions", true);
|
||||||
|
user_pref("noscript.clearClick", 0);
|
||||||
|
|
||||||
|
user_pref("intl.locale.matchOS", false);
|
||||||
|
|
||||||
|
user_pref("extensions.https_everywhere._observatory.enabled", false);
|
||||||
|
user_pref("extensions.https_everywhere.options.autoUpdateRulesets", false);
|
||||||
|
user_pref("extensions.https_everywhere.globalEnabled", false);
|
||||||
|
user_pref("extensions.https_everywhere._observatory.submit_during_tor", false);
|
||||||
|
user_pref("extensions.https_everywhere._observatory.submit_during_nontor", false);
|
||||||
|
user_pref("extensions.https_everywhere._observatory.use_custom_proxy", true);
|
||||||
|
user_pref("extensions.https_everywhere._observatory.proxy_host", "127.0.0.1");
|
||||||
|
user_pref("extensions.https_everywhere._observatory.proxy_port", 4444);
|
||||||
|
|
||||||
|
user_pref("extensions.torbutton.use_nontor_proxy", true);
|
||||||
|
|
||||||
|
//For socket conversion: in the future, I'll need to make TBB communicate with
|
||||||
|
//i2p over a unix socket. Fortunately, this is how you do that. It will be
|
||||||
|
//configurable in a similar way to the host:port configuration when that happens.
|
||||||
|
//user_pref("extensions.torlauncher.socks_port_use_ipc", );
|
||||||
|
//user_pref("extensions.torlauncher.socks_ipc_path", "");
|
||||||
|
|
||||||
|
// TODO: this is a Tor Browser specific setting which is ignored on Firefox. If
|
||||||
|
// I make it true, the SOCKS outproxy will have something to connect to. But I
|
||||||
|
// need to test more to find out if that's prudent.
|
||||||
|
user_pref("extensions.torlauncher.start_tor", false);
|
||||||
|
//user_pref("extensions.torlauncher.default_bridge_type", "");
|
||||||
|
user_pref("extensions.torlauncher.prompt_at_startup", false);
|
||||||
|
|
||||||
|
// Resist-fingerprinting and first-party isolation enable
|
||||||
|
|
||||||
|
user_pref("privacy.resistFingerprinting", true);
|
||||||
|
user_pref("privacy.firstparty.isolate", true);
|
||||||
|
|
||||||
|
// Use i2p http proxy for all connections and set homepage to safe local form.
|
||||||
|
|
||||||
|
// DON'T allow access to the admin panel from the profile we browse i2p with.
|
||||||
|
user_pref("network.proxy.no_proxies_on", "127.0.0.1:7657,localhost:7657,127.0.0.1:7662,localhost:7662,127.0.0.1:7669,localhost:7669");
|
||||||
|
user_pref("network.proxy.type", 1);
|
||||||
|
user_pref("network.proxy.http", "127.0.0.1");
|
||||||
|
user_pref("network.proxy.http_port", 4444);
|
||||||
|
user_pref("network.proxy.ssl", "127.0.0.1");
|
||||||
|
user_pref("network.proxy.ssl_port", 4444);
|
||||||
|
user_pref("network.proxy.ftp", "127.0.0.1");
|
||||||
|
user_pref("network.proxy.ftp_port", 4444);
|
||||||
|
user_pref("network.proxy.socks", "127.0.0.1");
|
||||||
|
user_pref("network.proxy.socks_port", 4444);
|
||||||
|
user_pref("network.proxy.share_proxy_settings", true);
|
||||||
|
user_pref("browser.startup.homepage", "http://127.0.0.1:7657/home");
|
||||||
|
|
||||||
|
// Privacy-harden and disable irrelevant features.
|
||||||
|
user_pref("app.normandy.api_url", "");
|
||||||
|
user_pref("app.normandy.enabled", false);
|
||||||
|
user_pref("app.update.auto", false);
|
||||||
|
user_pref("app.update.enabled", false);
|
||||||
|
user_pref("beacon.enabled", false);
|
||||||
|
user_pref("browser.aboutHomeSnippets.updateUrl", "");
|
||||||
|
user_pref("browser.cache.disk_cache_ssl", false);
|
||||||
|
user_pref("browser.cache.disk.enable", false);
|
||||||
|
user_pref("browser.cache.offline.enable", false);
|
||||||
|
user_pref("browser.disableResetPrompt", true);
|
||||||
|
user_pref("browser.display.use_document_fonts", 0);
|
||||||
|
user_pref("browser.fixup.alternate.enabled", false);
|
||||||
|
user_pref("browser.formfill.enable", false);
|
||||||
|
user_pref("browser.library.activity-stream.enabled", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.disableSnippets", true);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.enabled", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.feeds.section.highlights", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.feeds.snippets", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.feeds.topsites", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.prerender", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.showSearch", false);
|
||||||
|
user_pref("browser.newtabpage.enhanced", false);
|
||||||
|
user_pref("browser.newtabpage.introShown", true);
|
||||||
|
user_pref("browser.newtab.preload", false);
|
||||||
|
user_pref("browser.onboarding.enabled", false);
|
||||||
|
user_pref("browser.pagethumbnails.capturing_disabled", true);
|
||||||
|
user_pref("browser.safebrowsing.appRepURL", "");
|
||||||
|
user_pref("browser.safebrowsing.blockedURIs.enabled", false);
|
||||||
|
user_pref("browser.safebrowsing.downloads.enabled", false);
|
||||||
|
user_pref("browser.safebrowsing.downloads.remote.enabled", false);
|
||||||
|
user_pref("browser.safebrowsing.downloads.remote.url", "");
|
||||||
|
user_pref("browser.safebrowsing.enabled", false);
|
||||||
|
user_pref("browser.safebrowsing.malware.enabled", false);
|
||||||
|
user_pref("browser.safebrowsing.phishing.enabled", false);
|
||||||
|
user_pref("browser.search.geoip.timeout", 1);
|
||||||
|
user_pref("browser.search.suggest.enabled", false);
|
||||||
|
user_pref("browser.selfsupport.url", "");
|
||||||
|
user_pref("browser.send_pings", false);
|
||||||
|
user_pref("browser.shell.checkDefaultBrowser", false);
|
||||||
|
user_pref("browser.startup.homepage_override.mstone", "ignore");
|
||||||
|
user_pref("browser.startup.page", 0);
|
||||||
|
user_pref("browser.toolbarbuttons.introduced.pocket-button", true);
|
||||||
|
user_pref("browser.urlbar.speculativeConnect.enabled", false);
|
||||||
|
user_pref("browser.urlbar.trimURLs", false);
|
||||||
|
user_pref("datareporting.healthreport.uploadEnabled", false);
|
||||||
|
user_pref("datareporting.policy.dataSubmissionEnabled", false);
|
||||||
|
user_pref("dom.battery.enabled", false);
|
||||||
|
user_pref("dom.enable_performance", false);
|
||||||
|
user_pref("dom.enable_performance_navigation_timing", false);
|
||||||
|
user_pref("dom.enable_resource_timing", false);
|
||||||
|
user_pref("dom.event.clipboardevents.enabled", false);
|
||||||
|
user_pref("dom.gamepad.enabled", false);
|
||||||
|
user_pref("dom.indexedDB.enabled", false);
|
||||||
|
user_pref("dom.min_timeout_value", 400);
|
||||||
|
user_pref("dom.push.connection.enabled", false);
|
||||||
|
user_pref("dom.push.enabled", false);
|
||||||
|
user_pref("dom.serviceWorkers.enabled", false);
|
||||||
|
user_pref("dom.serviceWorkers.interception.enabled", false);
|
||||||
|
user_pref("dom.storage.enabled", false);
|
||||||
|
user_pref("dom.webaudio.enabled", false);
|
||||||
|
user_pref("extensions.autoDisableScopes", 0);
|
||||||
|
user_pref("extensions.enabledScopes", 1);
|
||||||
|
user_pref("extensions.getAddons.cache.enabled", false);
|
||||||
|
user_pref("extensions.getAddons.showPane", false);
|
||||||
|
user_pref("extensions.pocket.enabled", false);
|
||||||
|
user_pref("extensions.screenshots.disabled", true);
|
||||||
|
user_pref("extensions.webservice.discoverURL", "");
|
||||||
|
user_pref("geo.enabled", false);
|
||||||
|
user_pref("geo.wifi.uri", "");
|
||||||
|
user_pref("gfx.downloadable_fonts.disable_cache", true);
|
||||||
|
user_pref("javascript.options.shared_memory", false);
|
||||||
|
user_pref("layout.css.visited_links_enabled", false);
|
||||||
|
user_pref("media.autoplay.enabled", false);
|
||||||
|
user_pref("media.cache_size", 0);
|
||||||
|
user_pref("media.navigator.enabled", false);
|
||||||
|
user_pref("media.peerconnection.ice.no_host", true);
|
||||||
|
user_pref("media.video_stats.enabled", false);
|
||||||
|
user_pref("captivedetect.canonicalURL", "");
|
||||||
|
user_pref("network.captive-portal-service.enabled", false);
|
||||||
|
user_pref("network.cookie.cookieBehavior", 1);
|
||||||
|
user_pref("network.cookie.lifetimePolicy", 2);
|
||||||
|
user_pref("network.dns.disablePrefetch", true);
|
||||||
|
user_pref("network.http.referer.spoofSource", true);
|
||||||
|
user_pref("network.http.referer.trimmingPolicy", 2);
|
||||||
|
user_pref("network.http.referer.XOriginPolicy", 2);
|
||||||
|
user_pref("network.prefetch-next", false);
|
||||||
|
user_pref("privacy.donottrackheader.enabled", true);
|
||||||
|
user_pref("privacy.donottrackheader.value", 1);
|
||||||
|
user_pref("toolkit.telemetry.archive.enabled", false);
|
||||||
|
user_pref("toolkit.telemetry.coverage.opt-out", true);
|
||||||
|
user_pref("toolkit.telemetry.enabled", false);
|
||||||
|
user_pref("toolkit.telemetry.server", "");
|
||||||
|
user_pref("toolkit.telemetry.unified", false);
|
||||||
|
user_pref("webgl.disabled", true);
|
||||||
|
user_pref("browser.chrome.errorReporter.infoURL", "");
|
||||||
|
user_pref("breakpad.reportURL", "");
|
||||||
|
//user_pref("browser.newtabpage.activity-stream.default.sites", "");
|
||||||
|
user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.showSponsored", false);
|
||||||
|
user_pref("services.sync.prefs.sync.browser.newtabpage.activity-stream.showSponsored", false);
|
||||||
|
user_pref("browser.newtabpage.enabled", true);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.default.sites", "http://planet.i2p/,http://legwork.i2p/,http://i2pwiki.i2p/,http://i2pforums.i2p/,http://zzz.i2p/");
|
||||||
|
user_pref("dom.security.https_only_mode", false);
|
||||||
|
user_pref("keyword.enabled", false);
|
||||||
|
user_pref("extensions.allowPrivateBrowsingByDefault", true);
|
||||||
|
user_pref("extensions.PrivateBrowsing.notification", false);
|
||||||
|
user_pref("browser.newtabpage.activity-stream.feeds.topsites", true);
|
||||||
|
user_pref("ui.use_standins_for_native_colors", true);
|
||||||
|
user_pref("webgl.disable-extensions", true);
|
||||||
|
user_pref("webgl.min_capability_mode", true);
|
||||||
|
user_pref("webgl.disable-fail-if-major-performance-caveat", true);
|
||||||
|
user_pref("webgl.enable-webgl2", false);
|
||||||
|
user_pref("dom.w3c_touch_events.enabled", false);
|
||||||
|
user_pref("browser.privatebrowsing.autostart", false);
|
||||||
|
user_pref("browser.display.use_system_colors", false);
|
1288
src/profile/user.js
1288
src/profile/user.js
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
|||||||
1.8.1
|
1.9.0
|
||||||
|
@@ -1,18 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
SET "MYPATH=%~dp0"
|
|
||||||
|
|
||||||
set ProgramFiles64=%ProgramFiles: (x86)=%
|
|
||||||
set "I2PData=%LocalAppData%\I2P\"
|
|
||||||
|
|
||||||
if exist "%LocalAppData%\I2P\I2P.exe" (
|
|
||||||
set "I2PPath=%LocalAppData%\I2P\"
|
|
||||||
)
|
|
||||||
|
|
||||||
if exist "%ProgramFiles64%\I2P\I2P.exe" (
|
|
||||||
set "I2PPath=%ProgramFiles64%\I2P\"
|
|
||||||
)
|
|
||||||
|
|
||||||
if exist "%ProgramFiles(x86)%\I2P\I2P.exe" (
|
|
||||||
set "I2PPath=%ProgramFiles(x86)%\I2P\"
|
|
||||||
)
|
|
@@ -1,12 +0,0 @@
|
|||||||
|
|
||||||
SET "MYPATH=%~dp0"
|
|
||||||
call "%MYPATH%common.bat"
|
|
||||||
|
|
||||||
if exist "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.config.i2p\" (
|
|
||||||
echo "profile is configured" & xcopy /s /i /y "%I2PData%I2PBrowser-Launcher\firefox.profile.config.i2p\extensions" "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.config.i2p\extensions"
|
|
||||||
) else (
|
|
||||||
echo "configuring profile" & xcopy /s /i /y "%I2PData%I2PBrowser-Launcher\firefox.profile.config.i2p" "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.config.i2p"
|
|
||||||
)
|
|
||||||
|
|
||||||
xcopy /s /i /y "%I2PData%I2PBrowser-Launcher\firefox.profile.config.i2p\user.js" "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.config.i2p\user.js*"
|
|
||||||
xcopy /s /i /y "%I2PData%I2PBrowser-Launcher\firefox.profile.config.i2p\prefs.js" "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.config.i2p\prefs.js*"
|
|
@@ -1,12 +0,0 @@
|
|||||||
|
|
||||||
SET "MYPATH=%~dp0"
|
|
||||||
call "%MYPATH%common.bat"
|
|
||||||
|
|
||||||
if exist "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p\" (
|
|
||||||
echo "profile is configured, updating extensions" & xcopy /s /i /y "%I2PData%I2PBrowser-Launcher\firefox.profile.i2p\extensions" "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p\extensions"
|
|
||||||
) else (
|
|
||||||
echo "configuring profile" & xcopy /s /i /y "%I2PData%I2PBrowser-Launcher\firefox.profile.i2p" "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p"
|
|
||||||
)
|
|
||||||
|
|
||||||
xcopy /s /i /y "%I2PData%I2PBrowser-Launcher\firefox.profile.i2p\user.js" "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p\user.js*"
|
|
||||||
xcopy /s /i /y "%I2PData%I2PBrowser-Launcher\firefox.profile.i2p\prefs.js" "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p\prefs.js*"
|
|
@@ -1,27 +0,0 @@
|
|||||||
@echo on
|
|
||||||
|
|
||||||
SET "MYPATH=%~dp0"
|
|
||||||
call "%MYPATH%common.bat"
|
|
||||||
|
|
||||||
call "%MYPATH%launchi2p.bat"
|
|
||||||
|
|
||||||
call "%MYPATH%copy-profile.bat"
|
|
||||||
|
|
||||||
timeout /t 3
|
|
||||||
|
|
||||||
if exist "%USERPROFILE%/Desktop/Tor Browser/Browser/firefox.exe" (
|
|
||||||
start "i2pbrowser" "%USERPROFILE%/Desktop/Tor Browser/Browser/firefox.exe" -no-remote -profile "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p" -private-window about:blank
|
|
||||||
exit
|
|
||||||
)
|
|
||||||
|
|
||||||
if exist "%USERPROFILE%/OneDrive/Desktop/Tor Browser/Browser/firefox.exe" (
|
|
||||||
start "i2pbrowser" "%USERPROFILE%/OneDrive/Desktop/Tor Browser/Browser/firefox.exe" -no-remote -profile "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p" -private-window about:blank
|
|
||||||
exit
|
|
||||||
)
|
|
||||||
|
|
||||||
if exist "%ProgramFiles%\Mozilla Firefox\firefox.exe" (
|
|
||||||
start "i2pbrowser" "%ProgramFiles%\Mozilla Firefox\firefox.exe" -no-remote -profile "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p" -private-window about:blank
|
|
||||||
exit
|
|
||||||
)
|
|
||||||
|
|
||||||
exit
|
|
@@ -1,27 +0,0 @@
|
|||||||
@echo on
|
|
||||||
|
|
||||||
SET "MYPATH=%~dp0"
|
|
||||||
call "%MYPATH%common.bat"
|
|
||||||
|
|
||||||
call "%MYPATH%launchi2p.bat"
|
|
||||||
|
|
||||||
call "%MYPATH%copy-profile.bat"
|
|
||||||
|
|
||||||
timeout /t 3
|
|
||||||
|
|
||||||
if exist "%USERPROFILE%/Desktop/Tor Browser/Browser/firefox.exe" (
|
|
||||||
start "i2pbrowser" "%USERPROFILE%/Desktop/Tor Browser/Browser/firefox.exe" -no-remote -profile "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p" -url %1
|
|
||||||
exit
|
|
||||||
)
|
|
||||||
|
|
||||||
if exist "%USERPROFILE%/OneDrive/Desktop/Tor Browser/Browser/firefox.exe" (
|
|
||||||
start "i2pbrowser" "%USERPROFILE%/OneDrive/Desktop/Tor Browser/Browser/firefox.exe" -no-remote -profile "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p" -url %1
|
|
||||||
exit
|
|
||||||
)
|
|
||||||
|
|
||||||
if exist "%ProgramFiles%\Mozilla Firefox\firefox.exe" (
|
|
||||||
start "i2pbrowser" "%ProgramFiles%\Mozilla Firefox\firefox.exe" -no-remote -profile "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.i2p" -url %1
|
|
||||||
exit
|
|
||||||
)
|
|
||||||
|
|
||||||
exit
|
|
@@ -1,23 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
SET "MYPATH=%~dp0"
|
|
||||||
call "%MYPATH%common.bat"
|
|
||||||
|
|
||||||
call "%MYPATH%copy-config-profile.bat"
|
|
||||||
|
|
||||||
if exist "%ProgramFiles%\Mozilla Firefox\firefox.exe" (
|
|
||||||
start "i2pbrowser" "%ProgramFiles%\Mozilla Firefox\firefox.exe" -no-remote -profile "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.config.i2p" -url %1
|
|
||||||
exit
|
|
||||||
)
|
|
||||||
|
|
||||||
if exist "%USERPROFILE%/Desktop/Tor Browser/Browser/firefox.exe" (
|
|
||||||
start "i2pbrowser" "%USERPROFILE%/Desktop/Tor Browser/Browser/firefox.exe" -no-remote -profile "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.config.i2p" -url %1
|
|
||||||
exit
|
|
||||||
)
|
|
||||||
|
|
||||||
if exist "%USERPROFILE%/OneDrive/Desktop/Tor Browser/Browser/firefox.exe" (
|
|
||||||
start "i2pbrowser" "%USERPROFILE%/OneDrive/Desktop/Tor Browser/Browser/firefox.exe" -no-remote -profile "%LOCALAPPDATA%\I2PBrowser-Launcher\firefox.profile.config.i2p" -url %1
|
|
||||||
exit
|
|
||||||
)
|
|
||||||
|
|
||||||
exit
|
|
@@ -1,17 +0,0 @@
|
|||||||
@echo on
|
|
||||||
|
|
||||||
SET "MYPATH=%~dp0"
|
|
||||||
call "%MYPATH%common.bat"
|
|
||||||
|
|
||||||
|
|
||||||
echo "check if I2P is already running"
|
|
||||||
::only launch I2P if the proxy is not up on 4444
|
|
||||||
netstat /o /a /n | findstr "LISTENING" | findstr "7657" >nul 2>nul && (
|
|
||||||
echo "I2P is already running, not launching"
|
|
||||||
) || (
|
|
||||||
echo "I2P is not running, launching"
|
|
||||||
echo start "i2p" /D %I2PPath% i2p.exe
|
|
||||||
start "i2p" /D %I2PPath% i2p.exe
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
@@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
SET "MYPATH=%~dp0"
|
|
||||||
|
|
||||||
call "%MYPATH%common.bat"
|
|
||||||
|
|
||||||
set TEST=TEST
|
|
||||||
|
|
||||||
echo testing: %TEST% path to me: %MYPATH% path to I2P %I2PPath%
|
|
Reference in New Issue
Block a user