Alter TBB less when it's discovered
This commit is contained in:
@ -27,10 +27,12 @@ import java.nio.file.StandardCopyOption;
|
||||
public class I2PFirefoxProfileBuilder extends I2PFirefoxProfileChecker {
|
||||
private boolean strict;
|
||||
|
||||
private String TBB_BASE = "user_pref(\"extensions.torbutton.use_nontor_proxy\", true);\n"
|
||||
private String TBB_BASE =
|
||||
"user_pref(\"extensions.torbutton.use_nontor_proxy\", true);\n"
|
||||
+ "user_pref(\"extensions.torlauncher.start_tor\", false);\n"
|
||||
+ "user_pref(\"extensions.torlauncher.prompt_at_startup\", false);\n"
|
||||
+ "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\");\n"
|
||||
+
|
||||
"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\");\n"
|
||||
+ "user_pref(\"network.proxy.type\", 1);\n"
|
||||
+ "user_pref(\"network.proxy.http\", \"127.0.0.1\");\n"
|
||||
+ "user_pref(\"network.proxy.http_port\", 4444);\n"
|
||||
@ -46,17 +48,25 @@ public class I2PFirefoxProfileBuilder extends I2PFirefoxProfileChecker {
|
||||
+ "user_pref(\"extensions.allowPrivateBrowsingByDefault\", true);\n"
|
||||
+ "user_pref(\"extensions.PrivateBrowsing.notification\", false);\n"
|
||||
+ "user_pref(\"extensions.pocket.enabled\", false);\n"
|
||||
+ "user_pref(\"browser.newtabpage.activity-stream.showSponsoredTopSites\", false);\n"
|
||||
+ "user_pref(\"browser.newtabpage.activity-stream.showSponsored\", false);\n"
|
||||
+ "user_pref(\"services.sync.prefs.sync.browser.newtabpage.activity-stream.showSponsored\", false);\n"
|
||||
+ "user_pref(\"browser.newtabpage.activity-stream.feeds.section.highlights\", false);\n"
|
||||
+ "user_pref(\"browser.newtabpage.activity-stream.feeds.section.topstories\", false);\n"
|
||||
+ "user_pref(\"browser.newtabpage.activity-stream.default.sites\", \"http://planet.i2p/,http://legwork.i2p/,http://i2pwiki.i2p/,http://i2pforums.i2p/,http://zzz.i2p/\");\n"
|
||||
+ "user_pref(\"browser.newtabpage.activity-stream.feeds.topsites\", true);\n"
|
||||
+
|
||||
"user_pref(\"browser.newtabpage.activity-stream.showSponsoredTopSites\", false);\n"
|
||||
+
|
||||
"user_pref(\"browser.newtabpage.activity-stream.showSponsored\", false);\n"
|
||||
+
|
||||
"user_pref(\"services.sync.prefs.sync.browser.newtabpage.activity-stream.showSponsored\", false);\n"
|
||||
+
|
||||
"user_pref(\"browser.newtabpage.activity-stream.feeds.section.highlights\", false);\n"
|
||||
+
|
||||
"user_pref(\"browser.newtabpage.activity-stream.feeds.section.topstories\", false);\n"
|
||||
+
|
||||
"user_pref(\"browser.newtabpage.activity-stream.default.sites\", \"http://planet.i2p/,http://legwork.i2p/,http://i2pwiki.i2p/,http://i2pforums.i2p/,http://zzz.i2p/\");\n"
|
||||
+
|
||||
"user_pref(\"browser.newtabpage.activity-stream.feeds.topsites\", true);\n"
|
||||
+ "user_pref(\"browser.fixup.domainsuffixwhitelist.i2p\", true);\n";
|
||||
|
||||
private String userChromeCSS() {
|
||||
String ret = "@namespace url(\"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul\")\n";
|
||||
String ret =
|
||||
"@namespace url(\"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul\")\n";
|
||||
|
||||
/* only needed once */
|
||||
|
||||
@ -378,9 +388,7 @@ public class I2PFirefoxProfileBuilder extends I2PFirefoxProfileChecker {
|
||||
*
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public I2PFirefoxProfileBuilder() {
|
||||
this.strict = false;
|
||||
}
|
||||
public I2PFirefoxProfileBuilder() { this.strict = false; }
|
||||
|
||||
/**
|
||||
* Construct a new Profile Builder
|
||||
@ -389,7 +397,5 @@ public class I2PFirefoxProfileBuilder extends I2PFirefoxProfileChecker {
|
||||
*
|
||||
* @since 0.0.1
|
||||
*/
|
||||
public I2PFirefoxProfileBuilder(boolean strict) {
|
||||
this.strict = strict;
|
||||
}
|
||||
public I2PFirefoxProfileBuilder(boolean strict) { this.strict = strict; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user