firefox.rst
changeset 1038 6e460255f801
child 1050 05954f5074dd
equal deleted inserted replaced
1026:a6f51fcdb6f2 1038:6e460255f801
       
     1 .. -*- coding: utf-8; fill-column: 90 -*-
       
     2 
       
     3 ==========
       
     4  Firefox.
       
     5 ==========
       
     6 
       
     7 How edit settings?
       
     8 ==================
       
     9 
       
    10 Default settings stored in 'prefs.js'. If you don't want rewrite it
       
    11 edit/create 'user.js'::
       
    12 
       
    13   $ emacs ~/.mozilla/firefox/xxxxxxx.default/user.js
       
    14 
       
    15 or open link::
       
    16 
       
    17   about:config
       
    18 
       
    19 See
       
    20 
       
    21   http://www.mozilla.org/unix/customizing.html#prefs
       
    22 
       
    23 Profiles.
       
    24 =========
       
    25 
       
    26 How create new profile.
       
    27 -----------------------
       
    28 
       
    29 Close all opened firefox windows (File -> Exit)! And run::
       
    30 
       
    31   $ firefox -P
       
    32 
       
    33 and in GUI push "Create profile" button and type profile name.
       
    34 
       
    35 How run two firefox simultaneously.
       
    36 -----------------------------------
       
    37 ::
       
    38 
       
    39   $ firefox             # run firefox with default profile
       
    40   $ firefox -P second-profile-name -no-remote
       
    41   $ firefox -P third-profile-name -no-remote
       
    42 
       
    43 How backup and restore profile.
       
    44 -------------------------------
       
    45 
       
    46 Just save content of '~/.mozilla/firefox/Profiles/xxxxxxx.default'.
       
    47 To restore profile edit '~/.mozilla/firefox/profiles.ini'::
       
    48 
       
    49   [Profile<N>]
       
    50   Name=default
       
    51   IsRelative=1
       
    52   Path=Profiles/xxxxxxx.default
       
    53   Default=1
       
    54 
       
    55 How to prevent links from opening a new window?
       
    56 ===============================================
       
    57 
       
    58 Go to about:config and set::
       
    59 
       
    60   browser.link.open_newwindow - 3. May be 1:cur 2:win 3:tab
       
    61   browser.link.open_external - 3. May be 1:cur 2:win 3:tab
       
    62   browser.link.open_newwindow.restriction - 0. May be 0, 1. 2
       
    63 
       
    64 See also:
       
    65 
       
    66   http://kb.mozillazine.org/Browser.link.open_external
       
    67   http://kb.mozillazine.org/Browser.link.open_newwindow.restriction
       
    68 
       
    69 How to prevent links from resize window?
       
    70 ========================================
       
    71 ::
       
    72 
       
    73 Preference -> Content -> JavaScript ->
       
    74               Advanced -> disable "Move and resize existing windows"
       
    75 
       
    76 How limit simultaneously connection counts?
       
    77 ===========================================
       
    78 ::
       
    79 
       
    80   network.http.max-connections - 4
       
    81 
       
    82 or search by word `connections' in "about:config".
       
    83 
       
    84 See:
       
    85 
       
    86   http://kb.mozillazine.org/Network.http.max-connections
       
    87 
       
    88 Copy link without escaping non ASCII chars.
       
    89 ===========================================
       
    90 
       
    91 Run about:config and set network.standard-url.escape-utf8 to false.
       
    92 
       
    93 Firefox downloading.
       
    94 ====================
       
    95 
       
    96   ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
       
    97                 Download older version.
       
    98 
       
    99 Privacy.
       
   100 ========
       
   101 
       
   102 See
       
   103 
       
   104   http://www.mozilla.com/en-US/privacy-policy.html
       
   105   http://www.mozilla.com/en-US/legal/privacy/firefox-en.html
       
   106 
       
   107 Do not send anything through Breakpad.
       
   108 --------------------------------------
       
   109 
       
   110 Breakpad is crash report library. If firefox crash Breakpad can send core file
       
   111 to Mozilla.
       
   112 
       
   113 The breakpad report server linked to in about:crashes (you can see which and
       
   114 where report you send).
       
   115 
       
   116 breakpad.reportURL is URL where send report. Set it to http://localhost to
       
   117 not send report.
       
   118 
       
   119   http://kb.mozillazine.org/Breakpad.reportURL
       
   120 
       
   121 Do not use "Report Broken Web Site Feature" and "Report Web Forgery Feature".
       
   122 -----------------------------------------------------------------------------
       
   123 
       
   124 This feature available through "Help" menu.
       
   125 
       
   126 Be careful with "Automated Update Service".
       
   127 -------------------------------------------
       
   128 
       
   129 It can be disabled through "Tools -> Advanced -> Update".
       
   130 
       
   131 Disable "Location-aware Feature".
       
   132 ---------------------------------
       
   133 
       
   134 Beginning with Firefox 3.5, Firefox offers a Location-Aware Feature, parts of
       
   135 which may be provided by third party service providers.
       
   136 
       
   137 To disable Location-aware Feature set "geo.enabled" to "false".
       
   138 
       
   139 Per site permission can accesssed through "Navigate to the site" -> "Tools"
       
   140 menu -> "Page Info" -> "Permissions tab" -> "Share Location".
       
   141 
       
   142 See
       
   143 
       
   144   http://www.mozilla.com/en-US/firefox/geolocation/
       
   145 
       
   146 Disable Google safe browsing.
       
   147 -----------------------------
       
   148 
       
   149 It can be disabled through "Tools -> Options -> Security tab", untick the
       
   150 checkboxes for attacks and forgeries.
       
   151 
       
   152 Set
       
   153 
       
   154   browser.safebrowsing.enabled  "false"
       
   155                 do not use safebrowsing
       
   156   browser.safebrowsing.malware.enabled "false"
       
   157                 do not download malware blacklists and do not check downloads
       
   158   browser.safebrowsing.remoteLookups "false"
       
   159                 use local blacklist to determine a site's phishiness instead
       
   160                 submitting the URL to a third party (deprecated?)
       
   161 
       
   162 See
       
   163 
       
   164   http://kb.mozillazine.org/Browser.safebrowsing.enabled
       
   165   http://kb.mozillazine.org/Browser.safebrowsing.remoteLookups
       
   166 
       
   167 View_source.
       
   168 ============
       
   169 
       
   170   view_source.wrap_long_lines
       
   171                 True - HTML code will wrap in the view source window, false
       
   172                 (default).
       
   173   view_source.syntax_highlight
       
   174                 True (default) - enable syntax highlighting in the view source
       
   175                 window. "View → Syntax Highlighting".
       
   176 
       
   177 Privacy.
       
   178 ========
       
   179 
       
   180   privacy.item.cache
       
   181                 True (default) - clear the cache when using the Clear Private Data feature
       
   182                 (Firefox 1.5 and above only). This can be changed via "Tools → Options →
       
   183                 Privacy → Settings..." (Firefox 1.5) or "Tools → Options → Privacy /
       
   184                 Private Data → Settings..." (Firefox 2.0 and above).
       
   185   privacy.item.cookies
       
   186                 True - delete all cookies when using the Clear Private Data feature
       
   187                 (Firefox 1.5 and above only).
       
   188                 This can be changed via "Tools → Options → Privacy → Settings..." (Firefox
       
   189                 1.5) or "Tools → Options → Privacy / Private Data → Settings..." (Firefox
       
   190                 2.0 and above).
       
   191   privacy.item.downloads
       
   192                 True (default) - clear history of downloaded files when using the Clear
       
   193                 Private Data feature (Firefox 1.5 and above only).
       
   194                 Note: This can be changed via "Tools → Options → Privacy → Settings..."
       
   195                 (Firefox 1.5) or "Tools → Options → Privacy / Private Data → Settings..."
       
   196                 (Firefox 2.0 and above).
       
   197   privacy.item.formdata
       
   198                 True (default) - clear all saved form data when using the Clear Private
       
   199                 Data feature (Firefox 1.5 and above only).
       
   200                 This can be changed via "Tools → Options → Privacy → Settings..." (Firefox
       
   201                 1.5) or "Tools → Options → Privacy / Private Data → Settings..." (Firefox
       
   202                 2.0 and above).
       
   203   privacy.item.history
       
   204                 True (default) - clear the browsing history when using the Clear Private
       
   205                 Data feature (Firefox 1.5 and above only).
       
   206                 This can be changed via "Tools → Options → Privacy → Settings..." (Firefox
       
   207                 1.5) or "Tools → Options → Privacy / Private Data → Settings..." (Firefox
       
   208                 2.0 and above).
       
   209   privacy.item.offlineApps
       
   210                 True - clear the offline website data when using the Clear Private Data
       
   211                 feature (Firefox 3 and above only).
       
   212                 This can be changed via "Tools → Options → Privacy / Private Data → Settings...".
       
   213   privacy.item.passwords
       
   214                 True - delete all saved passwords when using the Clear Private Data
       
   215                 feature (Firefox 1.5 and above only).
       
   216                 This can be changed via "Tools → Options → Privacy → Settings..." (Firefox
       
   217                 1.5) or "Tools → Options → Privacy / Private Data → Settings..." (Firefox
       
   218                 2.0 and above).
       
   219   privacy.item.sessions
       
   220                 True (default) - clear all authenticated SSL sessions when using the Clear
       
   221                 Private Data feature (Firefox 1.5 and above only).
       
   222                 This can be changed via "Tools → Options → Privacy → Settings..." (Firefox
       
   223                 1.5) or "Tools → Options → Privacy / Private Data → Settings..." (Firefox
       
   224                 2.0 and above).
       
   225   privacy.popups.firstTime
       
   226                 True (default) - the user has never hidden the popup blocker notification
       
   227                 bar before, so show a dialog explaining the status bar icon.
       
   228                 False - the user has been informed of the status bar icon.
       
   229   privacy.popups.policy
       
   230                 Determines the popup blocker behavior. 1 - allow popups, 2 - reject popups.
       
   231                 Seems to be deprecated in favor of dom.disable_open_during_load.
       
   232   privacy.popups.showBrowserMessage
       
   233                 True (default) - display a message at the top of the browser window when a
       
   234                 popup has been blocked.
       
   235                 False - display a status bar icon to indicate when a popup has been blocked.
       
   236   privacy.sanitize.promptOnSanitize
       
   237                 True (default) - prompt before performing the Clear Private Data operation
       
   238                 (Firefox 1.5 and above only)
       
   239                 In Firefox 1.5 and above, this can be changed via "Tools → Options → Privacy → Settings...".
       
   240   privacy.sanitize.sanitizeOnShutdown
       
   241                 True: Perform the Clear Private Data operation when closing the browser
       
   242                 (Firefox 1.5 and above only).
       
   243                 Note: In Firefox 1.5 and above, this can be changed via "Tools → Options →
       
   244                 Privacy → Settings..."
       
   245 
       
   246 Security.
       
   247 =========
       
   248 
       
   249   security.warn_entering_secure
       
   250                 True (default) - display a dialog warning the user when
       
   251                 entering a secure site from an insecure one.
       
   252   security.warn_entering_secure.show_once
       
   253                 True (default) - Leave the "Alert me whenever..." box
       
   254                 unchecked on the security warning dialog.
       
   255   security.warn_entering_weak
       
   256                 True (default) - display a dialog warning the user when
       
   257                 entering an insecure site from a secure one.
       
   258   security.warn_entering_weak.show_once
       
   259                 True (default) - leave the "Alert me whenever..." box
       
   260                 unchecked on the security warning dialog.
       
   261   security.warn_leaving_secure
       
   262                 True (default) - display a dialog warning the user when leaving a secure site.
       
   263   security.warn_leaving_secure.show_once
       
   264                 True (default) - leave the "Alert me whenever..." box
       
   265                 unchecked on the security warning dialog.
       
   266   security.warn_submit_insecure
       
   267                 True (default) - display a dialog warning the user when
       
   268                 submitting a form to an insecure site.
       
   269   security.warn_submit_insecure.show_once
       
   270                 True (default) - leave the "Alert me whenever..." box
       
   271                 unchecked on the security warning dialog.
       
   272   security.warn_viewing_mixed
       
   273                 True (default) - display a dialog warning the user when a page
       
   274                 has both encrypted and non-encrypted content.
       
   275   security.warn_viewing_mixed.show_once
       
   276                 True (default) - leave the "Alert me whenever..." box unchecked
       
   277                 on the security warning dialog.
       
   278   security.xpconnect.plugin.unrestricted
       
   279                 True (default) - allow scripting of plugins by untrusted scripts.
       
   280 
       
   281 Signon.
       
   282 =======
       
   283 
       
   284   signon.prefillForms
       
   285                 True (default) - allows auto-filling of stored usernames and
       
   286                 passwords on webpage forms.
       
   287   signon.rememberSignons
       
   288                 True (default) - enable the Password Manager.
       
   289 
       
   290 JavaScript.
       
   291 ===========
       
   292 
       
   293   javascript.enabled (Boolean).
       
   294                 Set this to true should you desire support for JavaScript. The
       
   295                 same as the Enable JavaScript option in the Content tab.
       
   296   dom.allow_scripts_to_close_windows (Boolean).
       
   297                 Setting this to true specifies that any window may be closed
       
   298                 and isn’t recommended. Entering false specifies that only
       
   299                 windows opened by script can be closed via close().
       
   300   dom.disable_image_src_set (Boolean).
       
   301                 This option determines whether JavaScript is allowed to change
       
   302                 images. Set this to true to enable this feature and false to
       
   303                 disable it (recommended).
       
   304   dom.disable_open_click_delay (Integer).
       
   305                 This option specifies the amount of time, in milliseconds,
       
   306                 that must be surpassed before a pop-up window created by
       
   307                 JavaScript setInterval() or setTimeout() calls aren’t managed
       
   308                 by current pop-up blocker settings. Beneath this threshold
       
   309                 existing pop-up blocker settings are applied. Default is 1000 (1 second).
       
   310   dom.disable_open_during_load (Boolean).
       
   311                 Set this to true to enable Firefox’s built-in pop-up blocker, which disables the loading of much pop-up content on sites – which will mostly be advertisements (it’s worth noting this is not perfect and will also disable many legitimate pop-ups). Should a pop-up be blocked in this way an information bar will appear at the top of the window, from which you can select what action to take. Setting this to false disables the pop-up blocker (Not recommended). Note – This is the same as the Block pop-up windows option in the Options menu, Content tab.
       
   312 
       
   313   dom.disable_window_flip (Boolean).
       
   314                 This option controls whether JavaScript may be used to bring windows into the foreground/background via focus(). Setting this to true disables such actions, which won’t affect new pop-ups from loading in the foreground, though can force existing ones to remain in the background unless switched to manually. Set this to false to allow the script to determine what happens. Note – This is the same as the Raise or lower windows option in Advanced JavaScript Settings.
       
   315 
       
   316   dom.disable_window_move_resize (Boolean).
       
   317                 This option controls whether JavaScript can be used to move &/or resize windows, whereby setting this to false enables scripts to do this. It would perhaps be best to set this to true, allowing only yourself to resize/move windows. Note – This is the same as the Move or resize existing windows option in Advanced JavaScript Settings.
       
   318 
       
   319   dom.disable_window_open_feature.close (Boolean).
       
   320                 Set this to false to enable the use of scripting to hide the close button of windows, true forces the close button to always be displayed (recommended).
       
   321 
       
   322   dom.disable_window_open_feature.directories (Boolean).
       
   323                 Set this to false to enable the use of scripting to hide the bookmarks toolbar, true prevents the bookmarks toolbar from being hidden in this way.
       
   324 
       
   325   dom.disable_window_open_feature.location (Boolean).
       
   326                 Set this to false to enable the use of scripting to hide the Location (Address) bar, true prevents the Address bar from being hidden.
       
   327 
       
   328   dom.disable_window_open_feature.menubar (Boolean).
       
   329                 Set this to false to enable the use of scripting to hide the Menu bar, true disables the hiding of the Menu bar.
       
   330 
       
   331   dom.disable_window_open_feature.minimizable (Boolean).
       
   332                 Set this to false to enable the use of scripting to disable the minimizing of windows, true enables the minimizing of such windows (recommended).
       
   333 
       
   334   dom.disable_window_open_feature.resizable (Boolean).
       
   335                 Set this to true to enable the use of scripting to hide the close button of windows, false forces the close button to always be displayed (recommended).
       
   336 
       
   337   dom.disable_window_open_feature.scrollbar (Boolean).
       
   338                 Set this to false to enable the use of scripting to hide the Scroll bar in windows, true disables the hiding of the Scroll bar in windows.
       
   339 
       
   340   dom.disable_window_open_feature.status (Boolean).
       
   341                 This option controls whether JavaScript can be used to hide the status bar, whereby setting this to false enables scripts to do this. Set this to true to force the status bar to be displayed at all times. Note – This is the same as the Hide the status bar option in Advanced JavaScript Settings.
       
   342 
       
   343   dom.disable_window_open_feature.titlebar (Boolean).
       
   344                 Set this to false to enable the use of scripting to hide the Title bar of windows, true forces the Title bar to always be displayed.
       
   345 
       
   346   dom.disable_window_open_feature.toolbar (Boolean).
       
   347                 Set this to false to enable the use of scripting to hide the Navigation toolbar, i.e. Back, Forward, etc. buttons, false prevents the hiding of the Navigation toolbar.
       
   348 
       
   349   dom.disable_window_status_change (Boolean).
       
   350                 This option controls whether JavaScript can be used to display custom text in the status bar, e.g. moving the mouse over a hyperlink normally would display where the link points to, though a script could be used to display something else instead. Set this to false to allow such custom status bar text displayed, while true will disable this. Note – This is the same as the Change status bar text option in Advanced JavaScript Settings.
       
   351 
       
   352   dom.event.contextmenu.enabled (Boolean).
       
   353                 This option controls whether JavaScript can be used to alter, or even disable the context menu, e.g. right clicking could be disabled on certain pages. Set this to true if you wish to allow sites to be able to do this, while false ensures scripts can’t be used to alter this functionality. Note – This is the same as the Disable or replace context menus option in Advanced JavaScript Settings.
       
   354 
       
   355   dom.max_script_run_time (Integer).
       
   356                 This specifies the amount of time, in seconds, that a script
       
   357                 in content may run before being prompted whether to continue
       
   358                 running it or not (default 10). Setting to 0 allows scripts to
       
   359                 run as long as required.
       
   360   dom.max_chrome_script_run_time (Integer).
       
   361                 This specifies the amount the amount of time, in seconds, that
       
   362                 a script with chrome privileges may run before being prompted
       
   363                 whether to continue running it or not (default 20).
       
   364   dom.popup_maximum (Integer).
       
   365                 This value specifies the maximum number of pop-up windows that
       
   366                 may be open simultaneously (default 20).
       
   367 
       
   368 See
       
   369 
       
   370   http://kb.mozillazine.org/Dom.max_script_run_time
       
   371   http://kb.mozillazine.org/Dom.max_chrome_script_run_time
       
   372 
       
   373 Plugin.
       
   374 =======
       
   375 
       
   376   plugin.default_plugin_disabled
       
   377                 True (default) - when a plugin is needed, prompt the user.
       
   378                 False - don't prompt the user to install needed plugins.
       
   379   plugin.expose_full_path
       
   380                 True - in about:plugins and navigator.plugins, reveal the full path to
       
   381                 plugin files.
       
   382                 False (default) - show only the plugin filename
       
   383 
       
   384 Download Manager.
       
   385 =================
       
   386 
       
   387   browser.download.manager.flashCount
       
   388                 Set to 0 to stop flashing Download Manager.
       
   389   browser.download.manager.showAlertOnComplete
       
   390                 Set to false to top flashing alter on complete download.
       
   391   browser.download.manager.retention
       
   392                 Clear immediately the download history:
       
   393                 0 - upon successful download
       
   394                 1 - when the Firefox browser closes
       
   395                 2 - needs user to clear it manually (default)
       
   396   browser.download.manager.closeWhenDone
       
   397                 Set to false to stop Firefox closing Download Manager when download is
       
   398                 complete.
       
   399   browser.download.manager.scanWhenDone
       
   400                 Set to false to stop scaning for viruses.
       
   401 
       
   402 Search.
       
   403 =======
       
   404 
       
   405 OpenSearch.
       
   406 -----------
       
   407 
       
   408   http://en.wikipedia.org/wiki/OpenSearch
       
   409 
       
   410 Smart Keywords.
       
   411 ---------------
       
   412 
       
   413 Right-click in the search box, and you should see the context menu item Add a Keyword for
       
   414 this Search.
       
   415 
       
   416 Useful user plugin.
       
   417 ===================
       
   418 
       
   419 Adblock Plus.
       
   420 -------------
       
   421 
       
   422 Block from loading ads and banners.
       
   423 
       
   424   http://adblockplus.org/en/
       
   425                 home page
       
   426   https://addons.mozilla.org/en-US/firefox/addon/4364
       
   427                 official mozilla download place
       
   428 
       
   429 NoScript.
       
   430 ---------
       
   431 
       
   432 Add-on allows JavaScript, Java and Flash and other plugins to be executed only by trusted
       
   433 web sites of your choice (e.g. your online bank), and provides the most powerful Anti-XSS
       
   434 protection available in a browser.
       
   435 
       
   436   http://noscript.net/
       
   437                 home page
       
   438 
       
   439 Cookie Monster.
       
   440 ---------------
       
   441 
       
   442 Cookie Monster provides proactive cookie management on a site or domain level basis.
       
   443 
       
   444   https://addons.mozilla.org/en-US/firefox/addon/4703
       
   445                 home page
       
   446 
       
   447 FlashGot.
       
   448 ---------
       
   449 
       
   450 The best Firefox download manager integration.
       
   451 
       
   452   http://flashgot.net
       
   453                 home page
       
   454 
       
   455 DownloadHelper.
       
   456 ---------------
       
   457 
       
   458   http://www.downloadhelper.net
       
   459                 home page
       
   460 
       
   461 GreaseMonkey.
       
   462 -------------
       
   463 
       
   464 Allows you to customize the way a webpage displays using small bits of JavaScript.
       
   465 
       
   466   http://www.greasespot.net
       
   467                 home page
       
   468   https://addons.mozilla.org/firefox/748
       
   469                 download page
       
   470 
       
   471 How to disable GZIP compression in Firefox?
       
   472 ===========================================
       
   473 ::
       
   474 
       
   475   user_pref("network.http.accept-encoding", ""); // default - "gzip,deflate".
       
   476 
       
   477 Restart the Firefox in Safe Mode.
       
   478 =================================
       
   479 
       
   480 Poorly designed or incompatible extensions can cause problems with your browser, including
       
   481 make it crash, slow down page display, etc::
       
   482 
       
   483   $ firefox -safe-mode
       
   484 
       
   485 Hot calc by Firefox.
       
   486 ====================
       
   487 
       
   488 At URI type some thing like "javascript: 4+5"
       
   489