meek-http-helper-user.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // http://kb.mozillazine.org/User.js_file
  2. // The meek-http-helper extension uses dump to write its listening port number
  3. // to stdout.
  4. user_pref("browser.dom.window.dump.enabled", true);
  5. // Enable TLS session tickets (disabled by default in Tor Browser). Otherwise
  6. // there is a missing TLS extension.
  7. // https://trac.torproject.org/projects/tor/ticket/13442#comment:1
  8. user_pref("security.ssl.disable_session_identifiers", false);
  9. // Disable safe mode. In case of a crash, we don't want to prompt for a
  10. // safe-mode browser that has extensions disabled.
  11. // https://support.mozilla.org/en-US/questions/951221#answer-410562
  12. user_pref("toolkit.startup.max_resumed_crashes", -1);
  13. // Don't raise software update windows in this browser instance.
  14. // https://trac.torproject.org/projects/tor/ticket/14203
  15. user_pref("app.update.enabled", false);
  16. // Set a failsafe blackhole proxy of 127.0.0.1:9, to prevent network interaction
  17. // in case the user manages to open this profile with a normal browser UI (i.e.,
  18. // not headless with the meek-http-helper extension running). Port 9 is
  19. // "discard", so it should work as a blackhole whether the port is open or
  20. // closed. network.proxy.type=1 means "Manual proxy configuration".
  21. // http://kb.mozillazine.org/Network.proxy.type
  22. user_pref("network.proxy.type", 1);
  23. user_pref("network.proxy.socks", "127.0.0.1");
  24. user_pref("network.proxy.socks_port", 9);
  25. // Make sure DNS is also blackholed. network.proxy.socks_remote_dns is
  26. // overridden by meek-http-helper at startup.
  27. user_pref("network.proxy.socks_remote_dns", true);
  28. user_pref("extensions.enabledAddons", "meek-http-helper@bamsoftware.com:1.0");
  29. // Ensure that distribution extensions (e.g., Tor Launcher) are not copied
  30. // into the meek-http-helper profile.
  31. user_pref("extensions.installDistroAddons", false);