Firefox

From Wikiversity
Jump to navigation Jump to search

Setup[edit | edit source]

Shortcuts[edit | edit source]

  • CTRL+W closes a tab
  • CTRL+T opens a new tab
  • CTRL+SHIFT+T reopens the last closed tab
  • F6 or Ctrl+L : Gets you right up into the Address/URL bar.
  • F5 : Reload the page.
  • CTRL+F5: Clear cache and reload the page.
  • / or Ctrl+F: Search/find
  • Ctrl+K : Takes you to the Firefox search box.
  • Ctrl+U : View the page’s source.
  • F11 : View the page in full-screen mode.
  • Ctrl+W : Closes the active tab.
  • Ctrl+= : Resets font size.
  • Ctrl++ : Increases font size.
  • Ctrl+- : Decreases font size.

Profiles[edit | edit source]

User profiles allow separating configuration, extensions, bookmarks, and history within Firefox. By default, there is one profile. The profile manager allows creating additional profiles. It can be opened by launching the Firefox process through a command line with the -profilemanager parameter, without spaces.

Profile folders are typically located under %AppData%\Mozilla\Firefox\ on Microsoft Windows, and ~/.mozilla/firefox/ on Linux and BSD. The profile manager allows manually specifying custom profile directories.[1]

Relevant files in the profile folder are places.sqlite for browsing history and download history and bookmarks, cookies.sqlite, prefs.js for user preferences, and containers.json for configuration of multi-account containers. Sessions are stored in sessionstore.jsonlz4 when closing the browser (before Firefox 56 of 2017, it was stored as plain JSON into sessionstore.json), and backed up to sessionstore-backups/recovery.jsonlz4 and sessionstore-backups/recovery.baklz4 while browsing for recovery in case of an unexpected process termination. The previous session is backed up to sessionstore-backups/previous.jsonlz4. [2]

Advanced configuration[edit | edit source]

On the desktop edition (and earlier mobile versions), the about:config page allows fine-tuning the browser. The search bar at the top facilitates finding properties.

Notable properties are:

  • browser.urlbar.trimURLs – may hide the protocol from the URL bar. Deactivate to always show the full URL including the protocol. Activated by default.
  • javascript.enabled – deactivating usually increases speed and decreases CPU usage of progressively enhancing sites, but features implemented using JavaScript such as the toolbar of the wikitext form and JavaScript-based sites such as Twitter web app will not work. Activated by default.
  • browser.backspace_action – this parameter adjusts the function of the backspace key if no text input field is active. 0: navigate to last page, 1: scroll up, if Shift key is held then scroll down. 2: deactivate.
  • dom.event.contextmenu.enabled – allows JavaScript to interfere with right-click context menu. Deactivating might interfere with some sites' functionality. Activated by default.
  • dom.event.clipboardevents.enabled – allows JavaScript to evaluate on-page text selection. Deactivating might interfere with some sites' functionality. Activated by default.
  • browser.download.autohideButton – hide download button if no downloads in current session. Activated by default.
  • browser.download.lastDir, browser.open.lastDir – last directory to which a file was downloaded or from which a file was opened through the file picker dialogue.
  • browser.startup.homepage – page displayed when starting a new session (if not restoring the previous session), and when pressing the button with the house icon.
  • dom.ipc.processCount.web – number of processes across which web content is distributed. Higher count increases performance but consumes more memory, thus recommended for computers with much RAM. Four by default.
  • general.autoScroll – enable scrolling using middle mouse button press.
  • devtools.chrome.enabled – enable write access to browser console, accessed using Ctrl+Shift+J.
  • browser.cache.disk.capacity, browser.cache.offline.capacity disk cache capacity, mainly used for static resources to save bandwidth. Difference between values unclear yet. – Values in Kilobytes.
  • places.history.expiration.max_pages or places.history.expiration.transient_current_max_pages: number of entries retained in the browsing history database (places.sqlite file).

System pages[edit | edit source]

  • about:memory – internal process viewer.
  • about:processes – newer internal process manager. Introduced with Firefox 67.[3]

See also[edit | edit source]

External links[edit | edit source]

  1. Profile Manager - Create, remove or switch Firefox profiles – Mozilla Support (knowledge base)
  2. Profiles - Where Firefox stores your bookmarks, passwords and other user data – Mozilla Support
  3. https://www.ghacks.net/2019/03/01/firefox-67-automatically-unload-unused-tabs-to-improve-memory/