optimizations for running in Tor Browser, optimizations to keep I2P TLD out of search engines

This commit is contained in:
idk
2022-12-31 22:12:12 +00:00
parent 82cb3da2fe
commit b0da8bd494
6 changed files with 33 additions and 14 deletions

View File

@ -5,11 +5,11 @@ TORSOCKS=$(which torsocks)
# . "${TORSOCKS}" on
#fi
if [ -z $version ]; then
version="$(curl -s https://aus1.torproject.org/torbrowser/update_3/release/downloads.json | jq -r ".version")"
locale="en-US" # mention your locale. default = en-US
if [ -d /etc/default/locale ]; then
. /etc/default/locale
locale=$(echo "${LANG}" | cut -d . -f1)
fi
if [ -z $locale ]; then
locale="ALL" # mention your locale. default = ALL
fi
if [ ! -f ./tor.keyring ]; then

View File

@ -6,11 +6,11 @@ if [ -f "${TORSOCKS}" ]; then
echo ""
fi
if [ -z $version ]; then
version="$(curl -s https://aus1.torproject.org/torbrowser/update_3/release/downloads.json | jq -r ".version")"
locale="en-US" # mention your locale. default = en-US
if [ -d /etc/default/locale ]; then
. /etc/default/locale
locale=$(echo "${LANG}" | cut -d . -f1)
fi
if [ -z $locale ]; then
locale="ALL" # mention your locale. default = ALL
fi
if [ ! -f ./tor.keyring ]; then

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Sat Dec 31 21:01:03 UTC 2022
build.number=422
#Sat Dec 31 22:09:35 UTC 2022
build.number=424

View File

@ -612,6 +612,11 @@ public class I2PFirefox extends I2PCommonBrowser {
pb.environment().put("MOZ_MAINTENANCE_SERVICE", "0");
pb.environment().put("MOZ_PLUGIN_PATH", pluginsFolder);
pb.environment().put("MOZ_UPDATER", "0");
pb.environment().put("TB_CUSTOM_HOMEPAGE", newArgs[4]);
pb.environment().put("TOR_FORCE_NET_CONFIG", "0");
pb.environment().put("TOR_SKIP_LAUNCH", "1");
pb.environment().put("TOR_SKIP_CONTROLPORTTEST", "1");
pb.environment().put("TOR_NONTOR_PROXY", "1");
return pb;
} catch (IOException e) {
logger.warning(e.toString());
@ -635,6 +640,12 @@ public class I2PFirefox extends I2PCommonBrowser {
pb.environment().put("MOZ_MAINTENANCE_SERVICE", "0");
pb.environment().put("MOZ_PLUGIN_PATH", pluginsFolder);
pb.environment().put("MOZ_UPDATER", "0");
if (args.length > 4)
pb.environment().put("TB_CUSTOM_HOMEPAGE", args[4]);
pb.environment().put("TOR_FORCE_NET_CONFIG", "0");
pb.environment().put("TOR_SKIP_LAUNCH", "1");
pb.environment().put("TOR_SKIP_CONTROLPORTTEST", "1");
pb.environment().put("TOR_NONTOR_PROXY", "1");
return pb;
}
@ -657,6 +668,12 @@ public class I2PFirefox extends I2PCommonBrowser {
pb.environment().put("MOZ_MAINTENANCE_SERVICE", "0");
pb.environment().put("MOZ_PLUGIN_PATH", pluginsFolder);
pb.environment().put("MOZ_UPDATER", "0");
if (args.length > 4)
pb.environment().put("TB_CUSTOM_HOMEPAGE", args[4]);
pb.environment().put("TOR_FORCE_NET_CONFIG", "0");
pb.environment().put("TOR_SKIP_LAUNCH", "1");
pb.environment().put("TOR_SKIP_CONTROLPORTTEST", "1");
pb.environment().put("TOR_NONTOR_PROXY", "1");
return pb;
//}
// return null;

View File

@ -64,3 +64,4 @@ user_pref("dom.image-lazy-loading.enabled", false);
user_pref("extensions.autoDisableScopes", 0);
user_pref("extensions.enabledScopes", 1);
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", false);
user_pref("browser.fixup.domainsuffixwhitelist.i2p", true);

View File

@ -228,3 +228,4 @@ user_pref("dom.w3c_touch_events.enabled", false);
user_pref("browser.privatebrowsing.autostart", false);
user_pref("browser.display.use_system_colors", false);
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", false);
user_pref("browser.fixup.domainsuffixwhitelist.i2p", true);