/* User-interface tweaks */ /* Don't do anything when I start the browser unless I say so. * * References: * * 1. http://kb.mozillazine.org/Browser.startup.homepage */ user_pref("browser.startup.homepage", "about:blank"); /* Don't hide important information in the URL bar * * References: * * 1. https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/Preference_reference/browser.urlbar.trimURLs * */ user_pref("browser.urlbar.trimURLs", false); /* Don't allow unicode trickery in the URL bar. * * References: * * 1. http://kb.mozillazine.org/Network.IDN_show_punycode * 2. https://ma.ttias.be/show-idn-punycode-firefox-avoid-phishing-urls/ * */ user_pref("network.IDN_show_punycode", true); /* Don't save files that I "Open with..." to my home directory. * * This breaks twenty-year-old cross-browser expectations, and is a * privacy issue for users who have opted not to "Save file" and * expect it not to save the goddamn file. * * References: * * 1. https://superuser.com/questions/1698026/firefox-temporary-downloads-save-location * */ user_pref("browser.download.start_downloads_in_tmp_dir", true); /* Disallow hotkey hijacking by default. * * When I hit Ctrl-K or Ctrl-L, I want that to be sent to the browser * and not to (for example) Github. * * References: * * 1. https://support.mozilla.org/en-US/questions/1241294 * */ user_pref("permissions.default.shortcuts", 2);