]> gitweb.michael.orlitzky.com - firefox-user-prefs.git/blob - ui
makefile: sort SRCS alphabetically
[firefox-user-prefs.git] / ui
1 /* User-interface tweaks */
2
3
4 /* Don't do anything when I start the browser unless I say so.
5 *
6 * References:
7 *
8 * 1. http://kb.mozillazine.org/Browser.startup.homepage
9 */
10 user_pref("browser.startup.homepage", "about:blank");
11
12
13 /* Don't hide important information in the URL bar
14 *
15 * References:
16 *
17 * 1. https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/Preference_reference/browser.urlbar.trimURLs
18 *
19 */
20 user_pref("browser.urlbar.trimURLs", false);
21
22
23 /* Don't allow unicode trickery in the URL bar.
24 *
25 * References:
26 *
27 * 1. http://kb.mozillazine.org/Network.IDN_show_punycode
28 * 2. https://ma.ttias.be/show-idn-punycode-firefox-avoid-phishing-urls/
29 *
30 */
31 user_pref("network.IDN_show_punycode", true);
32
33
34 /* Don't save files that I "Open with..." to my home directory.
35 *
36 * This breaks twenty-year-old cross-browser expectations, and is a
37 * privacy issue for users who have opted not to "Save file" and
38 * expect it not to save the goddamn file.
39 *
40 * References:
41 *
42 * 1. https://superuser.com/questions/1698026/firefox-temporary-downloads-save-location
43 *
44 */
45 user_pref("browser.download.start_downloads_in_tmp_dir", true);
46
47
48 /* Disallow hotkey hijacking by default.
49 *
50 * When I hit Ctrl-K or Ctrl-L, I want that to be sent to the browser
51 * and not to (for example) Github.
52 *
53 * References:
54 *
55 * 1. https://support.mozilla.org/en-US/questions/1241294
56 *
57 */
58 user_pref("permissions.default.shortcuts", 2);
59
60
61 /* Open all popups in a tab with the full user interface.
62 *
63 * Many javascript "links" open a popup window with a crippled user
64 * interface. This is a security risk, and infuriating. It used to be
65 * possible to override the website's preference, but Mozilla removed
66 * that ability. Instead we have to force these links to open in a new
67 * tab within the existing window, which already has a non-cripped
68 * user interface.
69 *
70 * References:
71 *
72 * 1. https://support.mozilla.org/en-US/questions/1290971
73 * 2. https://kb.mozillazine.org/Browser.link.open_newwindow.restriction
74 *
75 */
76 user_pref("browser.link.open_newwindow.restriction", 0);
77
78
79 /* Open search results (from the search bar) in a new tab.
80 *
81 * If you're reading a page and want to (say) Ctrl-k to the search bar
82 * to look up a word, then you probably don't want the search results
83 * to overwrite the page you're in the middle of reading. This is the
84 * safe choice in any case.
85 *
86 * This setting does not affect searches from within the URL bar.
87 *
88 * References:
89 *
90 * 1. https://support.mozilla.org/en-US/questions/954276
91 * 2. https://support.mozilla.org/en-US/questions/1309754
92 *
93 */
94 user_pref("browser.search.openintab", true);
95
96
97 /* Don't close the window when the last tab closes.
98 *
99 * The behavior of Ctrl-W shouldn't be context-dependent, and
100 * surprise-quit is especially dangerous if Firefox is configured to
101 * delete your history when it closes.
102 *
103 * References:
104 *
105 * 1. https://support.mozilla.org/en-US/questions/1205166
106 *
107 */
108 user_pref("browser.tabs.closeWindowWithLastTab", false);