X-Git-Url: http://gitweb.michael.orlitzky.com/?p=firefox-user-prefs.git;a=blobdiff_plain;f=ui;h=d5dd753b28b48c3fa9ff0f5b765a213432557ab8;hp=c2a1f5fdca33c4843be7f653d92eb763921d52df;hb=refs%2Fheads%2Fmaster;hpb=1ebbb0d63bcb3102152edbce3a44cf27c1053e01 diff --git a/ui b/ui index c2a1f5f..1049ee6 100644 --- a/ui +++ b/ui @@ -43,3 +43,66 @@ user_pref("network.IDN_show_punycode", true); * */ 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); + + +/* Open all popups in a tab with the full user interface. + * + * Many javascript "links" open a popup window with a crippled user + * interface. This is a security risk, and infuriating. It used to be + * possible to override the website's preference, but Mozilla removed + * that ability. Instead we have to force these links to open in a new + * tab within the existing window, which already has a non-cripped + * user interface. + * + * References: + * + * 1. https://support.mozilla.org/en-US/questions/1290971 + * 2. https://kb.mozillazine.org/Browser.link.open_newwindow.restriction + * + */ +user_pref("browser.link.open_newwindow.restriction", 0); + + +/* Open search results (from the search bar) in a new tab. + * + * If you're reading a page and want to (say) Ctrl-k to the search bar + * to look up a word, then you probably don't want the search results + * to overwrite the page you're in the middle of reading. This is the + * safe choice in any case. + * + * This setting does not affect searches from within the URL bar. + * + * References: + * + * 1. https://support.mozilla.org/en-US/questions/954276 + * 2. https://support.mozilla.org/en-US/questions/1309754 + * + */ +user_pref("browser.search.openintab", true); + + +/* Don't close the window when the last tab closes. + * + * The behavior of Ctrl-W shouldn't be context-dependent, and + * surprise-quit is especially dangerous if Firefox is configured to + * delete your history when it closes. + * + * References: + * + * 1. https://support.mozilla.org/en-US/questions/1205166 + * + */ +user_pref("browser.tabs.closeWindowWithLastTab", false);